3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('zero', 'one', 'two'); &$b = 'test'; foreach ($a as $b) {} echo $b; //returns one
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19, 5.5.0 - 5.5.3
Parse error: syntax error, unexpected '&' in /in/6rQRU on line 5
Process exited with code 255.

preferences:
196.22 ms | 1395 KiB | 59 Q