3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = [ 'xyz', 'dublin', 40, 'abc', 'canada', 2 ]; $matches = array_chunk($matches,3); print_r($matches); foreach ($matches as $value) { var_dump($value); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => xyz [1] => dublin [2] => 40 ) [1] => Array ( [0] => abc [1] => canada [2] => 2 ) ) array(3) { [0]=> string(3) "xyz" [1]=> string(6) "dublin" [2]=> int(40) } array(3) { [0]=> string(3) "abc" [1]=> string(6) "canada" [2]=> int(2) }

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:
26.22 ms | 406 KiB | 5 Q