3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); $x = []; if (!isset($x['y']['z']['a'])) { $x['y']['z']['a'] = 'foo'; } var_dump($x);
Output for 5.4.0 - 7.1.0
array(1) { ["y"]=> array(1) { ["z"]=> array(1) { ["a"]=> string(3) "foo" } } }
Output for 5.3.6 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/tmXSW on line 3
Process exited with code 255.