3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $sname = "Aftab"; $count = 0; $m = 0; $TP = 60; $uid = "9475332864"; $pwd = "fput7nh"; $start = 1; $cookie = tempnam("/tmp", "CURLCOOKIE"); $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7"; echo "<h2>$uid </h2>"; $server = "http://ultoo.com"; $url = "$server/login.php"; $url_p = "$server/poll.php"; $url_pc = "$server/PollCompletion.php"; $url_pcc = "$server/PollCompleted.php"; $url_n = "$server/login.php"; $s_c = "$server/secure.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url_n"); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Accept: */*")); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "$server"); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); $html = curl_exec($ch); preg_match("/<input name=\"(.*?)\" type=\"text\" class=\"(.*?)\" id=\"(.*?)\" maxlength=\"10\"/m", $html, $n); preg_match("/<input name=\"(.*?)\" type=\"password\" class=\"(.*?)\" id=\"(.*?)\" maxlength = \"20\"/m", $html, $p); preg_match("/<input type=\"hidden\" name=\"(.*?)\" value=\"\"/m", $html, $m); $data1 = "$m[1]=\"\"&$n[1]=$uid&$p[1]=$pwd&RememberMe=1&submit2=LOGIN HERE"; echo $data1; curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Accept: */*")); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "$url"); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "$data1"); $html = curl_exec($ch); //echo $html; curl_setopt($ch, CURLOPT_URL, "$s_c"); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Accept: */*")); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "$url"); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); curl_setopt($ch, CURLOPT_POST, 1); $html = curl_exec($ch); //$sx = simplexml_load_string($html); preg_match_all('/<img[^>]+>/i', $html, $m); echo "<pre>".print_r($m,true); //preg_match_all('/<(?:"[^"]*"[\'"]*|\'[^\']*\'[\'"]*|[^\'">])+>/', $html, $m); //var_dump($sx); //echo "<pre>".print_r($sx,true); ?>

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)
8.3.60.0090.00618.55
8.3.50.0130.00721.27
8.3.40.0110.00419.09
8.3.30.0040.01120.34
8.3.20.0080.00020.34
8.3.10.0040.00422.05
8.3.00.0080.00022.64
8.2.180.0150.00616.75
8.2.170.0150.00622.96
8.2.160.0090.01622.12
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0110.00426.16
8.2.120.0090.00019.25
8.2.110.0000.00919.31
8.2.100.0000.01218.16
8.2.90.0000.00819.35
8.2.80.0000.00919.36
8.2.70.0030.00517.75
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00818.28
8.2.30.0040.00418.25
8.2.20.0040.00417.81
8.2.10.0040.00417.98
8.2.00.0070.00017.79
8.1.280.0060.01225.92
8.1.270.0070.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.22
8.1.230.0110.00019.13
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00817.43
8.1.180.0000.00818.10
8.1.170.0050.00318.39
8.1.160.0040.00418.86
8.1.150.0080.00018.73
8.1.140.0070.00017.37
8.1.130.0030.00317.85
8.1.120.0000.00717.51
8.1.110.0040.00417.40
8.1.100.0040.00417.45
8.1.90.0040.00417.46
8.1.80.0060.00317.56
8.1.70.0050.00317.48
8.1.60.0050.00317.53
8.1.50.0030.00617.57
8.1.40.0080.00017.66
8.1.30.0000.00817.65
8.1.20.0050.00317.72
8.1.10.0030.00617.68
8.1.00.0060.00317.47
8.0.300.0000.00918.77
8.0.290.0040.00417.28
8.0.280.0000.00718.55
8.0.270.0040.00417.39
8.0.260.0070.00016.90
8.0.250.0000.00717.10
8.0.240.0070.00216.99
8.0.230.0030.00317.02
8.0.220.0030.00517.08
8.0.210.0000.00817.05
8.0.200.0030.00317.07
8.0.190.0040.00417.12
8.0.180.0070.00017.01
8.0.170.0000.00817.12
8.0.160.0000.00717.14
8.0.150.0000.00716.97
8.0.140.0040.00416.95
8.0.130.0000.00513.52
8.0.120.0090.00016.91
8.0.110.0080.00017.05
8.0.100.0040.00416.88
8.0.90.0040.00416.92
8.0.80.0030.01217.05
8.0.70.0070.00016.91
8.0.60.0000.00717.04
8.0.50.0070.00016.96
8.0.30.0130.00717.15
8.0.20.0140.00517.40
8.0.10.0040.00417.04
8.0.00.0120.00916.79
7.4.330.0050.00015.00
7.4.320.0030.00316.46
7.4.300.0040.00416.65
7.4.290.0030.00616.53
7.4.280.0070.00016.70
7.4.270.0000.00716.66
7.4.260.0060.00313.38
7.4.250.0000.00816.55
7.4.240.0020.00516.67
7.4.230.0030.00316.71
7.4.220.0070.01416.73
7.4.210.0070.01016.69
7.4.200.0070.00016.78
7.4.190.0070.00016.67
7.4.160.0090.00616.50
7.4.150.0060.01217.40
7.4.140.0120.00817.86
7.4.130.0140.00516.56
7.4.120.0110.00716.65
7.4.110.0100.00716.46
7.4.100.0060.01316.61
7.4.90.0090.00916.58
7.4.80.0150.00319.39
7.4.70.0070.01016.57
7.4.60.0060.01016.78
7.4.50.0030.00616.67
7.4.40.0040.01122.77
7.4.30.0110.00716.50
7.4.00.0120.00615.06
7.3.330.0000.00613.49
7.3.320.0050.00013.28
7.3.310.0030.00516.66
7.3.300.0040.00316.50
7.3.290.0040.01116.56
7.3.280.0090.00716.52
7.3.270.0180.00017.40
7.3.260.0200.00316.45
7.3.250.0110.00716.58
7.3.240.0110.00716.50
7.3.230.0150.00316.68
7.3.210.0110.00816.60
7.3.200.0070.01019.39
7.3.190.0030.01716.78
7.3.180.0110.00616.40
7.3.170.0110.00616.62
7.3.160.0120.01116.63
7.3.120.0000.01414.95
7.3.10.0030.00916.60
7.3.00.0030.01016.48
7.2.330.0110.00716.81
7.2.320.0030.01516.74
7.2.310.0060.01216.84
7.2.300.0100.00716.62
7.2.290.0120.00616.66
7.2.130.0080.00816.96
7.2.120.0030.01016.90
7.2.110.0100.00317.04
7.2.100.0120.00316.89
7.2.90.0040.00717.06
7.2.80.0100.00717.06
7.2.70.0030.00916.98
7.2.60.0030.01017.05
7.2.50.0090.00316.98
7.2.40.0090.00616.70
7.2.30.0030.00616.89
7.2.20.0070.00716.94
7.2.10.0030.01316.80
7.2.00.0250.00518.01
7.1.250.0040.01115.78
7.1.100.0030.01017.87
7.1.70.0000.00817.19
7.1.60.0070.01819.32
7.1.50.0030.02116.59
7.1.00.0070.06022.51
7.0.200.0070.01015.05
7.0.140.0070.07322.14
7.0.110.0000.05720.14
7.0.100.0170.06720.06
7.0.90.0100.08020.03
7.0.80.0130.04320.09
7.0.70.0070.08720.02
7.0.60.0130.07020.11
7.0.50.0200.07020.52
7.0.40.0170.04020.13
7.0.30.0070.08720.02
7.0.20.0100.04720.32
7.0.10.0030.07020.03
7.0.00.0030.05020.03
5.6.280.0130.06321.14
5.6.260.0070.06720.77
5.6.250.0070.06320.67
5.6.240.0030.04320.59
5.6.230.0070.08320.71
5.6.220.0070.08320.71
5.6.210.0170.04720.65
5.6.200.0030.08321.02
5.6.190.0030.09021.16
5.6.180.0070.08721.13
5.6.170.0100.07721.00
5.6.160.0130.07721.33
5.6.150.0100.08020.98
5.6.140.0100.04721.04
5.6.130.0030.06021.07
5.6.120.0030.09321.07
5.6.110.0100.08021.07
5.6.100.0030.09021.04
5.6.90.0070.10320.96
5.6.80.0130.07320.37
5.6.70.0070.08020.36
5.6.60.0030.08020.37
5.6.50.0000.07320.33
5.6.40.0130.07720.33
5.6.30.0070.07020.43
5.6.20.0070.07020.52
5.6.10.0070.04020.39
5.6.00.0100.04020.32
5.5.380.0030.05320.27
5.5.370.0030.09020.59
5.5.360.0170.07020.47
5.5.350.0070.08020.48
5.5.340.0100.07321.01
5.5.330.0070.07721.01
5.5.320.0170.05320.91
5.5.310.0000.06320.84
5.5.300.0200.07320.71
5.5.290.0070.07320.89
5.5.280.0000.09320.80
5.5.270.0070.05721.08
5.5.260.0070.08721.04
5.5.250.0070.07020.73
5.5.240.0070.05020.31
5.5.230.0170.07720.34
5.5.220.0030.07720.14
5.5.210.0100.06720.29
5.5.200.0130.04320.35
5.5.190.0070.07720.19
5.5.180.0130.07720.18
5.5.160.0000.05020.20
5.5.150.0100.03320.18
5.5.140.0100.03020.44
5.5.130.0070.03720.24
5.5.120.0030.04320.11
5.5.110.0030.04020.27
5.5.100.0070.03720.18
5.5.90.0000.04020.27
5.5.80.0100.07320.30
5.5.70.0100.03320.24
5.5.60.0030.04720.20
5.5.50.0030.03720.31
5.5.40.0030.08320.14
5.5.30.0030.05720.05
5.5.20.0030.04320.25
5.5.10.0000.05320.04
5.5.00.0070.04020.24
5.4.450.0070.05019.49
5.4.440.0070.08319.49
5.4.430.0070.07719.26
5.4.420.0100.07719.33
5.4.410.0100.07319.35
5.4.400.0030.08718.97
5.4.390.0100.07018.99
5.4.380.0100.06719.06
5.4.370.0070.06319.27
5.4.360.0000.05319.01
5.4.350.0100.07319.06
5.4.340.0030.05018.95
5.4.320.0030.06318.98
5.4.310.0130.04719.01
5.4.300.0100.04019.02
5.4.290.0000.04018.95
5.4.280.0000.04319.16
5.4.270.0000.04018.94
5.4.260.0100.04018.94
5.4.250.0030.03719.00
5.4.240.0070.04019.05
5.4.230.0030.03718.90
5.4.220.0070.03718.97
5.4.210.0100.03018.99
5.4.200.0030.04319.00
5.4.190.0070.04319.05
5.4.180.0000.08018.98
5.4.170.0030.05718.93
5.4.160.0130.04319.16
5.4.150.0000.06719.23
5.4.140.0070.05316.48
5.4.130.0100.04016.48
5.4.120.0100.03716.48
5.4.110.0030.03716.25
5.4.100.0130.02316.30
5.4.90.0030.03316.19
5.4.80.0030.03716.38
5.4.70.0030.03716.39
5.4.60.0070.07016.29
5.4.50.0000.04016.22
5.4.40.0100.05716.61
5.4.30.0030.04016.45
5.4.20.0070.06316.06
5.4.10.0030.03716.45
5.4.00.0170.04716.01
5.3.290.0030.03714.77
5.3.280.0030.06714.57
5.3.270.0030.04014.58
5.3.260.0000.04714.63
5.3.250.0070.03314.56
5.3.240.0030.04314.73
5.3.230.0000.04014.63
5.3.220.0000.03714.38
5.3.210.0070.03714.68
5.3.200.0030.03714.70
5.3.190.0070.03314.48
5.3.180.0070.03014.52
5.3.170.0030.03714.61
5.3.160.0100.05314.47
5.3.150.0000.04014.66
5.3.140.0000.03714.64
5.3.130.0070.03314.67
5.3.120.0100.06014.47
5.3.110.0000.06014.52
5.3.100.0070.06314.17
5.3.90.0000.04014.06
5.3.80.0030.05313.95
5.3.70.0070.03313.98
5.3.60.0030.06314.13
5.3.50.0000.04713.91
5.3.40.0030.03313.90
5.3.30.0030.04313.73
5.3.20.0000.03713.51
5.3.10.0070.06013.69
5.3.00.0070.04713.56
5.2.170.0000.03313.32
5.2.160.0070.05313.32
5.2.150.0000.03013.32
5.2.140.0000.04713.32
5.2.130.0000.05013.32
5.2.120.0030.04013.32
5.2.110.0070.05713.32
5.2.100.0100.05713.32
5.2.90.0070.05713.32
5.2.80.0000.06713.32
5.2.70.0030.04313.32
5.2.60.0130.05713.32
5.2.50.0000.06713.32
5.2.40.0130.05013.32
5.2.30.0030.06713.32
5.2.20.0030.06313.32
5.2.10.0100.05313.32
5.2.00.0000.04713.32
5.1.60.0000.05713.32
5.1.50.0030.05313.32
5.1.40.0030.05313.32
5.1.30.0030.06013.32
5.1.20.0030.04713.32
5.1.10.0030.04713.32
5.1.00.0030.04713.32
5.0.50.0030.04013.32
5.0.40.0000.04713.32
5.0.30.0030.05013.32
5.0.20.0100.03713.32
5.0.10.0030.04013.32
5.0.00.0070.04713.32
4.4.90.0030.03713.32
4.4.80.0000.02313.32
4.4.70.0030.04013.32
4.4.60.0030.02313.32
4.4.50.0100.02713.32
4.4.40.0030.05013.32
4.4.30.0030.03713.32
4.4.20.0030.03313.32
4.4.10.0000.03013.32
4.4.00.0030.05313.32
4.3.110.0000.03713.32
4.3.100.0030.03313.32
4.3.90.0000.03013.32
4.3.80.0030.05013.32
4.3.70.0030.02313.32
4.3.60.0030.03313.32
4.3.50.0070.02013.32
4.3.40.0000.03713.32
4.3.30.0030.03313.32
4.3.20.0000.02313.32
4.3.10.0070.01313.32
4.3.00.0000.03313.32

preferences:
46.04 ms | 401 KiB | 5 Q