3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { echo $e->getFile(); }

preferences:
37.59 ms | 402 KiB | 5 Q