3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: exec(): Unable to fork [gettid] in /in/MoW9X on line 4 Warning: exec(): Unable to fork [gettid] in /in/MoW9X on line 11 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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
62.53 ms | 401 KiB | 8 Q