3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_fill_keys(array_values(range('a', 'z')), []));
based on MiWjT
Output for 5.5.0 - 7.3.0beta1
array(26) { ["a"]=> array(0) { } ["b"]=> array(0) { } ["c"]=> array(0) { } ["d"]=> array(0) { } ["e"]=> array(0) { } ["f"]=> array(0) { } ["g"]=> array(0) { } ["h"]=> array(0) { } ["i"]=> array(0) { } ["j"]=> array(0) { } ["k"]=> array(0) { } ["l"]=> array(0) { } ["m"]=> array(0) { } ["n"]=> array(0) { } ["o"]=> array(0) { } ["p"]=> array(0) { } ["q"]=> array(0) { } ["r"]=> array(0) { } ["s"]=> array(0) { } ["t"]=> array(0) { } ["u"]=> array(0) { } ["v"]=> array(0) { } ["w"]=> array(0) { } ["x"]=> array(0) { } ["y"]=> array(0) { } ["z"]=> array(0) { } }