3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $colors{'red'} = '#ff0000'; $colors{'blue'} = '#0000ff'; $shortnames{'Robert'} = 'Bob'; $shortnames{'James'} = 'Jim'; print_r($colors,$shortnames);
based on XsbYq
Output for 4.3.0 - 7.1.7
Warning: print_r() expects parameter 2 to be boolean, array given in /in/YTvW2 on line 6