3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo['bar'] = 1; echo $foo[bar];
Output for 7.2.0
Warning: Use of undefined constant bar - assumed 'bar' (this will throw an Error in a future version of PHP) in /in/549Fo on line 3 1
Output for 4.3.0, 5.3.28 - 5.3.29, 5.4.18 - 7.1.10
Notice: Use of undefined constant bar - assumed 'bar' in /in/549Fo on line 3 1
Output for 4.3.1 - 5.3.27, 5.4.0 - 5.4.17
Notice: Use of undefined constant bar - assumed 'bar' in /in/JqAib on line 3 1