3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array(); $foo['foo'] = 'hello'; $foo['foo']['bar'] = 'world'; print_r($foo); ?>
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'bar' in /in/nkYQg on line 5 Array ( [foo] => wello )
Output for 4.3.0 - 5.3.29
Array ( [foo] => wello )