3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "barbaz"; var_dump($foo[3-6]);
Output for 7.1.0 - 7.3.0rc4
string(1) "b"
Output for 5.2.10 - 7.0.20
Notice: Uninitialized string offset: -3 in /in/1dj1s on line 5 string(0) ""
Output for 4.3.0 - 5.2.9
Notice: Uninitialized string offset: -3 in /in/1dj1s on line 5 string(0) ""