3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); $x = array(); if (!isset($x['y']['z']['a'])) { $x['y']['z']['a'] = 'foo'; } var_dump($x);
Output for 4.3.0 - 7.2.0
array(1) { ["y"]=> array(1) { ["z"]=> array(1) { ["a"]=> string(3) "foo" } } }