3v4l.org

run code in 200+ 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 - 7.2.0
1 2 3 4 5 6 7
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.