3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_error_handler('myErrorHandler'); register_shutdown_function('fatalErrorShutdownHandler'); if (strpos($errstr, 'Class')) { var_dump('foo'); return true; } return false; } function fatalErrorShutdownHandler() { $last_error = error_get_last(); if ($last_error['type'] === E_ERROR) { // fatal error myErrorHandler(E_ERROR, $last_error['message'], $last_error['file'], $last_error['line']); } } Everything::is('awesome'); echo Everything;
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '}' in /in/Rn98P on line 15
Process exited with code 255.