3v4l.org

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

preferences:
37.58 ms | 402 KiB | 5 Q