3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_chunk(range(1,10), 4));
Output for 4.3.0 - 7.1.0
array(3) { [0]=> array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } [1]=> array(4) { [0]=> int(5) [1]=> int(6) [2]=> int(7) [3]=> int(8) } [2]=> array(2) { [0]=> int(9) [1]=> int(10) } }