3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $colors->{'red'} = '#ff0000'; $shortnames{'Robert'} = 'Bob'; print_r($colors,$shortnames);
based on IGXOS
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Warning: Creating default object from empty value in /in/JfLsv on line 2 Warning: print_r() expects parameter 2 to be boolean, array given in /in/JfLsv on line 4
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/JfLsv on line 2 Warning: print_r() expects parameter 2 to be boolean, array given in /in/JfLsv on line 4
Output for 4.3.0 - 4.4.9
Warning: print_r() expects parameter 2 to be boolean, array given in /in/JfLsv on line 4