3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(1) { ["y"]=> array(1) { ["z"]=> array(1) { ["a"]=> string(3) "foo" } } }