3v4l.org

run code in 300+ 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:
40.9 ms | 402 KiB | 5 Q