3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = "the number of letters in mississippi = 12"; $i=0; $cp = $input; while( !(ctype_digit($cp[$i++]) ) ) ; echo $i; echo $cp[$i],$cp[$i+1],"\n";
Output for 5.2.10 - 7.1.0
402 Notice: Uninitialized string offset: 41 in /in/qS2es on line 9
Output for 4.3.0 - 5.2.9
402 Notice: Uninitialized string offset: 41 in /in/qS2es on line 9