3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function format(&$collection) { $collection["prefix"] = 'ass'; } $collection = array('a' => 1, 'b' => 2, 'c' => 3); call_user_func_array('format', array($collection)); var_dump($collection);
Output for 5.3.0 - 7.1.0
Warning: Parameter 1 to format() expected to be a reference, value given in /in/OuMOm on line 6 array(3) { ["a"]=> int(1) ["b"]=> int(2) ["c"]=> int(3) }
Output for 4.3.0 - 5.2.17
array(3) { ["a"]=> int(1) ["b"]=> int(2) ["c"]=> int(3) }