3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ary = array(5, 6, 2, 3, 1); foreach($ary as &$a) { echo $a; } // no reset after the first foreach on the a &$a = 0; foreach($ary as $a) { echo $a; }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '&' in /in/fqtum on line 8
Process exited with code 255.

preferences:
186.31 ms | 1399 KiB | 58 Q