3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(1, 2, 3, 4); $chunk = array_chunk($arr, 2); $items = array_shift($chunk); foreach ($chunk as $item) { print_r($item); }
Output for 4.3.0 - 7.1.0
Array ( [0] => 3 [1] => 4 )