3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php phpversion() >= "5.6.15"; $two_pow_64 = pow(2,64); echo (int) INF,"\n"; echo (int) $two_pow_64,"\n"; echo ((int) INF) % 2, "\n"; echo ((int) INF) / ((int) $two_pow_64); echo intdiv((int) INF), ((int) $two_pow_64); echo ((int) INF) % ((int) $two_pow_64);
based on gisB6
Output for 7.0.0 - 7.2.0
0 0 0 Warning: Division by zero in /in/Cs7ko on line 8 NAN Warning: intdiv() expects exactly 2 parameters, 1 given in /in/Cs7ko on line 9 0 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/Cs7ko:10 Stack trace: #0 {main} thrown in /in/Cs7ko on line 10
Process exited with code 255.
Output for 5.5.24 - 5.6.28
-9223372036854775808 0 0 Warning: Division by zero in /in/Cs7ko on line 8 Fatal error: Call to undefined function intdiv() in /in/Cs7ko on line 9
Process exited with code 255.
Output for 5.3.20 - 5.4.45
0 0 0 Warning: Division by zero in /in/Cs7ko on line 8 Fatal error: Call to undefined function intdiv() in /in/Cs7ko on line 9
Process exited with code 255.