3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $colors{'red'} = '#ff0000'; $colors{'blue'} = '#0000ff'; $shortnames{'Robert'} = 'Bob'; $shortnames{'James'} = 'Jim'; print_r($colors); print_r($shortnames);
based on YTvW2
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [red] => #ff0000 [blue] => #0000ff ) Array ( [Robert] => Bob [James] => Jim )
Output for hhvm-3.10.0

Process exited with code 153.