3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a[0] = "test"; $a[1] = "foo"; var_dump(a);
based on e3el8
Output for 7.2.0
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/otAJr on line 5 string(1) "a"
Output for 5.3.21 - 7.1.10
Notice: Use of undefined constant a - assumed 'a' in /in/otAJr on line 5 string(1) "a"