3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 42 / 0; var_dump($x); $y = 4.5% 1.7; var_dump($y); $m = 1337 % 0;
based on OkKET
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/uk8pV on line 3 float(INF) int(0) Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/uk8pV:11 Stack trace: #0 {main} thrown in /in/uk8pV on line 11
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Warning: Division by zero in /in/uk8pV on line 3 bool(false) int(0) Warning: Division by zero in /in/uk8pV on line 11