3v4l.org

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