3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php phpversion() >= "7.0.0beta1" or die(); echo INF / 0; echo intdiv(INF,0); echo intdiv(2,0);
based on LBvaX
Output for 7.0.1 - 7.2.0
Warning: Division by zero in /in/G1Fjh on line 4 INF Warning: intdiv() expects parameter 1 to be integer, float given in /in/G1Fjh on line 5 Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/G1Fjh:6 Stack trace: #0 /in/G1Fjh(6): intdiv(2, 0) #1 {main} thrown in /in/G1Fjh on line 6
Process exited with code 255.
Output for 5.3.20 - 7.0.0