<?$abc = array('a');foreach ($abc as $k => &$a) { echo $a; $abc[] = 'c'; if ($k > 5) die;}
Standard input is empty
a
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!