3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function myErrorHandler($errno, $errstr, $errfile, $errline) { var_dump('got in'); } set_error_handler("myErrorHandler"); $bla = new stdClass; try { $bla->method(); } catch (\Throwable $e) { echo get_class($e); }
based on C7mF8
Output for 7.0.0 - 7.2.0
Error
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined method stdClass::method() in /in/bZMa4 on line 11
Process exited with code 255.