3v4l.org

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