3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { exec('gettid'); throw new Exception('Coucou'); } catch (Exception $e) { echo zend_thread_id(); var_dump($e->getMessage()); return 'test'; } finally { exec('gettid'); echo "I'm going there"; }
based on 6oh1j
Output for 7.0.0 - 7.2.0
I'm going there Fatal error: Uncaught Error: Call to undefined function zend_thread_id() in /in/MoW9X:7 Stack trace: #0 {main} thrown in /in/MoW9X on line 7
Process exited with code 255.
Output for 5.5.24 - 5.6.28
Fatal error: Call to undefined function zend_thread_id() in /in/MoW9X on line 7
Process exited with code 255.
Output for 5.3.18 - 5.4.45
Parse error: syntax error, unexpected '{' in /in/MoW9X on line 10
Process exited with code 255.