3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($bar) { $bar++; echo $bar; } $bob = 1; foo(&$bob); echo ':', $bob;
Output for 5.4.0 - 5.4.21
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/MBBVP on line 5
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 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/MBBVP on line 5 2:2

preferences:
172.83 ms | 1399 KiB | 59 Q