3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 2 / 0, "\n"; echo 2 % 0;
based on 5dgL1
Output for 7.0.0 - 7.2.6
Warning: Division by zero in /in/f7uam on line 2 INF Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/f7uam:3 Stack trace: #0 {main} thrown in /in/f7uam on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9, 5.2.0 - 5.6.28
Warning: Division by zero in /in/f7uam on line 2 Warning: Division by zero in /in/f7uam on line 3
Output for 4.3.0 - 4.4.4, 5.0.0 - 5.1.6
Warning: Division by zero in /in/f7uam on line 2