3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw \RuntimeException('Toto'); } catch (\RuntimeException $e) { if (true) { throw \Exception('Toto2'); } } catch (\Throwable $e) { echo $e->getMessage(); }
Output for 7.2.4
Call to undefined function RuntimeException()