3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 'hello world'; echo $x{0}; echo $x{-1};
Output for 7.1.0
hd
Output for 5.2.10 - 5.6.28, 7.0.0 - 7.0.14
h Notice: Uninitialized string offset: -1 in /in/4OqSS on line 7
Output for hhvm-3.10.0 - 3.12.0
h
Output for 4.3.0 - 5.2.9
h Notice: Uninitialized string offset: -1 in /in/4OqSS on line 7