3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doHttpRequest($url, $post_data = NULL, $method = 'GET') { $ch = curl_init(); $options = array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_HEADER => FALSE, CURLOPT_CUSTOMREQUEST => $method ); if (isset($post_data)){ if($method == "POST") { $options[CURLOPT_POST] = TRUE; $options[CURLOPT_POSTFIELDS] = $post_data; } else { $options[CURLOPT_URL] = $url .'?'. http_build_query($post_data,'','&'); } } curl_setopt_array($ch, $options); $response = curl_exec($ch); curl_close($ch); return $response; } $post_data = array( 'apiKey' => 'bbd9f56b9ec239745931df1026baee74', 'campaign' => '4732' ); $data = doHttpRequest('http://theappreciationengine.com/api/top',$post_data); ?>

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.0100.01018.33
8.3.50.0080.00822.11
8.3.40.0110.00418.70
8.3.30.0110.00319.09
8.3.20.0080.00020.34
8.3.10.0040.00421.95
8.3.00.0000.00822.32
8.2.180.0040.01116.75
8.2.170.0090.00922.96
8.2.160.0110.00320.83
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0130.00726.16
8.2.120.0040.00419.11
8.2.110.0090.00022.27
8.2.100.0000.01119.52
8.2.90.0040.00419.23
8.2.80.0030.00618.04
8.2.70.0030.00617.50
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0030.00518.03
8.2.30.0000.00718.02
8.2.20.0000.00717.61
8.2.10.0000.00819.53
8.2.00.0040.00417.63
8.1.280.0060.01325.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0100.00019.16
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0000.00817.53
8.1.180.0040.00418.42
8.1.170.0000.00818.59
8.1.160.0040.00421.96
8.1.150.0040.00418.58
8.1.140.0000.00717.39
8.1.130.0030.00317.79
8.1.120.0050.00217.30
8.1.110.0040.00317.45
8.1.100.0000.00717.43
8.1.90.0000.00717.30
8.1.80.0000.00717.43
8.1.70.0070.00017.42
8.1.60.0030.00617.60
8.1.50.0020.00517.52
8.1.40.0040.00417.41
8.1.30.0040.00417.63
8.1.20.0050.00317.70
8.1.10.0000.00717.57
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0000.00718.25
8.0.270.0050.00217.26
8.0.260.0030.00316.84
8.0.250.0030.00316.96
8.0.240.0040.00416.93
8.0.230.0040.00416.91
8.0.220.0000.00816.84
8.0.210.0070.00016.92
8.0.200.0030.00317.01
8.0.190.0060.00316.85
8.0.180.0030.00316.76
8.0.170.0040.00416.95
8.0.160.0000.00716.91
8.0.150.0070.00016.89
8.0.140.0050.00316.76
8.0.130.0060.00013.29
8.0.120.0030.00516.95
8.0.110.0080.00016.83
8.0.100.0000.00716.99
8.0.90.0070.00016.77
8.0.80.0110.00816.90
8.0.70.0000.00716.93
8.0.60.0040.00416.77
8.0.50.0040.00416.79
8.0.30.0170.00317.14
8.0.20.0110.00717.40
8.0.10.0000.00716.84
8.0.00.0110.01116.67
7.4.330.0000.00515.00
7.4.320.0000.00616.30
7.4.300.0000.00616.41
7.4.290.0000.00816.52
7.4.280.0070.00016.42
7.4.270.0030.00616.48
7.4.260.0030.00316.48
7.4.250.0030.00516.53
7.4.240.0020.00516.51
7.4.230.0030.00316.71
7.4.220.0140.00416.50
7.4.210.0060.01016.58
7.4.200.0030.00316.34
7.4.190.0000.00716.59
7.4.160.0160.00016.40
7.4.150.0080.00917.40
7.4.140.0080.00917.86
7.4.130.0060.01316.43
7.4.120.0080.00916.47
7.4.110.0100.00716.31
7.4.100.0070.01016.44
7.4.90.0070.01116.62
7.4.80.0110.00619.39
7.4.70.0100.00616.40
7.4.60.0070.01016.45
7.4.50.0040.00416.59
7.4.40.0070.01122.77
7.4.30.0100.01016.57
7.4.00.0000.01514.91
7.3.330.0050.00013.18
7.3.320.0000.00513.25
7.3.310.0000.00716.18
7.3.300.0000.00616.14
7.3.290.0070.00716.28
7.3.280.0070.01016.29
7.3.270.0140.00317.40
7.3.260.0100.01016.26
7.3.250.0110.01016.40
7.3.240.0040.01116.60
7.3.230.0030.01316.39
7.3.210.0140.00716.32
7.3.200.0100.01319.39
7.3.190.0060.01016.52
7.3.180.0170.00316.62
7.3.170.0100.00616.29
7.3.160.0120.00916.27
7.3.120.0090.00914.96
7.3.110.0030.01514.88
7.3.100.0000.01514.59
7.3.90.0070.01014.89
7.3.80.0050.00514.52
7.3.70.0000.01714.92
7.3.60.0060.00314.76
7.3.50.0120.00314.81
7.3.40.0080.00614.82
7.3.30.0080.00414.79
7.3.20.0090.00616.51
7.3.10.0100.00716.74
7.3.00.0140.00016.78
7.2.330.0110.00516.65
7.2.320.0120.01116.52
7.2.310.0030.01316.28
7.2.300.0150.00616.62
7.2.290.0110.00516.68
7.2.240.0150.00414.95
7.2.230.0030.01615.07
7.2.220.0040.01114.84
7.2.210.0000.01415.07
7.2.200.0120.00014.79
7.2.190.0030.01014.85
7.2.180.0120.00314.99
7.2.170.0100.00314.99
7.2.160.0090.00315.03
7.2.150.0070.00716.82
7.2.140.0120.00316.60
7.2.130.0060.00316.59
7.2.120.0060.00916.64
7.2.110.0060.00616.73
7.2.100.0120.00616.77
7.2.90.0070.01316.85
7.2.80.0030.01316.92
7.2.70.0130.00316.82
7.2.60.0030.01316.67
7.2.50.0110.00416.78
7.2.40.0040.00816.99
7.2.30.0060.01216.70
7.2.20.0090.00316.57
7.2.10.0080.00816.72
7.2.00.0050.00817.66
7.1.330.0070.01015.63
7.1.320.0100.00615.60
7.1.310.0070.00715.61
7.1.300.0140.00015.68
7.1.290.0000.01315.39
7.1.280.0000.01415.36
7.1.270.0040.01115.68
7.1.260.0120.00315.73
7.1.250.0090.00615.85
7.1.200.0100.00315.54
7.1.100.0030.01017.78
7.1.70.0110.00416.69
7.1.60.0030.01919.82
7.1.50.0090.00616.93
7.1.00.0000.07722.36
7.0.200.0030.00316.40
7.0.140.0200.05722.00
7.0.60.0100.08319.96
7.0.50.0130.07717.94
7.0.40.0000.04720.42
7.0.30.0430.05320.33
7.0.20.0070.05020.22
7.0.10.0030.04320.24
7.0.00.0070.05720.10
5.6.280.0070.06720.86
5.6.210.0130.07320.63
5.6.200.0030.04718.15
5.6.190.0100.08020.35
5.6.180.0230.05720.58
5.6.170.0230.04720.47
5.6.160.0070.07320.49
5.6.150.0100.06718.15
5.6.140.0030.04018.14
5.6.130.0100.05318.23
5.6.120.0030.04020.98
5.6.110.0000.04321.14
5.6.100.0100.04720.96
5.6.90.0030.09020.98
5.6.80.0130.06720.51
5.6.70.4330.03720.36
5.5.350.0170.07320.38
5.5.340.0030.07717.99
5.5.330.0070.08720.25
5.5.320.0170.07020.27
5.5.310.0270.07720.27
5.5.300.0070.03318.00
5.5.290.0100.03717.97
5.5.280.0030.08720.88
5.5.270.0030.06720.96
5.5.260.0130.07320.96
5.5.250.0100.08020.69
5.5.240.0070.07720.02
5.4.450.0600.05019.36
5.4.440.0300.05719.61
5.4.430.0130.05319.39
5.4.420.0030.06019.32
5.4.410.0230.04319.21
5.4.400.0930.00018.54
5.4.390.1070.00018.63
5.4.380.0170.06018.63
5.4.370.0230.05718.78
5.4.360.0270.05018.72
5.4.350.0300.04718.80
5.4.340.0230.05718.79
5.4.320.0120.03812.51
5.4.310.0070.03812.50
5.4.300.0060.04212.51
5.4.290.0010.04312.51
5.4.280.0070.04112.41
5.4.270.0070.04112.40
5.4.260.0100.07718.80
5.4.250.0100.05019.05
5.4.240.0170.07319.00
5.4.230.0130.06718.71
5.4.220.0070.05719.07
5.4.210.0130.05318.65
5.4.200.0070.05319.00
5.4.190.0070.06018.84
5.4.180.0070.07018.79
5.4.170.0030.06018.82
5.4.160.0200.05018.96
5.4.150.0200.06318.93
5.4.140.0100.05316.56
5.4.130.0100.06716.31
5.4.120.0100.05316.39
5.4.110.0100.05716.49
5.4.100.0170.06016.34
5.4.90.0100.05016.39
5.4.80.0130.06316.52
5.4.70.0030.05716.52
5.4.60.0100.04716.53
5.4.50.0030.05316.51
5.4.40.0070.05016.52
5.4.30.0100.06316.49
5.4.20.0200.05016.46
5.4.10.0100.05316.48
5.4.00.0070.05015.87
5.3.290.0050.05312.80
5.3.280.0070.06714.59
5.3.270.0070.06314.77
5.3.260.0070.05714.68
5.3.250.0130.04714.78
5.3.240.0170.06014.60
5.3.230.0170.05714.61
5.3.220.0130.07314.55
5.3.210.0030.07014.61
5.3.200.0200.04714.46
5.3.190.0100.08014.79
5.3.180.0130.07014.55
5.3.170.0170.05714.59
5.3.160.0170.05714.46
5.3.150.0100.07014.53
5.3.140.0070.07314.39
5.3.130.0100.05014.54
5.3.120.0100.05014.77
5.3.110.0070.07314.52
5.3.100.0200.06014.05
5.3.90.0000.06014.08
5.3.80.0030.07313.93
5.3.70.0170.06014.09
5.3.60.0070.05014.16
5.3.50.0070.05314.17
5.3.40.0070.05014.11
5.3.30.0070.07014.01
5.3.20.0070.06713.85
5.3.10.0130.05313.86
5.3.00.0100.05313.71
5.2.170.0030.05711.13
5.2.160.0100.04011.21
5.2.150.0070.04310.97
5.2.140.0070.05011.05
5.2.130.0170.03311.28
5.2.120.0130.04011.19
5.2.110.0030.04711.18
5.2.100.0170.04311.08
5.2.90.0070.03711.08
5.2.80.0170.05010.99
5.2.70.0030.04711.30
5.2.60.0100.05711.13
5.2.50.0070.04011.11
5.2.40.0030.05710.96
5.2.30.0070.04710.89
5.2.20.0100.03711.04
5.2.10.0100.04710.93
5.2.00.0100.05010.89
5.1.60.0070.03010.09
5.1.50.0030.05010.09
5.1.40.0000.0379.81
5.1.30.0000.04010.40
5.1.20.0070.04310.43
5.1.10.0070.03710.12
5.1.00.0030.03710.05
5.0.50.0130.0208.39
5.0.40.0000.0438.40
5.0.30.0070.0378.20
5.0.20.0070.0238.15
5.0.10.0000.0308.19
5.0.00.0070.0378.09
4.4.90.0100.0177.02
4.4.80.0030.0307.02
4.4.70.0000.0237.02
4.4.60.0030.0207.02
4.4.50.0000.0277.02
4.4.40.0100.0277.02
4.4.30.0070.0237.02
4.4.20.0100.0307.02
4.4.10.0030.0237.02
4.4.00.0030.0437.02
4.3.110.0000.0237.02
4.3.100.0070.0237.02
4.3.90.0100.0137.02
4.3.80.0000.0437.02
4.3.70.0030.0277.02
4.3.60.0000.0277.02
4.3.50.0070.0277.02
4.3.40.0030.0407.02
4.3.30.0000.0307.02
4.3.20.0030.0207.02
4.3.10.0000.0277.02
4.3.00.0170.0207.32

preferences:
55.97 ms | 401 KiB | 5 Q