3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [ 'first' => 4, 'second' => 5, 'third' => 6 ]; $b = [ 'first' => 6, 'second' => 7, 'forth' => 8 ]; var_dump($a + $b);
based on i9GUC
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0rc3
array(4) { ["first"]=> int(4) ["second"]=> int(5) ["third"]=> int(6) ["forth"]=> int(8) }