3v4l.org

run code in 500+ PHP versions simultaneously
<?php class TestException extends Exception{} try { throw new TestException(); } catch(TestException $e) { var_dump('catched TestException'); throw $e; } catch (Exception $e) { var_dump('catched exception'); }

preferences:
117.48 ms | 1693 KiB | 5 Q