php8.5
Home/ Manual/ language / predefined/ ArithmeticError

ArithmeticError

ArithmeticError is thrown when an error occurs while performing mathematical operations. These errors include attempting to perform a bitshift by a negative amount, and any call to intdiv that would result in a value outside the possible bounds of an int.

Intro

ArithmeticError is thrown when an error occurs while performing mathematical operations. These errors include attempting to perform a bitshift by a negative amount, and any call to intdiv() that would result in a value outside the possible bounds of an int.

Class synopsis

extends Error { }

Source: language/predefined/arithmeticerror.xml · from the official PHP manual (php/doc-en)