3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str="hello"; for ($i = 0; strlen($str{$i}); $i++) { echo strlen($str{$i}) . "\n"; }
Output for 5.6.0 - 7.3.0alpha1
1 1 1 1 1 Notice: Uninitialized string offset: 5 in /in/BeGF6 on line 4