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) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); user_error('aaaaaaa');
Output for 5.0.0 - 7.1.0
string(7) "aaaaaaa"
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for set_error_handler() in /in/8sS7T on line 12 Notice: aaaaaaa in /in/8sS7T on line 15