3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
1323 123 12345 Notice: Uninitialized string offset: 13 in /in/gGad3 on line 8
Output for hhvm-3.10.0 - 3.12.0
1323 123 12345
Output for 4.3.0 - 5.2.9
1323 123 12345 Notice: Uninitialized string offset: 13 in /in/gGad3 on line 8