3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function warning_handler($errno, $errstr) { return true; } set_error_handler("warning_handler", E_WARNING); var_dump(1.0/0.0); // w/o using @ or messing with error_reporting restore_error_handler(); var_dump(5/0);
based on QeC8E
Output for 7.0.0 - 7.2.0
float(INF) Warning: Division by zero in /in/NTlXJ on line 13 float(INF)
Output for 5.3.19 - 5.6.28
bool(false) Warning: Division by zero in /in/NTlXJ on line 13 bool(false)