3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = array(1,2,3,4,5,6,7); $a = array_chunk($t,3); print_r($a);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => 1 [1] => 2 [2] => 3 ) [1] => Array ( [0] => 4 [1] => 5 [2] => 6 ) [2] => Array ( [0] => 7 ) )