3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = function () { return [['a'], ['b'], ['c']]; }; $bar = function () { return [['a'], ['b'], ['c']]; }; var_dump(array_merge( ...$foo(), ...$bar() ));
based on nAP2X
Output for 5.6.0 - 7.2.6
array(6) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "a" [4]=> string(1) "b" [5]=> string(1) "c" }