3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 2; try { throw new \Exception(); } catch (\Exception $e) { throw new \RuntimeException(null, null, $e); } finally { echo 'finally'; }
based on IBXv0
Output for 7.0.0 - 7.2.0
finally Fatal error: Uncaught Exception in /in/MlG0i:6 Stack trace: #0 {main} Next RuntimeException in /in/MlG0i:8 Stack trace: #0 {main} thrown in /in/MlG0i on line 8
Process exited with code 255.
Output for 5.5.24 - 5.6.28
finally Fatal error: Uncaught exception 'Exception' in /in/MlG0i:6 Stack trace: #0 {main} Next exception 'RuntimeException' in /in/MlG0i:8 Stack trace: #0 {main} thrown in /in/MlG0i on line 8
Process exited with code 255.
Output for 5.3.21 - 5.4.45
Parse error: syntax error, unexpected '{' in /in/MlG0i on line 10
Process exited with code 255.