3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $one = [3 => 'en.yml']; $two = [3 => 'de.yml']; var_dump(array_merge($one, $two)); var_dump(array_merge($two, $one)); var_dump(array_intersect($one, $two));
Output for 5.5.0 - 7.2.6
array(2) { [0]=> string(6) "en.yml" [1]=> string(6) "de.yml" } array(2) { [0]=> string(6) "de.yml" [1]=> string(6) "en.yml" } array(0) { }