3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = []; if ($foo['a']['b'] === 'c') { echo 'foo'; } else { echo 'bar'; }
Output for 5.4.2 - 7.2.0
Notice: Undefined index: a in /in/VdH8D on line 5 bar
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/VdH8D on line 3
Process exited with code 255.