3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s='123 123 12345'; echo $lenght = strlen($s); for($i=1;$i<=$lenght;$i++){ echo $s[$i]; }
Output for 5.2.10 - 7.1.10
1323 123 12345 Notice: Uninitialized string offset: 13 in /in/gGad3 on line 8
Output for 4.3.0 - 5.2.9
1323 123 12345 Notice: Uninitialized string offset: 13 in /in/gGad3 on line 8