3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function imageFilename($arr) { return $arr; } var_dump(array(1) + array(2)); var_dump(array_filter(array_map('imageFilename', array('a' => 2))) + array('b' => 1));
Output for 4.3.0 - 7.1.0
array(1) { [0]=> int(1) } array(2) { ["a"]=> int(2) ["b"]=> int(1) }