3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /*E_ERROR E_PARSE E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR E_COMPILE_WARNING*/ function exception_error_handler($errno, $errstr, $errfile, $errline) { echo 'as'; } set_error_handler("exception_error_handler", error_reporting()); user_error('aaaaaaa');
Output for 5.0.0 - 7.1.0
as
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for set_error_handler() in /in/s2972 on line 12 Notice: aaaaaaa in /in/s2972 on line 15