3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function __destruct() { echo 'destruct'; } public function __construct() { echo 'construct'; } } echo 'start'; new Test(); throw new Exception();
based on LSp7r
Output for 7.0.0 - 7.2.0
startconstructdestruct Fatal error: Uncaught Exception in /in/2H325:19 Stack trace: #0 {main} thrown in /in/2H325 on line 19
Process exited with code 255.
Output for 5.3.19 - 5.6.21
startconstructdestruct Fatal error: Uncaught exception 'Exception' in /in/2H325:19 Stack trace: #0 {main} thrown in /in/2H325 on line 19
Process exited with code 255.