3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r( array_reduce( str_split('0811082104191403140405',2), function (&$r, $i) { $r .= chr($i)+97; }, '' ) );
Output for git.master, git.master_jit, rfc.property-hooks
Warning: {closure}(): Argument #1 ($r) must be passed by reference, value given in /in/k2J7v on line 3 Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /in/k2J7v:5 Stack trace: #0 [internal function]: {closure}('', '08') #1 /in/k2J7v(3): array_reduce(Array, Object(Closure), '') #2 {main} thrown in /in/k2J7v on line 5
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:
48.03 ms | 401 KiB | 8 Q