3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'ABCDEFGH'; echo $string[-1];
Output for 7.1.0 - 7.3.0rc4
H
Output for 5.2.10 - 7.0.20
Notice: Uninitialized string offset: -1 in /in/TVITY on line 4
Output for 4.3.0 - 5.2.9
Notice: Uninitialized string offset: -1 in /in/TVITY on line 4