3v4l.org

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