3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('xml' => array( 'attributes' => array( 'version' => '1.0', 'encoding' => 'utf-8', ), )); var_dump(array_merge($a['xml']['attributes'], array('test' => 'my_test_123')));
Output for 4.3.0 - 7.1.0
array(3) { ["version"]=> string(3) "1.0" ["encoding"]=> string(5) "utf-8" ["test"]=> string(11) "my_test_123" }