3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 100; function x($a) { echo $a; } x(&$a);
Output for 5.4.0 - 5.4.11
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of x(). in UPSKK on line 12
Process exited with code 255.
Output for 5.3.28 - 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 x(). 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/UPSKK on line 12 100
Output for 5.3.22 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of x(). 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/7FbTe on line 12 100
Output for 5.3.0 - 5.3.21
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of x(). 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 UPSKK on line 12 100

preferences:
176.61 ms | 1387 KiB | 49 Q