3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_x = array(); $array_x['a'] = array(1,2,3,4); $array_x['b'] = array(2,3,4,5); foreach ($array_x as $k => $v) { foreach (&$v as $x) { $x = $x * 2; } } var_dump($array_x);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '&' in /in/713OL on line 8
Process exited with code 255.

preferences:
182.2 ms | 1395 KiB | 65 Q