3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(array( '.aaf', '..', '.' ) as $test) { var_dump($test[1] === '.'); }
Output for 5.2.10 - 7.2.0
bool(false) bool(true) Notice: Uninitialized string offset: 1 in /in/AZSpD on line 7 bool(false)
Output for 4.3.0 - 5.2.9
bool(false) bool(true) Notice: Uninitialized string offset: 1 in /in/AZSpD on line 7 bool(false)