3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test( &$var ) { $var = 'reference'; } $var = 'no reference'; call_user_func('test', $var ); var_dump($var );
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Parameter 1 to test() expected to be a reference, value given in /in/VW2aB on line 10 string(12) "no reference"
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.13.2
string(12) "no reference"