3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'asdfgh'; echo $str[-1];
Output for 7.1.0 - 7.2.0
h
Output for 5.3.20 - 7.0.20
Notice: Uninitialized string offset: -1 in /in/RfBbX on line 4