3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "test"; function get_info($a) { echo $a; } get_info(&$foo);
Output for 5.4.0 - 5.4.10
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of get_info(). in PSZYr on line 6
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 get_info(). 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/PSZYr on line 6 test
Output for 5.3.21 - 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 get_info(). 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/CK0gn on line 6 test
Output for 5.3.0 - 5.3.20
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of get_info(). 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 PSZYr on line 6 test

preferences:
179.73 ms | 940 KiB | 49 Q