3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { echo inverse(5) . "\n"; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } finally { echo "First finally.\n"; }
based on 0pJqM
Output for 7.0.0 - 7.2.0
First finally. Fatal error: Uncaught Error: Call to undefined function inverse() in /in/cIlMN:4 Stack trace: #0 {main} thrown in /in/cIlMN on line 4
Process exited with code 255.
Output for 5.5.24 - 5.6.28
Fatal error: Call to undefined function inverse() in /in/cIlMN on line 4
Process exited with code 255.
Output for 5.3.19 - 5.4.45
Parse error: syntax error, unexpected '{' in /in/cIlMN on line 7
Process exited with code 255.