3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ids = array(1 => 'dog', 2 => 'cat', 3 => 'frog', 4 => 'log'); $chunks = array_chunk($ids, 2); print_r ($chunks);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => dog [1] => cat ) [1] => Array ( [0] => frog [1] => log ) )