3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $e = new Exception('one'); $e->__construct('two'); throw $e;
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: two in /in/eRlNT:3 Stack trace: #0 {main} thrown in /in/eRlNT on line 3
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'two' in /in/eRlNT:3 Stack trace: #0 {main} thrown in /in/eRlNT on line 3
Process exited with code 255.