3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public function b() { return; } public static function c() {} }; $a = new A; //$a->b(&$v); A::c(&$v); function h() {}; h(&$v);
Output for 5.4.18 - 5.4.19
Fatal error: Call-time pass-by-reference has been removed in /in/si2AX on line 10
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/Tapnq on line 10
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/si2AX on line 10 Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of h(). 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/si2AX on line 14
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/Tapnq on line 10 Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of h(). 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/Tapnq on line 14