3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$Input = [0,{"a":1,"b":2,"c":3,"d":[4,5]},[6,[7,8]],9,10]; <- isnt valid PHP. $Input = '[0,{"a":1,"b":2,"c":3,"d":[4,5]},[6,[7,8]],9,10]'; $myArray = explode(',', $Input ); print_r($myArray); $length = strlen($Input); for ($i=0; $i<$length; ++$i) { // echo $Input[$i]; } $Output = '[1,{"a":2,"b":3,"c":4,"d":[5,6]},[7,[8,9]],10,11]'; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => [0 [1] => {"a":1 [2] => "b":2 [3] => "c":3 [4] => "d":[4 [5] => 5]} [6] => [6 [7] => [7 [8] => 8]] [9] => 9 [10] => 10] )

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:
65.82 ms | 401 KiB | 8 Q