3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "bar"; $foo[-2] = "b";
Output for 7.1.0 - 7.2.0
Output for 5.3.22 - 7.0.20
Warning: Illegal string offset: -2 in /in/3vdbD on line 4