3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // When Warning is ignored the type juggling changed var_dump((10/0)); var_dump(100 % 0);
based on emOk2
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/4QWPP on line 3 float(INF) Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/4QWPP:4 Stack trace: #0 {main} thrown in /in/4QWPP on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Warning: Division by zero in /in/4QWPP on line 3 bool(false) Warning: Division by zero in /in/4QWPP on line 4 bool(false)