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) { echo $e->getMessage(); // rethrow it //throw $e; } } catch (Exception $fdvcfd) { var_dump($fdvcfd->getMessage()); } } } $foo = new Test; $foo->testing();

preferences:
34.86 ms | 402 KiB | 5 Q