3v4l.org

run code in 200+ php & hhvm versions
<?php function main() { try { $nonExistingVariable->blah(); } catch(Throwable $e) { var_export($e); } } main();
Output for 7.1.25 - 7.4.0alpha1
Notice: Undefined variable: nonExistingVariable in /in/S1Th4 on line 6 Error::__set_state(array( 'message' => 'Call to a member function blah() on null', 'string' => '', 'code' => 0, 'file' => '/in/S1Th4', 'line' => 6, 'trace' => array ( 0 => array ( 'file' => '/in/S1Th4', 'line' => 12, 'function' => 'main', 'args' => array ( ), ), ), 'previous' => NULL, ))