3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array("a" => "apple", "b" => "banana"); $b = array("a" => "pear", "b" => "strawberry", "c" => "cherry"); $a += $b; // Объединение $a и $b echo "Объединение of \$a and \$b: \n"; var_dump($a);
Output for 4.3.0 - 7.2.0
Объединение of $a and $b: array(3) { ["a"]=> string(5) "apple" ["b"]=> string(6) "banana" ["c"]=> string(6) "cherry" }