3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file_link = array( '#theme' => 'file_link', '#file' => 'blah.html', ); $element['file'] = $file_link += array('#weight' => -10); var_dump($element);
based on ApXh6
Output for 4.3.0 - 7.1.0
array(1) { ["file"]=> array(3) { ["#theme"]=> string(9) "file_link" ["#file"]=> string(9) "blah.html" ["#weight"]=> int(-10) } }