3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $colors{'red'} = '#ff0000'; $shortnames{'Robert'} = 'Bob'; print_r($colors); print_r($shortnames);
based on UA5oD
Output for 4.3.0 - 7.1.0
Array ( [red] => #ff0000 ) Array ( [Robert] => Bob )