3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'hello'; echo $str[-1];
Output for 7.1.0 - 7.2.6
o
Output for 5.2.10 - 7.0.20
Notice: Uninitialized string offset: -1 in /in/j3NT9 on line 4
Output for 4.3.0 - 5.2.9
Notice: Uninitialized string offset: -1 in /in/j3NT9 on line 4