- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/phPS7 on line 5
Process exited with code 255.
<?php
$a = [1, 2, 3, 4, 5];
reset($a)
foreach ($a as $b) {
echo current($a);
}