3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try{ throw new \Exception('bla'); } catch(\Exception $e) { var_dump($e->getMessage()); throw $e; } finally { var_dump($finally); }
Output for 7.0.0 - 7.3.0rc4
string(3) "bla" Notice: Undefined variable: finally in /in/rfKer on line 9 NULL Fatal error: Uncaught Exception: bla in /in/rfKer:4 Stack trace: #0 {main} thrown in /in/rfKer on line 4
Process exited with code 255.
Output for hhvm-3.10.1 - 3.17.3
string(3) "bla" Notice: Undefined variable: finally in /in/rfKer on line 9 NULL Fatal error: Uncaught exception 'Exception' with message 'bla' in /in/rfKer:4 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.5.0 - 5.6.30
string(3) "bla" Notice: Undefined variable: finally in /in/rfKer on line 9 NULL Fatal error: Uncaught exception 'Exception' with message 'bla' in /in/rfKer:4 Stack trace: #0 {main} thrown in /in/rfKer on line 4
Process exited with code 255.