3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler($errno, $errstr) { var_dump($errno); } set_error_handler('handler'); function test($string) { $string = 'bar'; } $a = 'foo'; test(&$a);
Output for 5.4.0 - 5.4.15
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of test(). in lcOQd on line 11
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 test(). 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/lcOQd on line 11
Output for 5.3.25 - 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 test(). 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/elldM on line 11
Output for 5.3.0 - 5.3.24
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of test(). 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 lcOQd on line 11

preferences:
180.74 ms | 1395 KiB | 53 Q