3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $meta = [1, 2, 3]; function test($a, &$b, $c) { $b = 'xx'; } test(...$meta); var_dump($meta);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
array(3) { [0]=> int(1) [1]=> string(2) "xx" [2]=> int(3) }
Output for hhvm-3.15.4
Warning: Parameter 2 to test() expected to be a reference, value given in /in/98opv on line 9 array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }