3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "ZEESHAN"; $i =0; while(($string[$i])!=null){ $i++; } $i--; while(($string[$i])!=null){ echo $string[$i]; $i--; }
Output for 7.1.0 - 7.2.0
Notice: Uninitialized string offset: 7 in /in/vfUFK on line 7 NAHSEEZNAHSEEZ Notice: Uninitialized string offset: -8 in /in/vfUFK on line 15
Output for 5.3.21 - 7.0.20
Notice: Uninitialized string offset: 7 in /in/vfUFK on line 7 NAHSEEZ Notice: Uninitialized string offset: -1 in /in/vfUFK on line 15