3v4l.org

run code in 300+ PHP versions simultaneously
<?php function curl_download($Url){ // is cURL installed yet? if (!function_exists('curl_init')){ die('Sorry cURL is not installed!'); } // OK cool - then let's create a new cURL resource handle $ch = curl_init(); // Now set some options (most are optional) // Set URL to download curl_setopt($ch, CURLOPT_URL, $Url); // Set a referer curl_setopt($ch, CURLOPT_REFERER, "http://www.example.org/yay.htm"); // User agent curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0"); // Include header in result? (0 = yes, 1 = no) curl_setopt($ch, CURLOPT_HEADER, 0); // Should cURL return or print out the data? (true = return, false = print) curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Timeout in seconds curl_setopt($ch, CURLOPT_TIMEOUT, 10); // Download the given URL, and return output $output = curl_exec($ch); // Close the cURL resource, and free system resources curl_close($ch); return $output; } print curl_download('http://www.example.org/');

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.0110.00316.63
8.3.50.0080.00921.98
8.3.40.0120.00318.70
8.3.30.0080.00618.92
8.3.20.0000.00720.26
8.3.10.0030.00523.51
8.3.00.0030.00817.65
8.2.180.0140.00416.38
8.2.170.0030.01422.96
8.2.160.0070.00720.29
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.36
8.2.110.0030.00620.22
8.2.100.0040.00717.79
8.2.90.0040.00418.28
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0050.00318.03
8.2.50.0060.00318.07
8.2.40.0050.00218.01
8.2.30.0070.00018.25
8.2.20.0000.00817.83
8.2.10.0000.00718.12
8.2.00.0000.00717.68
8.1.280.0110.00425.92
8.1.270.0080.00023.98
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00021.91
8.1.230.0060.00620.96
8.1.220.0100.00017.79
8.1.210.0040.00418.89
8.1.200.0040.00417.13
8.1.190.0000.00917.13
8.1.180.0000.00718.10
8.1.170.0040.00418.64
8.1.160.0000.00721.92
8.1.150.0040.00418.58
8.1.140.0040.00417.46
8.1.130.0070.00017.82
8.1.120.0070.00017.40
8.1.110.0040.00417.38
8.1.100.0000.00817.39
8.1.90.0030.00317.27
8.1.80.0000.00717.31
8.1.70.0000.00717.36
8.1.60.0080.00017.51
8.1.50.0000.00817.39
8.1.40.0040.00417.52
8.1.30.0030.00617.65
8.1.20.0040.00417.48
8.1.10.0000.00717.34
8.1.00.0000.00817.43
8.0.300.0030.00320.14
8.0.290.0000.00716.73
8.0.280.0040.00418.25
8.0.270.0070.00017.26
8.0.260.0030.00317.07
8.0.250.0040.00416.86
8.0.240.0050.00316.82
8.0.230.0030.00316.85
8.0.220.0000.00816.80
8.0.210.0030.00316.87
8.0.200.0000.00616.96
8.0.190.0050.00316.86
8.0.180.0050.00316.82
8.0.170.0040.00416.82
8.0.160.0070.00016.80
8.0.150.0070.00016.82
8.0.140.0040.00416.85
8.0.130.0000.00513.28
8.0.120.0060.00316.76
8.0.110.0000.00716.75
8.0.100.0080.00016.82
8.0.90.0070.00016.95
8.0.80.0060.01016.81
8.0.70.0070.00016.79
8.0.60.0040.00416.72
8.0.50.0000.00716.84
8.0.30.0110.00817.17
8.0.20.0090.01117.40
8.0.10.0000.00816.91
8.0.00.0060.01116.79
7.4.330.0020.00415.00
7.4.320.0000.00716.46
7.4.300.0000.00716.37
7.4.290.0030.00316.58
7.4.280.0000.00816.58
7.4.270.0000.00816.40
7.4.260.0040.00416.44
7.4.250.0040.00416.50
7.4.240.0030.00316.49
7.4.230.0030.00316.36
7.4.220.0030.01616.47
7.4.210.0080.00516.64
7.4.200.0080.00016.64
7.4.160.0110.00416.46
7.4.150.0160.00317.40
7.4.140.0070.01017.86
7.4.130.0100.01216.58
7.4.120.0040.01616.47
7.4.110.0090.00616.58
7.4.100.0080.01116.63
7.4.90.0090.00916.47
7.4.80.0090.00919.39
7.4.70.0150.00916.49
7.4.60.0130.00316.46
7.4.50.0000.00916.46
7.4.40.0000.01916.60
7.4.30.0120.00316.52
7.4.00.0090.00615.01
7.3.330.0050.00013.27
7.3.320.0060.00013.30
7.3.310.0030.00316.20
7.3.300.0000.00716.26
7.3.290.0040.01316.30
7.3.280.0090.01116.30
7.3.270.0060.01017.40
7.3.260.0200.00016.55
7.3.250.0050.01216.44
7.3.240.0060.01016.24
7.3.230.0110.00716.52
7.3.210.0000.01716.35
7.3.200.0120.00419.39
7.3.190.0130.00716.30
7.3.180.0000.01616.30
7.3.170.0140.00716.32
7.3.160.0030.01316.39
7.3.120.0030.01014.82
7.3.00.0000.01116.74
7.2.330.0120.00916.69
7.2.320.0060.00916.70
7.2.310.0070.01016.77
7.2.300.0070.01016.44
7.2.290.0110.00816.45
7.2.130.0060.01016.86
7.2.120.0100.00316.64
7.2.110.0090.00316.73
7.2.100.0030.00716.92
7.2.90.0000.01116.73
7.2.80.0030.01317.03
7.2.70.0030.00916.73
7.2.60.0070.00316.64
7.2.50.0090.00616.98
7.2.40.0090.00616.90
7.2.30.0030.00916.58
7.2.20.0060.00616.97
7.2.10.0030.00716.61
7.2.00.0050.00817.97
7.1.250.0040.00815.81
7.1.240.0080.00015.91
7.1.230.0040.00415.77
7.1.220.0120.00015.63
7.1.210.0000.01115.75
7.1.200.0070.00415.67
7.1.190.0000.01015.74
7.1.180.0070.00315.68
7.1.170.0000.01715.49
7.1.160.0070.00315.65
7.1.150.0000.01115.69
7.1.140.0060.00615.68
7.1.130.0040.00715.87
7.1.120.0060.00615.72
7.1.110.0080.00415.68
7.1.100.0050.00816.87
7.1.90.0100.00615.77
7.1.80.0040.00415.85
7.1.70.0080.00716.42
7.1.60.0050.00616.42
7.1.50.0060.01116.25
7.1.40.0080.00015.63
7.1.30.0070.00715.64
7.1.20.0040.00715.69
7.1.10.0060.00315.56
7.1.00.0020.04419.07
7.0.330.0090.00315.23
7.0.320.0040.01115.18
7.0.310.0040.00715.09
7.0.300.0000.01115.25
7.0.290.0040.00715.09
7.0.280.0030.00715.49
7.0.270.0000.01315.01
7.0.260.0040.01115.29
7.0.250.0040.00815.61
7.0.240.0040.00415.04
7.0.230.0030.00615.46
7.0.220.0090.00315.45
7.0.210.0080.00415.31
7.0.200.0070.00815.82
7.0.190.0060.00615.36
7.0.180.0040.00715.26
7.0.170.0030.00915.20
7.0.160.0090.00015.30
7.0.150.0040.00715.35
7.0.140.0050.03818.54
7.0.130.0040.01115.35
7.0.120.0000.00915.44
7.0.110.0030.00715.50
7.0.100.0030.00615.34
7.0.90.0090.00015.06
7.0.80.0040.00715.27
7.0.70.0060.00315.34
7.0.60.0070.02817.72
7.0.50.0060.03116.61
7.0.40.0030.02716.65
7.0.30.0400.02716.85
7.0.20.0150.03216.63
7.0.10.0100.02916.81
7.0.00.0090.04016.82
5.6.380.0060.00313.95
5.6.370.0100.00314.43
5.6.360.0080.00014.18
5.6.350.0060.00614.55
5.6.340.0110.00014.15
5.6.330.0070.00713.95
5.6.320.0030.01014.16
5.6.310.0050.00514.51
5.6.300.0030.00713.79
5.6.290.0000.01013.99
5.6.280.0030.03817.74
5.6.270.0070.00714.20
5.6.260.0060.00914.59
5.6.250.0030.01014.22
5.6.240.0080.00314.48
5.6.230.0030.00914.00
5.6.220.0070.01014.16
5.6.210.0110.04017.33
5.6.200.0090.02416.25
5.6.190.0030.05017.34
5.6.180.0200.03017.45
5.6.170.0240.04117.32
5.6.160.0070.04717.34
5.6.150.0070.04316.17
5.6.140.0090.02816.18
5.6.130.0050.02916.26
5.6.120.0100.03917.53
5.6.110.0050.04317.75
5.6.100.0050.02317.73
5.6.90.0060.02117.76
5.6.80.0090.02017.37
5.6.70.2220.02217.15
5.6.60.0030.00914.29
5.6.50.0110.00414.42
5.6.40.0100.00014.27
5.6.30.0000.01114.26
5.6.20.0040.00814.09
5.6.10.0060.00614.06
5.6.00.0090.00314.03
5.5.380.0030.00610.90
5.5.370.0000.01311.10
5.5.360.0080.00310.90
5.5.350.0120.03715.74
5.5.340.0050.02314.43
5.5.330.0040.02315.76
5.5.320.0080.03215.66
5.5.310.0160.03815.66
5.5.300.0050.02414.49
5.5.290.0030.04514.55
5.5.280.0100.03816.13
5.5.270.0080.04516.05
5.5.260.0030.04516.06
5.5.250.0060.04316.00
5.5.240.0070.02015.66
5.5.230.0070.00311.04
5.5.220.0030.00311.13
5.5.210.0040.00410.90
5.5.200.0000.00910.95
5.5.190.0060.00011.28
5.5.180.0040.00711.11
5.5.170.0040.00711.12
5.5.160.0030.00610.96
5.5.150.0030.00610.96
5.5.140.0060.00011.11
5.5.130.0030.00511.14
5.5.120.0070.00411.04
5.5.110.0030.00311.11
5.5.100.0060.00611.25
5.5.90.0050.00011.18
5.5.80.0030.00910.90
5.5.70.0030.00311.22
5.5.60.0030.00711.06
5.5.50.0070.00010.90
5.5.40.0000.00710.90
5.5.30.0030.00510.90
5.5.20.0090.00011.18
5.5.10.0030.00610.90
5.5.00.0000.01011.12
5.4.450.0520.03315.37
5.4.440.0420.03515.21
5.4.430.0320.03715.15
5.4.420.0330.00615.17
5.4.410.0110.03615.05
5.4.400.0150.02714.81
5.4.390.0160.03014.88
5.4.380.0120.03214.79
5.4.370.0200.02714.68
5.4.360.0070.02714.75
5.4.350.0050.02611.49
5.4.340.0070.03011.46
5.4.330.0070.00310.90
5.4.320.0060.02311.71
5.4.310.0040.02311.70
5.4.300.0080.01711.77
5.4.290.0040.02611.81
5.4.280.0020.02511.70
5.4.270.0060.02111.65
5.4.260.0070.02211.65
5.4.250.0060.02011.65
5.4.240.0050.02011.65
5.4.230.0040.02111.65
5.4.220.0020.02111.65
5.4.210.0060.01911.68
5.4.200.0040.02111.65
5.4.190.0040.02111.66
5.4.180.0060.01911.65
5.4.170.0050.02011.65
5.4.160.0060.02211.65
5.4.150.0050.02311.65
5.4.140.0020.02311.49
5.4.130.0040.02311.48
5.4.120.0020.02311.46
5.4.110.0080.02111.46
5.4.100.0040.02011.46
5.4.90.0080.02011.46
5.4.80.0050.02111.54
5.4.70.0030.02211.50
5.4.60.0070.01711.46
5.4.50.0060.01911.47
5.4.40.0030.02311.45
5.4.30.0050.02311.46
5.4.20.0070.01711.46
5.4.10.0020.02111.44
5.4.00.0060.01811.28
5.3.290.0040.02211.85
5.3.280.0040.02511.80
5.3.270.0050.02111.81
5.3.260.0020.02711.81
5.3.250.0040.02111.81
5.3.240.0050.02211.81
5.3.230.0060.02011.80
5.3.220.0050.02211.79
5.3.210.0050.02211.79
5.3.200.0090.01911.79
5.3.190.0030.02211.79
5.3.180.0070.02111.79
5.3.170.0010.02411.79
5.3.160.0070.01911.78
5.3.150.0040.02111.78
5.3.140.0090.01911.78
5.3.130.0060.02311.78
5.3.120.0040.02111.78
5.3.110.0060.02011.78
5.3.100.0070.02011.51
5.3.90.0070.01911.50
5.3.80.0020.02411.50
5.3.70.0060.02011.50
5.3.60.0070.02011.49
5.3.50.0060.02311.46
5.3.40.0040.02411.46
5.3.30.0080.01711.44
5.3.20.0050.02011.33
5.3.10.0040.02111.32
5.3.00.0040.02111.31
5.2.170.0020.02110.06
5.2.160.0050.01810.06
5.2.150.0010.02110.06
5.2.140.0050.01810.05
5.2.130.0040.02010.04
5.2.120.0020.01710.04
5.2.110.0030.01810.04
5.2.100.0050.01510.04
5.2.90.0050.01610.04
5.2.80.0050.02110.03
5.2.70.0020.01710.04
5.2.60.0020.02110.02
5.2.50.0060.01710.00
5.2.40.0040.0179.99
5.2.30.0040.0209.97
5.2.20.0050.0159.97
5.2.10.0050.0189.92
5.2.00.0040.0169.85
5.1.60.0040.0219.49
5.1.50.0040.0169.49
5.1.40.0060.0159.48
5.1.30.0050.0169.66
5.1.20.0040.0179.67
5.1.10.0030.0149.53
5.1.00.0040.0169.54
5.0.50.0020.0148.78
5.0.40.0040.0138.71
5.0.30.0050.0168.61
5.0.20.0040.0118.60
5.0.10.0040.0148.59
5.0.00.0020.0188.58
4.4.90.0050.0077.84
4.4.80.0020.0097.83
4.4.70.0050.0127.83
4.4.60.0040.0107.82
4.4.50.0020.0147.83
4.4.40.0040.0177.80
4.4.30.0050.0097.83
4.4.20.0020.0117.87
4.4.10.0020.0127.87
4.4.00.0020.0167.83
4.3.110.0020.0117.78
4.3.100.0030.0097.78
4.3.90.0020.0097.77
4.3.80.0020.0157.74
4.3.70.0020.0097.76
4.3.60.0010.0107.76
4.3.50.0020.0137.76
4.3.40.0010.0157.72
4.3.30.0010.0127.11
4.3.20.0010.0107.09
4.3.10.0020.0097.07
4.3.00.0100.0139.30

preferences:
39.58 ms | 401 KiB | 5 Q