3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array( 'foo' => 'oof' ); $foo['sub']['arrays']['are']['pretty']['cool'] = 124; var_dump($foo); ?>
Output for 4.3.0 - 7.1.0
array(2) { ["foo"]=> string(3) "oof" ["sub"]=> array(1) { ["arrays"]=> array(1) { ["are"]=> array(1) { ["pretty"]=> array(1) { ["cool"]=> int(124) } } } } }