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:
22.92 ms | 474 KiB | 4 Q