3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $exception = new \RuntimeException('Boom!'); throw new $exception;
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught RuntimeException in /in/6XZTf:4 Stack trace: #0 {main} thrown in /in/6XZTf on line 4
Process exited with code 255.
Output for 5.6.38
Fatal error: Uncaught exception 'RuntimeException' in /in/6XZTf:4 Stack trace: #0 {main} thrown in /in/6XZTf on line 4
Process exited with code 255.