3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __destruct() { throw new Exception; } } function t() { $x = new Foo; throw new Exception; } try { t(); } catch (Exception $ex) { var_dump($ex->what()); echo "ABC\n"; }

preferences:
43.34 ms | 402 KiB | 5 Q