3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = ""; for ($t=230; $t<250; $t++) $input .= chr($t); for ($t=0; $t<strlen($input); $t++) { echo "ord = ".ord(substr($input, $t, 1)).", substr = ".substr($input, $t, 1)."\n"; } echo "strlen = ".strlen($input)."\n"; echo("t = $t \n");
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ord = 230, substr = � ord = 231, substr = � ord = 232, substr = � ord = 233, substr = � ord = 234, substr = � ord = 235, substr = � ord = 236, substr = � ord = 237, substr = � ord = 238, substr = � ord = 239, substr = � ord = 240, substr = � ord = 241, substr = � ord = 242, substr = � ord = 243, substr = � ord = 244, substr = � ord = 245, substr = � ord = 246, substr = � ord = 247, substr = � ord = 248, substr = � ord = 249, substr = � strlen = 20 t = 20