3v4l.org

run code in 300+ PHP versions simultaneously
<?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));

preferences:
43.83 ms | 402 KiB | 5 Q