3v4l.org

run code in 300+ PHP versions simultaneously
<?php function nxs_cURLTest($url, $msg, $testText){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); $response = curl_exec($ch); $errmsg = curl_error($ch); $cInfo = curl_getinfo($ch); curl_close($ch); echo "Testing ... ".$url." - ".$cInfo['url']."<br />"; if (stripos($response, $testText)!==false) echo "....".$msg." - OK<br />"; else { echo "....<b style='color:red;'>".$msg." - Problem</b><br /><pre>"; print_r($errmsg); print_r($cInfo); print_r(htmlentities($response)); echo "</pre>There is a problem with cURL. You need to contact your server admin or hosting provider."; } } nxs_cURLTest("http://www.google.com/intl/en/contact/", "HTTP to Google", "Mountain View, CA"); nxs_cURLTest("https://www.google.com/intl/en/contact/", "HTTPS to Google", "Mountain View, CA"); nxs_cURLTest("https://www.facebook.com/", "HTTPS to Facebook", 'id="facebook"'); nxs_cURLTest("https://www.linkedin.com/", "HTTPS to LinkedIn", 'link rel="canonical" href="https://www.linkedin.com/"'); nxs_cURLTest("https://twitter.com/", "HTTPS to Twitter", 'link rel="canonical" href="https://twitter.com/"'); nxs_cURLTest("http://pinterest.com/", "HTTPS to Pinterest", 'content="Pinterest"'); nxs_cURLTest("https://tumblr.com/", "HTTPS to Tumblr", 'content="Tumblr"'); ?>

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.0140.00718.43
8.3.50.0070.01418.00
8.3.40.0110.00418.79
8.3.30.0040.01118.71
8.3.20.0000.00820.34
8.3.10.0000.00821.60
8.3.00.0080.00020.35
8.2.180.0150.00416.75
8.2.170.0150.00622.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00017.63
8.2.110.0060.00320.35
8.2.100.0060.00617.91
8.2.90.0030.00719.05
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0000.00919.23
8.2.30.0070.00022.47
8.2.20.0000.00817.74
8.2.10.0000.00718.05
8.2.00.0030.00618.00
8.1.280.0070.00725.92
8.1.270.0090.00024.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00023.79
8.1.230.0090.00320.93
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00917.11
8.1.180.0060.00318.10
8.1.170.0030.00618.59
8.1.160.0000.00822.00
8.1.150.0040.00418.83
8.1.140.0030.00517.39
8.1.130.0040.00417.63
8.1.120.0000.00717.33
8.1.110.0040.00417.39
8.1.100.0080.00017.28
8.1.90.0070.00017.39
8.1.80.0040.00417.29
8.1.70.0000.00717.45
8.1.60.0050.00317.48
8.1.50.0000.00717.49
8.1.40.0050.00317.51
8.1.30.0080.00017.63
8.1.20.0040.00417.54
8.1.10.0000.00817.54
8.1.00.0000.00717.44
8.0.300.0070.00019.91
8.0.290.0000.00816.75
8.0.280.0030.00318.34
8.0.270.0070.00017.32
8.0.260.0080.00017.32
8.0.250.0000.00717.04
8.0.240.0000.00716.99
8.0.230.0040.00416.90
8.0.220.0000.00716.98
8.0.210.0000.00816.84
8.0.200.0070.00017.01
8.0.190.0040.00417.04
8.0.180.0040.00416.88
8.0.170.0040.00416.86
8.0.160.0000.00716.93
8.0.150.0070.00016.95
8.0.140.0040.00416.91
8.0.130.0000.00613.42
8.0.120.0040.00416.92
8.0.110.0000.00716.98
8.0.100.0040.00416.91
8.0.90.0000.00816.89
8.0.80.0030.01316.90
8.0.70.0040.00416.76
8.0.60.0040.00416.80
8.0.50.0080.00016.81
8.0.30.0080.01017.15
8.0.20.0110.01017.40
8.0.10.0000.00716.87
8.0.00.0100.00816.90
7.4.330.0000.00715.08
7.4.320.0060.00016.41
7.4.300.0030.00316.48
7.4.290.0070.00016.48
7.4.280.0040.00416.56
7.4.270.0030.00316.55
7.4.260.0000.00716.59
7.4.250.0090.00016.41
7.4.240.0010.00716.54
7.4.230.0000.00816.34
7.4.220.0060.00916.66
7.4.210.0030.01016.44
7.4.200.0050.00316.39
7.4.160.0070.01016.52
7.4.150.0070.01017.40
7.4.140.0150.00617.86
7.4.130.0120.00916.55
7.4.120.0080.01016.49
7.4.110.0090.00916.46
7.4.100.0120.00616.48
7.4.90.0040.01416.55
7.4.80.0080.01619.39
7.4.70.0130.00416.65
7.4.60.0060.01316.64
7.4.50.0040.00416.49
7.4.40.0150.00716.54
7.4.30.0100.01316.71
7.4.00.0070.01014.96
7.3.330.0000.00513.30
7.3.320.0060.00013.22
7.3.310.0040.00416.21
7.3.300.0030.00316.19
7.3.290.0050.00916.33
7.3.280.0070.01116.34
7.3.270.0040.01417.40
7.3.260.0100.00716.26
7.3.250.0100.00916.46
7.3.240.0090.01216.30
7.3.230.0090.00616.58
7.3.210.0050.01116.49
7.3.200.0100.00716.35
7.3.190.0150.00516.44
7.3.180.0120.00416.63
7.3.170.0030.01416.57
7.3.160.0080.00816.30
7.3.10.0150.00816.32
7.3.00.0230.00716.55
7.2.330.0110.01516.35
7.2.320.0100.00716.30
7.2.310.0070.01016.48
7.2.300.0070.01016.57
7.2.290.0110.01116.56
7.2.130.0170.01016.38
7.2.120.0150.01216.34
7.2.110.0160.00316.25
7.2.100.0160.00416.36
7.2.90.0130.00316.37
7.2.80.0060.01116.30
7.2.70.0090.00616.25
7.2.60.0050.01016.40
7.2.50.0070.00716.63
7.2.40.0060.01016.45
7.2.30.0060.00316.57
7.2.20.0090.00916.48
7.2.10.0100.00316.23
7.2.00.0090.00917.86
7.1.250.0100.00515.42
7.1.200.0030.01015.36
7.1.100.0040.00718.08
7.1.70.0000.01016.99
7.1.60.0070.01719.11
7.1.50.0130.01016.93
7.1.00.0100.07022.32
7.0.200.0070.00016.62
7.0.60.0200.07719.98
7.0.50.0100.04717.93
7.0.40.0200.08320.18
7.0.30.0270.06320.11
7.0.20.0300.07320.10
7.0.10.0030.04720.10
7.0.00.0200.05020.23
5.6.280.0000.05021.02
5.6.210.0030.04020.48
5.6.200.0070.08718.18
5.6.190.0000.06720.57
5.6.180.0430.06320.61
5.6.170.0300.08020.55
5.6.160.0130.08020.48
5.6.150.0070.06318.24
5.6.140.0070.08318.27
5.6.130.0030.07718.15
5.6.120.0130.07021.16
5.6.110.0030.05721.15
5.6.100.0100.04020.98
5.6.90.0000.07721.01
5.6.80.0000.07720.40
5.5.350.4230.04020.37
5.5.340.0100.08318.05
5.5.330.0030.05720.33
5.5.320.0370.06320.33
5.5.310.0330.07320.30
5.5.300.0200.06318.04
5.5.290.0070.07317.95
5.5.280.0070.08720.79
5.5.270.0130.05020.83
5.5.260.0000.09020.96
5.5.250.0070.04720.48
5.5.240.0070.08320.20
5.4.450.0800.05719.36
5.4.440.0770.06019.17
5.4.430.0830.05019.63
5.4.420.0430.05719.70
5.4.410.0130.05019.03
5.4.400.0130.05019.16
5.4.390.0130.05719.14
5.4.380.0870.04719.16
5.4.370.0900.04318.84
5.4.360.0630.05319.29
5.4.350.0870.04719.02
5.4.340.0630.05719.01
5.4.320.0730.05318.86
5.4.310.0730.04019.17
5.4.300.0600.05719.25
5.4.290.0870.05019.15
5.4.280.0670.05019.14
5.4.270.0630.05319.30
5.4.260.0700.04318.98
5.4.250.0730.05019.15
5.4.240.0600.05319.05
5.4.230.0700.04719.01
5.4.220.0900.05019.12
5.4.210.0800.05719.14
5.4.200.0630.05318.83
5.4.190.0600.05718.86
5.4.180.0770.06319.14
5.4.170.0670.04719.27
5.4.160.0670.04719.27
5.4.150.0700.04719.13
5.4.140.0630.05016.55
5.4.130.0830.04716.39
5.4.120.0800.05016.33
5.4.110.0800.05716.60
5.4.100.0700.05016.60
5.4.90.0670.04716.29
5.4.80.0670.04316.38
5.4.70.0330.06716.57
5.4.60.0200.07316.18
5.4.50.0170.05316.54
5.4.40.0270.07016.51
5.4.30.0030.06316.48
5.4.20.0030.07316.52
5.4.10.0130.04016.53

preferences:
51.74 ms | 400 KiB | 5 Q