3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 1; function bar($foo) { $foo = 2; } bar(&$foo); echo $foo;
Output for 5.4.0 - 5.4.19
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of bar(). in /in/kM3d9 on line 10
Process exited with code 255.
Output for 5.3.0 - 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 bar(). 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/kM3d9 on line 10 2

preferences:
174.91 ms | 1395 KiB | 57 Q