3v4l.org

run code in 300+ PHP versions simultaneously
<?php function url_get_contents($url,$ref="http://google.com",$posts=false){ $crl = curl_init(); $timeout = 5; $userAgent = "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36"; curl_setopt ($crl, CURLOPT_USERAGENT, $userAgent); curl_setopt ($crl, CURLOPT_URL, $url); curl_setopt ($crl, CURLOPT_ENCODING, 'UTF-8'); curl_setopt ($crl, CURLOPT_HEADER, false); curl_setopt ($crl, CURLOPT_REFERER, $ref); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, true); curl_setopt ($crl, CURLOPT_FOLLOWLOCATION, true); curl_setopt ($crl, CURLOPT_AUTOREFERER, true); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); if($posts){ curl_setopt ($crl, CURLOPT_POST, true); curl_setopt ($crl, CURLOPT_POSTFIELDS, http_build_query($posts)); } $ret = curl_exec($crl); $info = curl_getinfo($crl); if ($ret === false || $info['http_code'] != 200) { $ret = "No cURL data returned for $url [". $info['http_code']. "]"; if (curl_error($crl)) $ret .= "\n". curl_error($crl); } curl_close($crl); return $ret; } echo url_get_contents("http://www.tibia.com"); ?>

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.60
8.3.50.0130.00721.20
8.3.40.0180.00318.98
8.3.30.0070.00720.16
8.3.20.0060.00320.34
8.3.10.0080.00022.09
8.3.00.0070.00022.43
8.2.180.0160.00616.63
8.2.170.0040.01122.96
8.2.160.0140.00020.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.54
8.2.110.0090.00022.20
8.2.100.0040.00719.34
8.2.90.0090.00319.30
8.2.80.0000.00719.31
8.2.70.0080.00017.50
8.2.60.0090.00017.80
8.2.50.0000.00818.07
8.2.40.0030.00518.09
8.2.30.0040.00418.06
8.2.20.0040.00417.63
8.2.10.0080.00017.77
8.2.00.0040.00417.64
8.1.280.0140.00725.92
8.1.270.0130.00620.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.82
8.1.230.0070.00419.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0030.00617.28
8.1.180.0000.00818.72
8.1.170.0000.00718.56
8.1.160.0040.00422.17
8.1.150.0060.00318.43
8.1.140.0040.00417.20
8.1.130.0000.00717.77
8.1.120.0080.00017.38
8.1.110.0000.00817.36
8.1.100.0000.00717.27
8.1.90.0040.00417.37
8.1.80.0050.00317.36
8.1.70.0000.00717.29
8.1.60.0040.00417.54
8.1.50.0040.00417.42
8.1.40.0000.00817.49
8.1.30.0040.00417.52
8.1.20.0090.00017.50
8.1.10.0030.00517.42
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0050.00218.37
8.0.270.0040.00417.22
8.0.260.0000.00616.77
8.0.250.0030.00316.98
8.0.240.0000.00816.87
8.0.230.0050.00316.89
8.0.220.0080.00016.96
8.0.210.0000.00716.92
8.0.200.0000.00617.01
8.0.190.0040.00416.97
8.0.180.0030.00316.95
8.0.170.0030.00517.01
8.0.160.0070.00016.98
8.0.150.0040.00416.82
8.0.140.0030.00616.87
8.0.130.0000.00513.30
8.0.120.0030.00616.89
8.0.110.0040.00416.88
8.0.100.0000.00817.04
8.0.90.0000.00716.79
8.0.80.0030.01616.93
8.0.70.0040.00416.93
8.0.60.0070.00016.74
8.0.50.0070.00016.88
8.0.30.0090.01117.17
8.0.20.0140.00617.40
8.0.10.0040.00416.89
8.0.00.0180.00216.55
7.4.330.0050.00015.00
7.4.320.0000.00616.42
7.4.300.0070.00016.40
7.4.290.0030.00316.55
7.4.280.0030.00316.42
7.4.270.0080.00016.57
7.4.260.0040.00416.48
7.4.250.0000.00716.41
7.4.240.0000.00716.51
7.4.230.0030.00316.66
7.4.220.0060.01216.44
7.4.210.0110.00616.49
7.4.200.0040.00416.40
7.4.190.0000.00816.35
7.4.160.0120.00416.55
7.4.150.0070.01017.40
7.4.140.0170.00717.86
7.4.130.0060.01116.47
7.4.120.0080.00916.49
7.4.110.0080.00816.52
7.4.100.0170.00416.52
7.4.90.0100.00716.67
7.4.80.0130.00919.39
7.4.70.0120.00316.50
7.4.60.0100.00916.55
7.4.50.0050.00316.33
7.4.40.0040.01122.77
7.4.30.0070.01016.33
7.4.00.0100.00714.74
7.3.330.0000.00513.34
7.3.320.0050.00013.33
7.3.310.0020.00516.32
7.3.300.0040.00416.29
7.3.290.0040.01516.30
7.3.280.0060.01216.35
7.3.270.0060.01017.40
7.3.260.0110.00716.32
7.3.250.0130.00716.33
7.3.240.0100.00716.36
7.3.230.0140.00616.39
7.3.210.0140.00316.39
7.3.200.0090.00619.39
7.3.190.0100.00716.55
7.3.180.0060.00916.24
7.3.170.0090.00916.37
7.3.160.0060.01016.45
7.3.120.0070.01014.60
7.2.330.0060.01216.20
7.2.320.0070.01016.62
7.2.310.0100.00816.39
7.2.300.0070.01016.31
7.2.290.0120.00616.32
7.2.60.0080.00416.86
7.2.00.0070.00719.40
7.1.200.0040.00715.60
7.1.100.0000.01317.97
7.1.70.0000.00717.00
7.1.60.0130.01019.29
7.1.50.0040.01916.89
7.1.00.0030.06322.37
7.0.200.0070.00416.49
7.0.140.0070.07321.96
7.0.100.0300.07020.04
7.0.90.0100.04319.96
7.0.80.0000.04319.95
7.0.70.0030.05019.95
7.0.60.0300.06720.03
7.0.50.0170.08320.39
7.0.40.0100.06320.13
7.0.30.0030.09020.08
7.0.20.0130.08320.11
7.0.10.0130.07720.16
7.0.00.0170.08020.07
5.6.280.0130.06320.91
5.6.250.0130.07320.74
5.6.240.0070.08020.68
5.6.230.0070.03720.71
5.6.220.0100.07720.60
5.6.210.0070.08320.61
5.6.200.0070.08721.16
5.6.190.0130.08021.06
5.6.180.0030.05321.04
5.6.170.0130.08020.97
5.6.160.0170.07021.03
5.6.150.0030.07720.94
5.6.140.0070.06721.09
5.6.130.0000.05721.05
5.6.120.0030.05721.08
5.6.110.0070.07321.00
5.6.100.0100.07321.18
5.6.90.0100.07721.02
5.6.80.0070.07720.36
5.6.70.0100.07720.46
5.6.60.0200.04020.35
5.6.50.0130.08020.45
5.6.40.0100.03720.50
5.6.30.0030.08020.46
5.6.20.0130.07320.41
5.6.10.0130.07020.43
5.6.00.0200.06020.44
5.5.380.0070.04720.44
5.5.370.0200.07020.36
5.5.360.0230.04720.40
5.5.350.0130.07720.44
5.5.340.0130.07020.88
5.5.330.0100.04720.75
5.5.320.0070.07320.88
5.5.310.0030.06020.77
5.5.300.0070.08720.91
5.5.290.0030.08020.86
5.5.280.0100.08020.80
5.5.270.0000.08720.78
5.5.260.0070.07720.77
5.5.250.0070.05720.73
5.5.240.0100.06720.23
5.5.230.0070.07720.19
5.5.220.0070.06720.17
5.5.210.0200.06020.28
5.5.200.0030.05720.25
5.5.190.0100.06720.01
5.5.180.0100.08020.25
5.5.160.0100.06720.00
5.5.150.0130.07720.29
5.5.140.0070.08020.13
5.5.130.0070.03720.26
5.5.120.0170.07320.24
5.5.110.0100.04020.00
5.5.100.0130.06720.07
5.5.90.0100.08320.13
5.5.80.0100.08020.15
5.5.70.0070.08320.02
5.5.60.0070.04719.99
5.5.50.0130.06720.18
5.5.40.0170.06720.07
5.5.30.0200.04019.95
5.5.20.0070.08320.05
5.5.10.0030.06720.04
5.5.00.0070.05020.08
5.4.450.0030.05019.20
5.4.440.0130.06719.47
5.4.430.0130.07019.44
5.4.420.0130.07719.41
5.4.410.0100.07319.14
5.4.400.0130.06319.13
5.4.390.0130.09019.16
5.4.380.0070.07719.12
5.4.370.0030.06718.90
5.4.360.0070.07719.25
5.4.350.0030.05019.03
5.4.340.0130.04019.09
5.4.320.0100.08318.88
5.4.310.0070.07319.09
5.4.300.0070.08019.12
5.4.290.0030.04019.02
5.4.280.0100.04319.03
5.4.270.0070.07718.90
5.4.260.0170.06719.02
5.4.250.0070.08019.14
5.4.240.0070.07018.94
5.4.230.0100.05018.86
5.4.220.0030.07019.04
5.4.210.0100.04718.84
5.4.200.0070.07018.89
5.4.190.0030.10019.20
5.4.180.0070.04318.86
5.4.170.0070.07018.95
5.4.160.0030.06719.07
5.4.150.0100.07719.16
5.4.140.0070.07716.42
5.4.130.0130.07016.41
5.4.120.0070.04016.41
5.4.110.0170.04316.45
5.4.100.0070.07716.39
5.4.90.0130.06716.49
5.4.80.0130.07016.46
5.4.70.0030.08316.53
5.4.60.0100.04316.37
5.4.50.0030.06316.32
5.4.40.0030.06716.50
5.4.30.0070.03716.33
5.4.20.0070.07316.42
5.4.10.0100.06716.42
5.4.00.0070.07315.91
5.3.290.0030.08714.62
5.3.280.0130.05714.71
5.3.270.0000.07314.63
5.3.260.0100.03714.65
5.3.250.0030.07714.68
5.3.240.0200.06014.72
5.3.230.0170.07014.60
5.3.220.0100.08014.64
5.3.210.0070.07014.53
5.3.200.0170.07014.68
5.3.190.0000.08014.65
5.3.180.0070.07014.71
5.3.170.0130.06714.71
5.3.160.0070.06314.59
5.3.150.0100.07714.56
5.3.140.0070.05714.52
5.3.130.0070.05714.54
5.3.120.0030.08014.54
5.3.110.0100.04014.68
5.3.100.0100.07714.05
5.3.90.0100.07014.13
5.3.80.0030.08014.06
5.3.70.0030.08014.02
5.3.60.0030.07013.92
5.3.50.0070.07014.04
5.3.40.0030.05313.87
5.3.30.0200.05313.91
5.3.20.0130.06713.83
5.3.10.0130.06713.79
5.3.00.0100.03713.54
5.2.170.0030.04712.14
5.2.160.0070.04712.14
5.2.150.0030.06312.14
5.2.140.0100.05712.14
5.2.130.0000.06312.14
5.2.120.0070.03712.14
5.2.110.0030.04312.14
5.2.100.0070.06012.14
5.2.90.0000.03712.14
5.2.80.0100.06012.14
5.2.70.0030.06012.14
5.2.60.0030.06012.14
5.2.50.0000.06712.14
5.2.40.0030.04712.14
5.2.30.0000.03712.14
5.2.20.0130.05312.14
5.2.10.0030.05712.14
5.2.00.0100.05712.14
5.1.60.0030.05312.14
5.1.50.0030.04712.14
5.1.40.0030.04712.14
5.1.30.0000.03312.14
5.1.20.0030.06012.14
5.1.10.0030.05712.14
5.1.00.0070.04712.14
5.0.50.0030.04712.14
5.0.40.0030.02012.14
5.0.30.0000.04712.14
5.0.20.0070.03712.14
5.0.10.0030.04012.14
5.0.00.0000.03712.14
4.4.90.0000.02312.14
4.4.80.0030.03312.14
4.4.70.0000.03312.14
4.4.60.0000.02712.14
4.4.50.0000.03312.14
4.4.40.0000.05712.14
4.4.30.0000.02012.14
4.4.20.0030.03312.14
4.4.10.0000.03012.14
4.4.00.0000.03712.14
4.3.110.0030.02312.14
4.3.100.0030.03312.14
4.3.90.0000.02012.14
4.3.80.0030.03312.14
4.3.70.0030.01712.14
4.3.60.0100.02312.14
4.3.50.0070.03012.14
4.3.40.0000.04712.14
4.3.30.0070.03312.14
4.3.20.0030.03312.14
4.3.10.0000.01712.14
4.3.00.0000.02012.14

preferences:
53.88 ms | 401 KiB | 5 Q