3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello World!"; $len = strlen($str); $out = ''; for($i = 0; $i < $len; $i++){ $out .= ord($str[$i]); } echo $out;

preferences:
59.15 ms | 402 KiB | 5 Q