3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array( array( 'week' => 26, '#orders_CA' => 0, 'cost_CA' => 0, '#orders_US' => 3, 'cost_US' => 18.99, '#orders_INTERNATIONAL' => 0, 'cost_INTERNATIONAL' => 0 ), array( 'week' => 26, '#orders_CA' => 0, 'cost_CA' => 0, '#orders_US' => 0, 'cost_US' => 0, '#orders_INTERNATIONAL' => 22, 'cost_INTERNATIONAL' => 32 ), ); print array_reduce($a, 'array_merge', $a);
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/9h4IO on line 23 Array
Output for 4.3.0 - 5.0.2, 5.3.0 - 5.3.29
Array
Output for 5.0.3 - 5.2.17
Warning: array_merge(): Argument #1 is not an array in /in/9h4IO on line 23 Warning: array_merge(): Argument #1 is not an array in /in/9h4IO on line 23