3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('xml' => array( 'attributes' => array( 'version' => '1.0', 'encoding' => 'utf-8', ), )); $t = array('test' => 'my_test_123'); $a['xml']['attributes'] = array_merge($a['xml']['attributes'], $t); print_r($a);

preferences:
35.52 ms | 402 KiB | 5 Q