3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => 'this is a', 'b' => 'this is b', 'c' => 'this is c', 'd' => 'this is d'); var_dump(array_chunk($a, 2));
Output for 4.3.0 - 7.2.0
array(2) { [0]=> array(2) { [0]=> string(9) "this is a" [1]=> string(9) "this is b" } [1]=> array(2) { [0]=> string(9) "this is c" [1]=> string(9) "this is d" } }