3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myString = "5.1,3.5,Red,4.9,3,Blue,4.7,3.2,Red,4.6,3.1,Red,5,3.6,Red"; //and so on $Arr = explode(",", $myString); $chunks = array_chunk($Arr, 3); print_r($chunks);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 5.1 [1] => 3.5 [2] => Red ) [1] => Array ( [0] => 4.9 [1] => 3 [2] => Blue ) [2] => Array ( [0] => 4.7 [1] => 3.2 [2] => Red ) [3] => Array ( [0] => 4.6 [1] => 3.1 [2] => Red ) [4] => Array ( [0] => 5 [1] => 3.6 [2] => Red ) )

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:
127.93 ms | 407 KiB | 5 Q