3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "someval"; echo $str[-1];
Output for 7.1.0 - 7.2.0
l
Output for 5.3.22 - 7.0.20
Notice: Uninitialized string offset: -1 in /in/KTvJl on line 4