3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo(array &$foo) { $foo[] = 2; } $a = array(1); call_user_func('foo', &$a); var_dump($a);
Output for 5.4.0 - 5.4.34
Fatal error: Call-time pass-by-reference has been removed in /in/Gq957 on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/Gq957 on line 9 array(2) { [0]=> int(1) [1]=> int(2) }