3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.4.10 - 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.
Output for 5.3.20 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of foo(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /in/k4CLv on line 9 string(4) "ssss"