<?php function handleError($errno, $errstr, $errfile, $errline) { global $php_errormsg; var_dump($php_errormsg); var_dump(error_get_last()); } function shutdownFunc() { var_dump(error_get_last()); } set_error_handler('handleError'); register_shutdown_function('shutdownFunc'); if ($x) { echo "x\n"; } else { echo "no x\n"; } var_dump(error_get_last()); nosuchfunc();
You have javascript disabled. You will not be able to edit any code.