3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [1 => "As", 3 => "asdf"]; $aras = array_fill_keys([2,4,5], array()); $asrr = [2 => [], 3 => "ASdasfas"]; print_r($arr + $aras); print_r($aras);
based on LsaH5
Output for 5.6.0 - 7.3.0alpha1
Array ( [1] => As [3] => asdf [2] => Array ( ) [4] => Array ( ) [5] => Array ( ) ) Array ( [2] => Array ( ) [4] => Array ( ) [5] => Array ( ) )