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"; relogin : $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.0120.00918.34
8.3.50.0100.01221.08
8.3.40.0070.00718.79
8.3.30.0080.00820.47
8.3.20.0000.00720.46
8.3.10.0040.00421.84
8.3.00.0000.00822.43
8.2.180.0090.00616.63
8.2.170.0120.00922.96
8.2.160.0000.01422.16
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.01526.16
8.2.120.0050.00317.88
8.2.110.0060.00620.68
8.2.100.0090.00318.04
8.2.90.0080.00018.28
8.2.80.0040.00419.59
8.2.70.0030.00617.62
8.2.60.0030.00618.16
8.2.50.0040.00418.07
8.2.40.0080.00018.09
8.2.30.0000.00818.05
8.2.20.0070.00017.83
8.2.10.0070.00017.77
8.2.00.0000.00817.96
8.1.280.0130.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0040.00422.18
8.1.230.0080.00421.05
8.1.220.0080.00017.91
8.1.210.0030.00619.04
8.1.200.0030.00617.35
8.1.190.0030.00517.41
8.1.180.0000.00818.10
8.1.170.0080.00018.70
8.1.160.0070.00318.84
8.1.150.0040.00418.64
8.1.140.0050.00317.41
8.1.130.0040.00417.99
8.1.120.0040.00417.48
8.1.110.0000.00817.39
8.1.100.0040.00417.47
8.1.90.0030.00617.46
8.1.80.0000.00817.47
8.1.70.0000.00717.48
8.1.60.0030.00517.64
8.1.50.0040.00417.64
8.1.40.0000.00717.52
8.1.30.0040.00417.69
8.1.20.0030.00517.71
8.1.10.0060.00317.61
8.1.00.0000.00817.63
8.0.300.0040.00420.18
8.0.290.0070.00017.02
8.0.280.0080.00018.43
8.0.270.0040.00316.89
8.0.260.0030.00317.00
8.0.250.0030.00317.11
8.0.240.0040.00417.09
8.0.230.0040.00417.07
8.0.220.0070.00017.05
8.0.210.0000.00716.94
8.0.200.0000.00717.09
8.0.190.0040.00417.18
8.0.180.0040.00417.07
8.0.170.0000.00817.10
8.0.160.0040.00417.08
8.0.150.0050.00316.89
8.0.140.0040.00416.98
8.0.130.0060.00013.63
8.0.120.0050.00316.93
8.0.110.0040.00417.07
8.0.100.0070.00017.04
8.0.90.0030.00516.93
8.0.80.0030.01217.05
8.0.70.0080.00016.96
8.0.60.0000.00716.91
8.0.50.0000.00816.94
8.0.30.0140.00917.11
8.0.20.0120.00717.40
8.0.10.0070.00017.09
8.0.00.0080.01116.89
7.4.330.0000.00515.00
7.4.320.0030.00316.62
7.4.300.0030.00316.71
7.4.290.0030.00616.66
7.4.280.0070.00016.73
7.4.270.0000.00816.57
7.4.260.0030.00513.48
7.4.250.0000.00816.64
7.4.240.0020.00516.64
7.4.230.0000.00716.73
7.4.220.0070.01116.73
7.4.210.0090.00716.73
7.4.200.0050.00216.55
7.4.190.0040.00416.76
7.4.160.0140.00716.98
7.4.150.0060.01217.40
7.4.140.0140.01117.86
7.4.130.0080.00816.68
7.4.120.0090.00816.56
7.4.110.0070.01016.53
7.4.100.0100.01016.84
7.4.90.0090.00916.70
7.4.80.0110.00719.39
7.4.70.0090.00916.80
7.4.60.0070.01016.69
7.4.50.0030.00616.58
7.4.40.0080.00822.77
7.4.30.0110.00616.70
7.4.00.0050.01115.10
7.3.330.0050.00013.49
7.3.320.0030.00313.40
7.3.310.0030.00316.46
7.3.300.0070.00016.45
7.3.290.0130.00716.50
7.3.280.0110.00516.52
7.3.270.0070.01017.40
7.3.260.0060.01316.34
7.3.250.0020.01516.46
7.3.240.0130.00316.50
7.3.230.0030.01316.54
7.3.210.0060.01416.59
7.3.200.0130.00619.39
7.3.190.0140.01116.54
7.3.180.0100.01016.49
7.3.170.0080.00816.61
7.3.160.0100.00716.68
7.3.120.0030.01215.10
7.3.110.0060.01215.21
7.3.100.0100.00715.02
7.3.90.0090.00314.74
7.3.80.0100.00715.04
7.3.70.0030.01314.95
7.3.60.0060.00914.62
7.3.50.0000.01114.85
7.3.40.0060.00315.03
7.3.30.0130.00014.91
7.3.20.0110.00016.50
7.3.10.0030.00916.44
7.3.00.0100.00616.76
7.2.330.0140.00716.42
7.2.320.0070.01116.75
7.2.310.0030.01316.71
7.2.300.0170.00016.46
7.2.290.0070.01016.66
7.2.250.0100.01015.18
7.2.240.0040.01515.00
7.2.230.0030.01314.87
7.2.220.0070.01015.08
7.2.210.0070.01314.90
7.2.200.0000.01315.20
7.2.190.0070.01015.13
7.2.180.0040.01115.24
7.2.170.0030.00915.18
7.2.160.0070.00714.98
7.2.150.0000.00916.53
7.2.140.0040.01116.80
7.2.130.0110.00616.70
7.2.120.0060.01016.91
7.2.110.0030.00916.84
7.2.100.0040.01116.63
7.2.90.0090.00816.87
7.2.80.0070.00716.97
7.2.70.0070.01116.77
7.2.60.0100.00316.84
7.2.50.0070.00716.96
7.2.40.0040.01116.89
7.2.30.0070.00716.92
7.2.20.0040.00716.82
7.2.10.0000.01116.73
7.2.00.0050.00918.00
7.1.330.0090.00315.61
7.1.320.0070.01015.40
7.1.310.0080.00515.82
7.1.300.0040.00715.71
7.1.290.0070.00715.63
7.1.280.0120.00015.76
7.1.270.0090.00615.64
7.1.260.0030.00715.79
7.1.250.0040.00715.41
7.1.240.0040.00815.52
7.1.230.0100.00015.68
7.1.220.0000.01015.79
7.1.210.0030.00915.75
7.1.200.0040.00915.46
7.1.190.0100.00615.77
7.1.180.0150.00015.72
7.1.170.0120.00315.44
7.1.160.0030.01115.71
7.1.150.0040.00715.73
7.1.140.0040.00715.59
7.1.130.0050.00515.70
7.1.120.0100.00315.81
7.1.110.0100.00315.81
7.1.100.0040.01016.80
7.1.90.0070.00715.64
7.1.80.0070.00715.78
7.1.70.0050.01016.45
7.1.60.0050.01417.39
7.1.50.0050.01516.15
7.1.40.0090.00315.80
7.1.30.0030.01015.72
7.1.20.0090.00615.81
7.1.10.0060.00615.77
7.1.00.0080.03318.95
7.0.330.0050.00515.31
7.0.320.0080.00515.31
7.0.310.0070.01015.28
7.0.300.0000.01715.39
7.0.290.0060.00315.29
7.0.280.0040.00815.32
7.0.270.0040.00715.29
7.0.260.0000.01315.09
7.0.250.0000.01015.58
7.0.240.0040.00715.14
7.0.230.0070.00715.45
7.0.220.0080.00315.45
7.0.210.0000.01315.45
7.0.200.0090.00915.25
7.0.190.0030.00715.27
7.0.180.0060.00615.45
7.0.170.0000.01015.30
7.0.160.0000.01615.42
7.0.150.0060.00615.55
7.0.140.0030.04118.83
7.0.130.0100.00315.41
7.0.120.0080.00815.31
7.0.110.0060.00915.40
7.0.100.0200.04517.73
7.0.90.0130.04317.68
7.0.80.0000.04017.69
7.0.70.0060.03817.68
7.0.60.0090.04317.64
7.0.50.0120.03917.89
7.0.40.0110.03916.74
7.0.30.0030.03116.79
7.0.20.0030.03216.65
7.0.10.0070.04316.66
7.0.00.0040.04016.75
5.6.400.0030.01614.24
5.6.390.0060.00614.15
5.6.380.0120.00614.33
5.6.370.0060.00814.14
5.6.360.0060.01214.34
5.6.350.0100.00314.16
5.6.340.0030.01214.23
5.6.330.0060.00914.18
5.6.320.0060.00614.01
5.6.310.0090.00314.18
5.6.300.0040.00814.39
5.6.290.0060.00614.15
5.6.280.0070.03817.63
5.6.270.0060.00914.38
5.6.260.0000.01414.15
5.6.250.0070.03817.54
5.6.240.0030.02617.40
5.6.230.0100.03517.38
5.6.220.0050.04017.56
5.6.210.0030.03617.50
5.6.200.0030.05017.82
5.6.190.0040.02917.70
5.6.180.0060.02617.75
5.6.170.0080.02717.62
5.6.160.0050.02517.71
5.6.150.0070.03517.65
5.6.140.0050.04417.77
5.6.130.0120.04117.64
5.6.120.0050.04717.67
5.6.110.0100.03917.81
5.6.100.0080.04617.64
5.6.90.0080.04217.73
5.6.80.0080.04117.47
5.6.70.0160.02717.23
5.6.60.0110.03517.26
5.6.50.0050.03517.25
5.6.40.0100.04017.25
5.6.30.0060.03817.29
5.6.20.0030.02717.26
5.6.10.0060.04317.29
5.6.00.0100.04317.30
5.5.380.0030.04517.32
5.5.370.0090.03417.38
5.5.360.0100.04217.39
5.5.350.0050.02517.29
5.5.340.0070.02717.28
5.5.330.0040.03417.59
5.5.320.0150.02717.48
5.5.310.0060.02817.54
5.5.300.0060.04117.35
5.5.290.0130.04517.41
5.5.280.0050.04917.79
5.5.270.0070.03917.32
5.5.260.0070.04117.47
5.5.250.0020.03317.43
5.5.240.0140.03317.21
5.5.230.0080.02117.28
5.5.220.0110.03317.23
5.5.210.0110.04017.18
5.5.200.0070.03517.04
5.5.190.0100.02517.10
5.5.180.0100.02817.21
5.5.170.0060.00614.25
5.5.160.0080.03317.09
5.5.150.0070.04117.26
5.5.140.0070.03516.92
5.5.130.0050.04217.13
5.5.120.0080.04017.01
5.5.110.0060.02617.19
5.5.100.0050.04717.00
5.5.90.0030.04217.06
5.5.80.0060.02617.19
5.5.70.0080.02617.06
5.5.60.0080.03517.12
5.5.50.0080.02716.95
5.5.40.0130.03717.18
5.5.30.0080.02317.19
5.5.20.0130.02517.00
5.5.10.0050.03817.07
5.5.00.0100.04016.99
5.4.450.0070.03815.16
5.4.440.0080.03915.12
5.4.430.0070.02415.10
5.4.420.0110.04115.21
5.4.410.0070.03415.22
5.4.400.0030.04015.05
5.4.390.0030.04515.07
5.4.380.0070.02215.08
5.4.370.0080.04014.94
5.4.360.0050.02114.96
5.4.350.0030.04315.04
5.4.340.0080.02314.90
5.4.330.0030.01011.07
5.4.320.0050.04014.82
5.4.310.0080.03715.00
5.4.300.0100.03614.80
5.4.290.0050.04014.91
5.4.280.0060.04014.87
5.4.270.0070.03914.92
5.4.260.0070.03414.91
5.4.250.0050.03015.00
5.4.240.0050.02714.92
5.4.230.0100.03614.93
5.4.220.0050.04014.96
5.4.210.0110.03115.07
5.4.200.0070.03915.00
5.4.190.0080.04014.96
5.4.180.0070.03814.92
5.4.170.0050.02814.97
5.4.160.0090.03815.06
5.4.150.0020.03814.89
5.4.140.0090.03513.52
5.4.130.0070.02213.67
5.4.120.0050.03713.58
5.4.110.0060.03613.55
5.4.100.0070.03513.52
5.4.90.0040.02613.68
5.4.80.0110.03713.56
5.4.70.0090.03413.43
5.4.60.0030.02713.57
5.4.50.0070.02013.58
5.4.40.0070.01813.64
5.4.30.0070.02013.63
5.4.20.0040.01913.69
5.4.10.0090.01313.48
5.4.00.0000.02313.34
5.3.290.0020.03112.45
5.3.280.0080.02212.56
5.3.270.0050.03712.56
5.3.260.0090.03512.62
5.3.250.0070.04212.46
5.3.240.0090.03012.55
5.3.230.0100.03712.49
5.3.220.0070.03512.49
5.3.210.0040.02512.45
5.3.200.0070.03812.30
5.3.190.0100.03312.48
5.3.180.0100.03512.61
5.3.170.0070.03412.53
5.3.160.0020.02412.49
5.3.150.0070.02212.52
5.3.140.0080.02012.46
5.3.130.0030.02312.48
5.3.120.0030.02312.55
5.3.110.0030.02312.48
5.3.100.0050.02112.29
5.3.90.0030.02112.22
5.3.80.0080.01812.24
5.3.70.0030.01912.15
5.3.60.0050.02012.20
5.3.50.0030.02312.08
5.3.40.0080.01512.18
5.3.30.0010.02112.14
5.3.20.0030.01712.06
5.3.10.0000.02411.83
5.3.00.0020.02011.88
5.2.170.0000.03012.74
5.2.160.0000.03012.74
5.2.150.0000.03312.74
5.2.140.0070.02312.74
5.2.130.0030.02712.74
5.2.120.0000.03012.74
5.2.110.0030.02312.74
5.2.100.0070.02312.74
5.2.90.0030.02312.74
5.2.80.0070.02712.74
5.2.70.0030.02312.74
5.2.60.0070.06012.74
5.2.50.0030.03312.74
5.2.40.0000.02712.74
5.2.30.0000.03312.74
5.2.20.0000.03012.74
5.2.10.0000.02312.74
5.2.00.0030.02712.74
5.1.60.0000.02712.74
5.1.50.0030.02012.74
5.1.40.0000.02012.74
5.1.30.0000.02712.74
5.1.20.0000.02712.74
5.1.10.0030.03012.74
5.1.00.0030.02012.74
5.0.50.0030.02712.74
5.0.40.0000.02012.74
5.0.30.0000.03012.74
5.0.20.0030.01712.74
5.0.10.0030.02012.74
5.0.00.0000.03312.74
4.4.90.0030.01312.74
4.4.80.0000.01712.74
4.4.70.0000.01312.74
4.4.60.0000.01712.74
4.4.50.0000.01312.74
4.4.40.0030.02312.74
4.4.30.0000.01312.74
4.4.20.0000.01712.74
4.4.10.0000.01312.74
4.4.00.0000.02712.74
4.3.110.0000.02012.74
4.3.100.0000.01312.74
4.3.90.0070.01312.74
4.3.80.0000.03012.74
4.3.70.0000.01712.74
4.3.60.0030.01312.74
4.3.50.0030.01312.74
4.3.40.0000.02712.74
4.3.30.0030.01312.74
4.3.20.0000.01712.74
4.3.10.0000.01712.74
4.3.00.0030.01312.74

preferences:
49.51 ms | 401 KiB | 5 Q