3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ""; for ($t=0; $t<2; $t++) $input .= chr($t); echo "input = ".$input."\n\n"; var_dump(strpos($input, ".")); for ($t=0; $t<strlen($input); $t++) echo "[".ord(substr($input, $t, 1))."] ";

preferences:
35.57 ms | 402 KiB | 5 Q