3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0beta1" or die(); echo INF / 0; echo intdiv(INF,0); echo intdiv(2,0);
Output for 7.0.1 - 7.0.20, 7.1.0 - 7.1.10, 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.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0

preferences:
82.54 ms | 402 KiB | 46 Q