3v4l.org

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