3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "foobar"; echo $str[-1];
Output for 7.1.0 - 7.3.0alpha1
r
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30
Notice: Uninitialized string offset: -1 in /in/BbJcB on line 5
Output for hhvm-3.22.0
Notice: Uninitialized string offset: -1 in /in/BbJcB on line -1