3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => "test", 'b' => 'aa'); $a['a']['aa'] = "dfd"; var_dump($a); ?>
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'aa' in /in/iDgHp on line 3 array(2) { ["a"]=> string(4) "dest" ["b"]=> string(2) "aa" }
Output for 4.3.0 - 5.3.29
array(2) { ["a"]=> string(4) "dest" ["b"]=> string(2) "aa" }