3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://server.com/path'; $data = array('key1' => 'value1', 'key2' => 'value2'); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); var_dump($result);

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.40.0100.00719.05
8.3.30.0110.00419.05
8.3.20.0060.00319.09
8.3.10.0040.00420.94
8.3.00.0040.00417.88
8.2.170.0040.01122.96
8.2.160.0140.00722.29
8.2.150.0050.00324.18
8.2.140.0150.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00320.14
8.2.110.0110.00021.11
8.2.100.0080.00418.16
8.2.90.0060.00319.29
8.2.80.0000.00818.05
8.2.70.0080.00017.75
8.2.60.0030.00618.16
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0030.00618.27
8.2.20.0000.00817.79
8.2.10.0000.00717.77
8.2.00.0000.00817.75
8.1.270.0040.00423.99
8.1.260.0120.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00420.96
8.1.230.0120.00021.21
8.1.220.0000.00817.74
8.1.210.0040.00419.12
8.1.200.0040.00417.50
8.1.190.0050.00317.63
8.1.180.0080.00018.10
8.1.170.0060.00318.89
8.1.160.0070.00018.94
8.1.150.0030.00518.69
8.1.140.0030.00517.50
8.1.130.0000.00717.95
8.1.120.0000.00817.51
8.1.110.0000.00917.41
8.1.100.0040.00417.53
8.1.90.0000.00717.55
8.1.80.0030.00517.52
8.1.70.0000.00717.46
8.1.60.0000.00817.66
8.1.50.0030.00517.66
8.1.40.0040.00417.59
8.1.30.0030.00617.77
8.1.20.0030.00517.73
8.1.10.0050.00317.65
8.1.00.0060.00317.57
8.0.300.0030.00620.23
8.0.290.0070.00017.13
8.0.280.0000.00718.69
8.0.270.0030.00317.30
8.0.260.0040.00417.11
8.0.250.0050.00317.20
8.0.240.0050.00517.26
8.0.230.0040.00417.15
8.0.220.0030.00317.06
8.0.210.0080.00017.16
8.0.200.0030.00317.14
8.0.190.0070.00017.04
8.0.180.0030.00517.08
8.0.170.0090.00017.00
8.0.160.0000.00817.05
8.0.150.0060.00317.13
8.0.140.0120.00217.18
8.0.130.0060.00013.73
8.0.120.0030.00617.15
8.0.110.0080.00017.14
8.0.100.0000.00817.22
8.0.90.0040.00417.07
8.0.80.0070.00717.21
8.0.70.0040.00417.20
8.0.60.0040.00417.19
8.0.50.0030.00517.02
8.0.30.0110.01217.15
8.0.20.0110.01017.38
8.0.10.0000.00717.04
8.0.00.0090.01116.96
7.4.330.0030.00315.05
7.4.320.0000.00616.58
7.4.300.0000.00616.56
7.4.290.0000.00716.68
7.4.280.0040.00416.59
7.4.270.0030.00316.66
7.4.260.0070.00013.47
7.4.250.0060.00316.74
7.4.240.0000.00816.67
7.4.230.0030.00316.59
7.4.220.0060.01216.69
7.4.210.0070.00916.73
7.4.200.0070.00016.57
7.4.190.0030.00516.92
7.4.160.0100.01016.51
7.4.150.0090.00917.18
7.4.140.0100.00817.30
7.4.130.0120.00816.63
7.4.120.0090.00916.81
7.4.110.0170.00016.60
7.4.100.0150.01016.69
7.4.90.0120.00616.78
7.4.80.0070.01018.80
7.4.70.0070.01716.64
7.4.60.0100.00716.72
7.4.50.0030.00516.61
7.4.40.0060.00622.27
7.4.30.0030.01916.81
7.4.00.0090.00614.91
7.3.330.0060.00013.33
7.3.320.0060.00013.40
7.3.310.0080.00016.55
7.3.300.0070.00016.54
7.3.290.0070.01016.46
7.3.280.0070.01316.59
7.3.270.0090.00917.18
7.3.260.0100.01218.24
7.3.250.0070.01116.47
7.3.240.0110.01116.70
7.3.230.0130.00316.58
7.3.210.0170.00316.46
7.3.200.0070.01119.39
7.3.190.0100.01316.58
7.3.180.0110.00616.56
7.3.170.0130.00316.59
7.3.160.0060.01016.43
7.3.120.0040.01515.13
7.2.330.0040.01516.66
7.2.320.0070.01116.58
7.2.310.0120.00616.78
7.2.300.0140.00716.59
7.2.290.0040.01416.71
7.2.110.0100.01716.61
7.2.60.0060.00317.20
7.2.00.0070.00719.28
7.1.200.0050.00215.96
7.1.100.0060.00618.08
7.1.70.0040.00417.43
7.1.60.0070.01519.40
7.1.50.0070.00717.14
7.1.00.0000.07322.63
7.0.200.0030.00616.89
7.0.140.0000.08022.59
7.0.60.0100.04020.45
7.0.50.0000.04318.18
7.0.40.0070.03718.23
7.0.30.0000.05018.15
7.0.20.0030.04018.06
7.0.10.0170.03318.05
7.0.00.0000.04318.17
5.6.280.0030.07721.37
5.6.210.0070.06020.82
5.6.200.0130.03318.52
5.6.190.0000.04318.42
5.6.180.0000.04718.74
5.6.170.0030.04318.54
5.6.160.0130.03018.39
5.6.150.0000.04318.46
5.6.140.0070.03718.55
5.6.130.0030.04718.57
5.6.120.0030.04018.47
5.6.110.0000.04318.50
5.6.100.0170.03718.56
5.6.90.0030.04018.56
5.6.80.0070.03317.95
5.6.70.0130.03017.80
5.6.60.0000.04017.94
5.6.50.0070.03317.94
5.6.40.0030.06017.96
5.6.30.0030.04317.94
5.6.20.0070.07717.79
5.6.10.0070.08317.82
5.6.00.0030.07718.07
5.5.350.0000.07020.77
5.5.340.0000.04718.32
5.5.330.0030.04018.34
5.5.320.0030.04018.41
5.5.310.0000.04318.20
5.5.300.0030.03718.32
5.5.290.0070.03718.26
5.5.280.0070.03718.32
5.5.270.0030.04018.41
5.5.260.0100.03318.26
5.5.250.0030.04318.11
5.5.240.0000.04017.61
5.5.230.0030.03717.74
5.5.220.0030.03717.62
5.5.210.0030.03717.67
5.5.200.0070.07017.62
5.5.190.0000.04317.69
5.5.180.0030.04717.60
5.5.160.0070.04317.54
5.5.150.0030.06317.54
5.5.140.0130.05017.68
5.5.130.0070.08017.80
5.5.120.0070.04017.60
5.5.110.0070.03717.63
5.5.100.0000.08717.54
5.5.90.0100.07317.78
5.5.80.0170.07317.61
5.5.70.0070.08017.62
5.5.60.0100.07017.70
5.5.50.0130.04017.56
5.5.40.0100.06017.46
5.5.30.0130.07017.48
5.5.20.0030.05717.46
5.5.10.0070.04317.57
5.5.00.0100.06017.60
5.4.450.0130.03019.61
5.4.440.0070.03719.81
5.4.430.0030.04019.70
5.4.420.0070.03319.71
5.4.410.0030.03719.47
5.4.400.0030.03719.34
5.4.390.0000.04019.38
5.4.380.0030.03719.36
5.4.370.0030.06019.28
5.4.360.0100.03719.59
5.4.350.0000.04019.48
5.4.340.0100.05319.39
5.4.320.0130.07719.48
5.4.310.0000.08319.33
5.4.300.0100.03319.36
5.4.290.0100.03719.39
5.4.280.0030.08019.35
5.4.270.0100.03319.59
5.4.260.0070.07019.27
5.4.250.0030.08319.38
5.4.240.0030.08319.35
5.4.230.0070.04719.34
5.4.220.0100.07319.46
5.4.210.0030.08019.33
5.4.200.0170.06719.28
5.4.190.0030.07319.43
5.4.180.0100.06019.37
5.4.170.0100.04719.28
5.4.160.0170.06019.27
5.4.150.0100.07319.37
5.4.140.0100.06716.73
5.4.130.0130.06316.77
5.4.120.0030.07016.70
5.4.110.0130.07016.98
5.4.100.0170.06316.72
5.4.90.0130.06317.01
5.4.80.0030.07316.95
5.4.70.0100.05716.71
5.4.60.0170.06716.71
5.4.50.0100.07016.69
5.4.40.0030.06016.70
5.4.30.0130.07016.69
5.4.20.0070.07716.69
5.4.10.0070.08016.73
5.4.00.0100.07316.37
5.3.290.0030.04714.82
5.3.280.0100.06714.81
5.3.270.0130.07014.79
5.3.260.0000.05314.84
5.3.250.0100.07714.86
5.3.240.0030.05314.75
5.3.230.0070.05314.66
5.3.220.0030.07014.70
5.3.210.0170.06014.77
5.3.200.0000.08014.76
5.3.190.0030.08314.98
5.3.180.0130.06714.69
5.3.170.0130.07014.98
5.3.160.0100.06314.79
5.3.150.0130.06714.80
5.3.140.0100.04314.60
5.3.130.0000.08314.69
5.3.120.0070.06314.77
5.3.110.0070.08014.78
5.3.100.0100.05014.10
5.3.90.0130.06714.27
5.3.80.0070.07714.15
5.3.70.0070.08014.22
5.3.60.0130.05714.23
5.3.50.0100.07014.11
5.3.40.0030.08014.36
5.3.30.0070.07714.16
5.3.20.0130.06013.88
5.3.10.0130.06713.88
5.3.00.0030.06013.88
5.2.170.0000.05311.27
5.2.160.0070.03311.55
5.2.150.0070.05011.19
5.2.140.0130.05311.36
5.2.130.0070.06311.36
5.2.120.0070.04711.27
5.2.110.0130.04711.22
5.2.100.0070.03311.24
5.2.90.0070.06311.33
5.2.80.0070.04711.36
5.2.70.0030.04011.34
5.2.60.0000.06711.27
5.2.50.0070.05311.25
5.2.40.0070.06311.23
5.2.30.0070.03711.11
5.2.20.0030.03311.19
5.2.10.0070.04011.03
5.2.00.0100.03310.97
5.1.60.0030.05710.14
5.1.50.0000.03310.44
5.1.40.0030.05310.12
5.1.30.0030.03010.56
5.1.20.0030.02710.53
5.1.10.0030.04710.22
5.1.00.0000.04310.13
5.0.50.0100.0408.82
5.0.40.0070.0278.54
5.0.30.0000.0408.38
5.0.20.0000.0338.64
5.0.10.0000.0508.32
5.0.00.0030.0678.36
4.4.90.0000.0377.71
4.4.80.0000.0407.71
4.4.70.0000.0377.71
4.4.60.0000.0407.71
4.4.50.0000.0337.71
4.4.40.0030.0537.71
4.4.30.0100.0307.71
4.4.20.0000.0377.71
4.4.10.0070.0337.71
4.4.00.0030.0407.71
4.3.110.0000.0237.71
4.3.100.0030.0277.71
4.3.90.0030.0337.71
4.3.80.0030.0507.71
4.3.70.0030.0337.71
4.3.60.0000.0307.71
4.3.50.0000.0307.71
4.3.40.0070.0407.71
4.3.30.0000.0237.71
4.3.20.0000.0407.71
4.3.10.0030.0307.71
4.3.00.0030.0307.71

preferences:
42.72 ms | 400 KiB | 5 Q