3v4l.org

run code in 300+ PHP versions simultaneously
<?php const URL_ROOT = 'http://www.jd.com'; $host = parse_url(URL_ROOT, PHP_URL_HOST) or die('Invalid URL_ROOT'); $url = URL_ROOT . $_SERVER['REQUEST_URI']; // Request URL $ch = curl_init($url) or die('curl_init failed.'); // Request Method curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $_SERVER['REQUEST_METHOD']); // Request Headers $headers = getallheaders(); $headers['Host'] = $host; $ch_headers = array(); foreach ($headers as $name => $value) $ch_headers[] = "$name: $value"; curl_setopt($ch, CURLOPT_HTTPHEADER, $ch_headers); // Request Body curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents("php://input")); // Send curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch) or die('curl_exec failed.'); $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); curl_close($ch); // Response Header $header = substr($response, 0, $header_size); $headers = explode("\r\n", $header); foreach ($headers as $header) header($header); // Response Body $body = substr($response, $header_size); echo $body;

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.00616.73
8.3.50.0130.00722.16
8.3.40.0070.00718.83
8.3.30.0070.00718.86
8.3.20.0070.00020.13
8.3.10.0050.00323.66
8.3.00.0000.00719.22
8.2.180.0040.01116.88
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00020.58
8.2.110.0030.00619.24
8.2.100.0000.01218.03
8.2.90.0050.00319.17
8.2.80.0000.00819.23
8.2.70.0100.00017.75
8.2.60.0000.00818.04
8.2.50.0030.00618.10
8.2.40.0080.00020.54
8.2.30.0000.00918.39
8.2.20.0030.00517.77
8.2.10.0070.00018.18
8.2.00.0080.00017.88
8.1.280.0120.00325.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0180.00022.54
8.1.230.0110.00417.76
8.1.220.0000.00817.77
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0080.00018.64
8.1.160.0040.00422.12
8.1.150.0000.00818.70
8.1.140.0050.00217.34
8.1.130.0000.00717.91
8.1.120.0040.00417.54
8.1.110.0040.00717.36
8.1.100.0000.00717.49
8.1.90.0000.00717.43
8.1.80.0000.00717.30
8.1.70.0070.00017.33
8.1.60.0040.00817.51
8.1.50.0030.00617.54
8.1.40.0040.00417.42
8.1.30.0000.00817.69
8.1.20.0040.00417.66
8.1.10.0000.00917.63
8.1.00.0030.00617.49
8.0.300.0000.00819.96
8.0.290.0060.00316.63
8.0.280.0000.00818.41
8.0.270.0070.00017.28
8.0.260.0000.00618.52
8.0.250.0030.00317.04
8.0.240.0060.00316.93
8.0.230.0000.00716.90
8.0.220.0070.00016.95
8.0.210.0080.00016.85
8.0.200.0000.00717.05
8.0.190.0040.00416.99
8.0.180.0080.00017.04
8.0.170.0040.00417.03
8.0.160.0040.00417.02
8.0.150.0020.00516.90
8.0.140.0050.00316.85
8.0.130.0000.00613.36
8.0.120.0050.00316.85
8.0.110.0000.00817.02
8.0.100.0000.00917.00
8.0.90.0000.00817.02
8.0.80.0040.01816.93
8.0.70.0000.00717.09
8.0.60.0000.00817.00
8.0.50.0050.00317.02
8.0.30.0130.00617.08
8.0.20.0090.00917.40
8.0.10.0080.00016.97
8.0.00.0140.00417.04
7.4.330.0030.00315.00
7.4.320.0000.00616.46
7.4.300.0030.00316.55
7.4.290.0000.00716.60
7.4.280.0050.00516.50
7.4.270.0040.00316.45
7.4.260.0000.00716.45
7.4.250.0070.00016.58
7.4.240.0020.00516.54
7.4.230.0030.00316.69
7.4.220.0070.01116.65
7.4.210.0090.00816.67
7.4.200.0030.00316.44
7.4.190.0000.00716.50
7.4.160.0060.01016.55
7.4.150.0060.01117.40
7.4.140.0100.00717.86
7.4.130.0080.00916.51
7.4.120.0080.01216.63
7.4.110.0100.00716.39
7.4.100.0030.01316.70
7.4.90.0090.01216.54
7.4.80.0120.00919.39
7.4.70.0090.00616.52
7.4.60.0150.00016.36
7.4.50.0000.00916.36
7.4.40.0070.01016.45
7.4.30.0130.00316.41
7.4.00.0080.00314.84
7.3.330.0000.00513.15
7.3.320.0000.00513.27
7.3.310.0070.00016.32
7.3.300.0000.00716.36
7.3.290.0060.00916.39
7.3.280.0100.00716.40
7.3.270.0110.00617.40
7.3.260.0100.00716.46
7.3.250.0070.01116.49
7.3.240.0160.00716.50
7.3.230.0070.01016.47
7.3.210.0090.01016.50
7.3.200.0070.01019.39
7.3.190.0030.01316.61
7.3.180.0120.00916.29
7.3.170.0090.01516.41
7.3.160.0060.01016.41
7.3.120.0040.01114.89
7.2.330.0090.01616.52
7.2.320.0070.01316.39
7.2.310.0130.00316.82
7.2.300.0080.01416.70
7.2.290.0210.00316.82
7.2.60.0100.00316.89
7.2.00.0030.00919.37
7.1.200.0040.01115.98
7.1.100.0000.01817.89
7.1.70.0050.00216.97
7.1.60.0030.01619.46
7.1.50.0100.02116.91
7.1.00.0030.07722.31
7.0.200.0050.00516.68
7.0.140.0000.07722.15
7.0.60.0100.06719.88
7.0.50.0100.04017.91
7.0.40.0100.08719.96
7.0.30.0470.07320.04
7.0.20.0200.04720.09
7.0.10.0030.04320.13
7.0.00.0070.07720.12
5.6.280.0070.09321.09
5.6.210.0070.06320.48
5.6.200.0070.03718.13
5.6.190.0070.05020.35
5.6.180.0230.08320.56
5.6.170.0130.05020.45
5.6.160.0070.08020.59
5.6.150.0030.04018.19
5.6.140.0100.04718.09
5.6.130.0030.05318.21
5.6.120.0130.06021.06
5.6.110.0030.07721.01
5.6.100.0130.03321.10
5.6.90.0170.07720.98
5.6.80.0030.03720.42
5.5.350.0000.04720.43
5.5.340.0100.06317.98
5.5.330.0030.04320.06
5.5.320.0100.07720.28
5.5.310.0300.06320.24
5.5.300.0100.07717.97
5.5.290.0170.07718.02
5.5.280.0130.05720.89
5.5.270.0070.04020.95
5.5.260.0070.05320.78
5.5.250.0000.04720.67
5.5.240.3470.04320.13
5.4.450.0930.03319.26
5.4.440.0330.04019.10
5.4.430.0430.04319.42
5.4.420.1200.02319.38
5.4.410.0800.05019.33
5.4.400.0230.03718.80
5.4.390.0770.03718.82
5.4.380.0200.06018.48
5.4.370.0130.05318.61
5.4.360.0200.05018.55
5.4.350.0130.05318.51
5.4.340.0030.07318.67
5.4.320.0050.03612.47
5.4.310.0050.03812.47
5.4.300.0060.03812.47
5.4.290.0060.05412.46
5.4.280.0090.04612.36
5.4.270.0090.04612.37
5.4.260.0100.04112.37
5.4.250.0100.04012.36
5.4.240.0110.04012.37
5.4.230.0080.04312.36
5.4.220.0130.05212.36
5.4.210.0080.04512.36
5.4.200.0120.04212.36
5.4.190.0080.04412.35
5.4.180.0120.05112.35
5.4.170.0250.07612.37
5.4.160.0070.05012.36
5.4.150.0110.05412.36
5.4.140.0100.05412.04
5.4.130.0090.05312.03
5.4.120.0100.05211.99
5.4.110.0080.05311.98
5.4.100.0090.04911.98
5.4.90.0090.05311.98
5.4.80.0090.05611.98
5.4.70.0080.06911.98
5.4.60.0100.05211.98
5.4.50.0090.05411.98
5.4.40.0080.05411.97
5.4.30.0110.05911.97
5.4.20.0130.04911.96
5.4.10.0080.03911.97
5.4.00.0040.04311.46
5.3.290.0060.03812.80
5.3.280.0100.04712.71
5.3.270.0120.04712.72
5.3.260.0160.05912.72
5.3.250.0070.04312.72
5.3.240.0090.03712.72
5.3.230.0070.04112.71
5.3.220.0080.04912.68
5.3.210.0130.05912.68
5.3.200.0070.04112.68
5.3.190.0090.04712.67
5.3.180.0110.04712.68
5.3.170.0080.04912.67
5.3.160.0040.04512.67
5.3.150.0110.05612.68
5.3.140.0070.04112.66
5.3.130.0080.06612.66
5.3.120.0160.05212.66
5.3.110.0160.09212.66
5.3.100.0090.05212.12
5.3.90.0070.03912.09
5.3.80.0080.04212.07
5.3.70.0080.05112.07
5.3.60.0080.05112.07
5.3.50.0100.06312.01
5.3.40.0110.04612.01
5.3.30.0130.05011.96
5.3.20.0090.07411.74
5.3.10.0150.05011.71
5.3.00.0040.05711.70
5.2.170.0050.0449.18
5.2.160.0100.0389.18
5.2.150.0040.0459.18
5.2.140.0050.0459.18
5.2.130.0080.0439.14
5.2.120.0040.0469.14
5.2.110.0090.0409.14
5.2.100.0060.0319.14
5.2.90.0100.0269.15
5.2.80.0200.0669.14
5.2.70.0060.0309.14
5.2.60.0130.0349.09
5.2.50.0100.0529.06
5.2.40.0090.0659.03
5.2.30.0260.0759.01
5.2.20.0140.0819.00
5.2.10.0170.0498.93
5.2.00.0070.0608.78
5.1.60.0210.0438.07
5.1.50.0100.0318.07
5.1.40.0090.0488.04
5.1.30.0170.0398.39
5.1.20.0040.0488.42
5.1.10.0070.0348.14
5.1.00.0120.0658.14
5.0.50.0060.0226.62
5.0.40.0070.0246.48
5.0.30.0160.0656.30
5.0.20.0120.0616.27
5.0.10.0070.0296.24
5.0.00.0040.0426.23
4.4.90.0090.0214.78
4.4.80.0050.0224.76
4.4.70.0040.0204.75
4.4.60.0060.0194.76
4.4.50.0040.0214.77
4.4.40.0040.0334.71
4.4.30.0040.0204.76
4.4.20.0040.0214.84
4.4.10.0080.0194.85
4.4.00.0050.0314.76
4.3.110.0050.0194.67
4.3.100.0050.0194.67
4.3.90.0030.0214.63
4.3.80.0030.0334.58
4.3.70.0050.0214.63
4.3.60.0060.0194.63
4.3.50.0050.0214.63
4.3.40.0070.0294.54
4.3.30.0020.0223.28
4.3.20.0030.0203.26
4.3.10.0030.0193.22
4.3.00.0070.01316.15

preferences:
42.66 ms | 401 KiB | 5 Q