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); foreach($myArray as $my_Array){ echo $my_Array.'<br>'; } $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
[0<br>{"a":1<br>"b":2<br>"c":3<br>"d":[4<br>5]}<br>[6<br>[7<br>8]]<br>9<br>10]<br>

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