3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "foobar"; var_dump($str[-7]);
based on lmW7h
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0alpha1
Notice: Uninitialized string offset: -7 in /in/2uiG9 on line 6 string(0) ""
Output for hhvm-3.22.0
Notice: Uninitialized string offset: -7 in /in/2uiG9 on line -1 string(0) ""