3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo(&$foo) { $foo[] = 2; } $a = array(1); call_user_func('foo', $a); var_dump($a);
Output for 5.3.0 - 7.1.0
Warning: Parameter 1 to foo() expected to be a reference, value given in /in/JpqKo on line 9 array(1) { [0]=> int(1) }
Output for 4.3.0 - 5.2.17
array(1) { [0]=> int(1) }