- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/bircj on line 7
Process exited with code 255.
<?php
$x = array(0 => 1, 2 => 3, 4 => 5, 6 => 7, 8 => 9);
foreach (array_keys($x) as $key => $value) {
echo $key . "->". $value."\n"
}
echo next($x)."\n";
echo next($x)."\n";
$y = $x;
echo next($y)."\n";
echo next($y)."\n";
reset($y);
echo next($x)."\n";
echo next($y)."\n";