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
based on Jjtaq
Output for 7.0.0 - 7.2.0
float(INF)
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.6.28
bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/QeC8E on line 9
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for set_error_handler() in /in/QeC8E on line 7 Warning: Division by zero in /in/QeC8E on line 9 bool(false)