3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(''[0]); var_dump('a'[1]);
based on f2L5X
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Notice: Uninitialized string offset: 0 in /in/T53od on line 3 string(0) "" Notice: Uninitialized string offset: 1 in /in/T53od on line 4 string(0) ""