3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array(1) { [0]=> object(stdClass)#202 (3) { ["title"]=> string(11) "Spend By BU" ["code"]=> string(3) "ISG" ["fixedCost"]=> float(231.7) } } array(2) { [0]=> object(stdClass)#202 (3) { ["title"]=> string(11) "Spend By BU" ["code"]=> string(3) "PSG" ["fixedCost"]=> float(463.4) } [1]=> object(stdClass)#202 (3) { ["title"]=> string(11) "Spend By BU" ["code"]=> string(3) "PSG" ["fixedCost"]=> float(463.4) } } array(3) { [0]=> object(stdClass)#202 (3) { ["title"]=> string(11) "Spend By BU" ["code"]=> string(3) "TSG" ["fixedCost"]=> float(695.1) } [1]=> object(stdClass)#202 (3) { ["title"]=> string(11) "Spend By BU" ["code"]=> string(3) "TSG" ["fixedCost"]=> float(695.1) } [2]=> object(stdClass)#202 (3) { ["title"]=> string(11) "Spend By BU" ["code"]=> string(3) "TSG" ["fixedCost"]=> float(695.1) } } $result = call_user_func_array("array_merge", $input); var_export($result);
Output for 5.3.0 - 5.4.16
Parse error: syntax error, unexpected '{' in /in/uM11f on line 2
Process exited with code 255.