3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = array(1,2,3,4,5,6,7); $a = array_chunk($t,3); foreach($a as $key => $v) { foreach($v as $k => $e) { echo $e."\r\n"; } } //print_r($a);
based on r5tTK
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1 2 3 4 5 6 7
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/bTMEH on line 11
Process exited with code 255.