3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ "a" , "b", "c"]; var_dump($arr[-1]);
based on 2O4Gf
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0alpha1
Notice: Undefined offset: -1 in /in/DZcNl on line 4 NULL
Output for hhvm-3.12.14 - 3.17.3
Notice: Undefined index: -1 in /in/DZcNl on line 4 NULL