3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyException extends Exception { } class Test { public function testing() { try { try { throw new MyException('foo!'); } catch (MyException $e) { // rethrow it throw $a; } } catch (Exception $e) { var_dump($e->getMessage()); } } } $foo = new Test; $foo->testing();

preferences:
32.52 ms | 402 KiB | 5 Q