3v4l.org

run code in 200+ 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 - 7.2.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
string(12) "no reference"