3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = INF; $n = pow(2,64); echo $a - ($n * ( (int) ($a/$n) ) ); echo fmod(INF,pow(2,64)); echo INF % pow(2,64);
based on LNClE
Output for 7.0.0 - 7.2.0
INFNAN Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/lEtlh:11 Stack trace: #0 {main} thrown in /in/lEtlh on line 11
Process exited with code 255.
Output for 5.3.20 - 5.6.28
INFNAN Warning: Division by zero in /in/lEtlh on line 11