3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tokens = token_get_all(<<<EOP <?php echo strpos('Hello World', 0, -5).'Wouter'; EOP ); var_dump(array_map(function ($token) { return sprintf('Regel %d %s %s', $token[0], trim($token[1]), token_name($token[2])); }, $tokens));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Uninitialized string offset 1 in /in/QIEQk on line 12 Warning: Uninitialized string offset 2 in /in/QIEQk on line 12 Fatal error: Uncaught TypeError: token_name(): Argument #1 ($id) must be of type int, string given in /in/QIEQk:12 Stack trace: #0 /in/QIEQk(12): token_name('') #1 [internal function]: {closure}('(') #2 /in/QIEQk(11): array_map(Object(Closure), Array) #3 {main} thrown in /in/QIEQk on line 12
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:
63.49 ms | 402 KiB | 8 Q