Dividing By Zero Changes in PHP 7

Before PHP 7, when dividing by 0 or calculating modulo by 0 we got the value false of the type boolean. As of PHP 7, when calculating the modulo by 0 the DivisionByZeroError exception will be thrown and when trying to divide by 0 we will get INF, -INT or NAN.
Back to Top