3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a) { $a = 'ssss'; } $b = '1111'; foo(&$b); var_Dump($b);
Output for 7.0.0
Parse error: syntax error, unexpected '&' in /in/k4CLv on line 9
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of foo(). in /in/k4CLv on line 9
Process exited with code 255.

preferences:
156.59 ms | 1400 KiB | 24 Q