3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=array('first','second','third'); echo $a[1][-1]; ?>
based on 0NO7q
Output for 7.1.0 - 7.2.0
d
Output for 5.2.10 - 7.0.20
Notice: Uninitialized string offset: -1 in /in/DvmVp on line 3
Output for 4.3.0 - 5.2.9
Notice: Uninitialized string offset: -1 in /in/DvmVp on line 3