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.0070.01118.31
8.3.50.0130.00517.54
8.3.40.0090.00618.61
8.3.30.0090.00618.67
8.3.20.0050.00318.93
8.3.10.0050.00520.65
8.3.00.0000.00919.38
8.2.180.0180.00418.67
8.2.170.0150.00322.96
8.2.160.0150.00020.45
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0100.00318.89
8.2.110.0030.00620.57
8.2.100.0060.00617.84
8.2.90.0030.00619.05
8.2.80.0040.00418.09
8.2.70.0030.00617.50
8.2.60.0090.00017.91
8.2.50.0050.00318.10
8.2.40.0030.00617.91
8.2.30.0000.00817.91
8.2.20.0040.00419.27
8.2.10.0040.00417.79
8.2.00.0040.00417.73
8.1.280.0090.00625.92
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0110.00723.84
8.1.230.0040.00717.76
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0070.00018.69
8.1.160.0040.00418.75
8.1.150.0070.00018.51
8.1.140.0040.00417.44
8.1.130.0030.00317.93
8.1.120.0030.00517.35
8.1.110.0000.00717.38
8.1.100.0050.00217.33
8.1.90.0040.00417.48
8.1.80.0040.00417.38
8.1.70.0050.00517.43
8.1.60.0000.00717.48
8.1.50.0000.00817.36
8.1.40.0030.00517.57
8.1.30.0090.00017.57
8.1.20.0080.00017.54
8.1.10.0040.00417.64
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00818.41
8.0.270.0030.00317.09
8.0.260.0030.00316.84
8.0.250.0040.00416.91
8.0.240.0070.00016.96
8.0.230.0000.00816.86
8.0.220.0070.00016.80
8.0.210.0000.00716.77
8.0.200.0000.00717.00
8.0.190.0000.00716.86
8.0.180.0050.00216.87
8.0.170.0090.00016.82
8.0.160.0000.00716.82
8.0.150.0040.00416.76
8.0.140.0050.00516.84
8.0.130.0000.00613.29
8.0.120.0030.00616.89
8.0.110.0000.00816.99
8.0.100.0060.00316.97
8.0.90.0040.00416.93
8.0.80.0110.00416.87
8.0.70.0040.00416.91
8.0.60.0040.00416.73
8.0.50.0000.00716.85
8.0.30.0100.00716.90
8.0.20.0090.01417.28
8.0.10.0030.00516.90
8.0.00.0140.00516.80
7.4.330.0000.00512.93
7.4.320.0040.00416.49
7.4.300.0000.00616.53
7.4.290.0030.00416.52
7.4.280.0040.00416.54
7.4.270.0040.00416.62
7.4.260.0030.00313.21
7.4.250.0030.00516.49
7.4.240.0040.00416.64
7.4.230.0070.00016.49
7.4.220.0090.00916.60
7.4.210.0120.00316.55
7.4.200.0050.00316.64
7.4.190.0050.00316.70
7.4.160.0050.01016.41
7.4.150.0150.00616.49
7.4.140.0110.00716.47
7.4.130.0150.00816.49
7.4.120.0000.01616.35
7.4.110.0080.01616.42
7.4.100.0140.00716.53
7.4.90.0120.01116.64
7.4.80.0130.00719.39
7.4.70.0070.01316.52
7.4.60.0150.00016.63
7.4.50.0080.00016.45
7.4.40.0030.01316.33
7.4.30.0060.01016.59
7.4.00.0070.00715.18
7.3.330.0000.00713.34
7.3.320.0000.00513.24
7.3.310.0030.00316.34
7.3.300.0030.00316.18
7.3.290.0040.01016.30
7.3.280.0080.01216.31
7.3.270.0100.01716.35
7.3.260.0070.01016.50
7.3.250.0130.00916.56
7.3.240.0100.00616.22
7.3.230.0120.00416.56
7.3.210.0100.00716.51
7.3.200.0070.01016.54
7.3.190.0120.00316.19
7.3.180.0030.01216.21
7.3.170.0130.00316.27
7.3.160.0200.00416.50
7.3.120.0060.01014.93
7.3.10.0070.00716.70
7.3.00.0070.00716.48
7.2.330.0140.00316.63
7.2.320.0170.00016.34
7.2.310.0090.00916.64
7.2.300.0200.00316.50
7.2.290.0140.00316.54
7.2.130.0110.00416.81
7.2.120.0100.00316.63
7.2.110.0080.00316.80
7.2.100.0060.00716.80
7.2.90.0090.00616.50
7.2.80.0060.01016.68
7.2.70.0090.00616.72
7.2.60.0030.00916.66
7.2.50.0070.00416.86
7.2.40.0060.00616.83
7.2.30.0060.00616.78
7.2.20.0070.00716.64
7.2.10.0100.00316.87
7.2.00.0060.00617.85
7.1.250.0070.00715.75
7.1.200.0000.00715.43
7.1.100.0030.01017.98
7.1.70.0000.01516.81
7.1.60.0110.01419.30
7.1.50.0000.01116.94
7.1.00.0030.06722.28
7.0.200.0080.00314.83
7.0.140.0030.07321.95
7.0.120.0030.07721.98
7.0.60.0100.04719.97
7.0.50.0030.05717.91
7.0.40.0030.08017.80
7.0.30.0130.07717.76
7.0.20.0070.07717.74
7.0.10.0100.05017.75
7.0.00.0070.06317.75
5.6.280.0030.07321.07
5.6.210.0030.08720.73
5.6.200.0100.07018.19
5.6.190.0130.07718.12
5.6.180.0000.09018.22
5.6.170.0100.07318.19
5.6.160.0000.09018.27
5.6.150.0070.06718.18
5.6.140.0000.06018.19
5.6.130.0100.04018.25
5.6.120.0100.08018.23
5.6.110.0070.08018.15
5.6.100.0070.08018.27
5.6.90.0030.06718.25
5.6.80.0100.07317.67
5.6.70.0170.06317.56
5.6.60.0030.07717.62
5.6.50.0070.06717.58
5.6.40.0100.06717.64
5.6.30.0070.06317.54
5.6.20.0070.08317.59
5.6.10.0030.05717.54
5.6.00.0070.04717.49
5.5.350.0200.03320.42
5.5.340.0170.07017.99
5.5.330.0070.08017.95
5.5.320.0070.04018.07
5.5.310.0100.07318.02
5.5.300.0100.07317.95
5.5.290.0130.08318.09
5.5.280.0170.06017.95
5.5.270.0070.08317.94
5.5.260.0000.07718.08
5.5.250.0200.07717.79
5.5.240.0070.07717.37
5.5.230.0030.04017.45
5.5.220.0000.08017.36
5.5.210.0130.07317.34
5.5.200.0130.07017.34
5.5.190.0130.07317.34
5.5.180.0130.07317.31
5.5.160.0030.04717.28
5.5.150.0100.05717.37
5.5.140.0170.03717.34
5.5.130.0030.07317.32
5.5.120.0070.04317.43
5.5.110.0070.03717.32
5.5.100.0070.05717.20
5.5.90.0070.05017.33
5.5.80.0100.04017.24
5.5.70.0030.08017.23
5.5.60.0070.04717.22
5.5.50.0030.04717.32
5.5.40.0000.04317.20
5.5.30.0000.04317.18
5.5.20.0030.03717.22
5.5.10.0030.04017.19
5.5.00.0000.04017.32
5.4.450.0100.05019.20
5.4.440.0270.03319.38
5.4.430.0070.07719.48
5.4.420.0030.05319.37
5.4.410.0030.08319.24
5.4.400.0070.05319.03
5.4.390.0070.04719.05
5.4.380.0070.07319.13
5.4.370.0100.04719.12
5.4.360.0070.05319.05
5.4.350.0070.06319.09
5.4.340.0030.06319.09
5.4.320.0030.06319.31
5.4.310.0030.07019.09
5.4.300.0000.04719.30
5.4.290.0030.04018.88
5.4.280.0030.06019.02
5.4.270.0070.04719.12
5.4.260.0100.07319.00
5.4.250.0070.04719.26
5.4.240.0000.07718.94
5.4.230.0030.05018.98
5.4.220.0100.07019.02
5.4.210.0100.07719.11
5.4.200.0030.03719.11
5.4.190.0130.02719.02
5.4.180.0100.03019.11
5.4.170.0030.03719.00
5.4.160.0030.03719.00
5.4.150.0000.04019.10
5.4.140.0130.02316.46
5.4.130.0000.03716.29
5.4.120.0030.03716.38
5.4.110.0000.03716.45
5.4.100.0070.03016.45
5.4.90.0030.04316.35
5.4.80.0070.03016.42
5.4.70.0030.03316.37
5.4.60.0030.04316.36
5.4.50.0030.03316.29
5.4.40.0100.02716.40
5.4.30.0030.03316.37
5.4.20.0000.03716.35
5.4.10.0000.03716.38
5.4.00.0070.03015.82
5.3.290.0100.05714.72
5.3.280.0000.05014.63
5.3.270.0070.03314.82
5.3.260.0070.03714.67
5.3.250.0000.04014.65
5.3.240.0030.03714.66
5.3.230.0070.04014.70
5.3.220.0000.03714.57
5.3.210.0000.04014.61
5.3.200.0070.03314.67
5.3.190.0030.03714.61
5.3.180.0070.03314.63
5.3.170.0030.03314.55
5.3.160.0000.03714.54
5.3.150.0030.03314.53
5.3.140.0000.03714.62
5.3.130.0000.04014.61
5.3.120.0030.03714.59
5.3.110.0000.04314.54
5.3.100.0000.03714.03
5.3.90.0100.02714.05
5.3.80.0030.03714.04
5.3.70.0000.03713.90
5.3.60.0070.03013.99
5.3.50.0030.03713.98
5.3.40.0030.03313.98
5.3.30.0030.03313.96
5.3.20.0030.04013.74
5.3.10.0000.03713.53
5.3.00.0070.05713.75
5.2.170.0070.02311.01
5.2.160.0030.02711.04
5.2.150.0030.04311.19
5.2.140.0000.03011.21
5.2.130.0000.03011.15
5.2.120.0030.02711.16
5.2.110.0030.02711.09
5.2.100.0000.05711.12
5.2.90.0100.05010.95
5.2.80.0030.03310.94
5.2.70.0000.06711.08
5.2.60.0070.06011.04
5.2.50.0100.03311.04
5.2.40.0100.05310.89
5.2.30.0070.03710.97
5.2.20.0000.05010.98
5.2.10.0170.05010.85
5.2.00.0000.05310.68
5.1.60.0000.0439.94
5.1.50.0100.0279.97
5.1.40.0030.0539.96
5.1.30.0100.05710.36
5.1.20.0070.05310.56
5.1.10.0030.05710.28
5.1.00.0030.05710.28
5.0.50.0030.0508.72
5.0.40.0000.0508.72
5.0.30.0100.0438.72
5.0.20.0000.0308.72
5.0.10.0030.0438.72
5.0.00.0030.0608.72
4.4.90.0000.0408.72
4.4.80.0000.0338.72
4.4.70.0000.0278.72
4.4.60.0070.0338.72
4.4.50.0000.0278.72
4.4.40.0070.0508.72
4.4.30.0000.0378.72
4.4.20.0000.0278.72
4.4.10.0000.0378.72
4.4.00.0000.0578.72
4.3.110.0030.0338.72
4.3.100.0030.0338.72
4.3.90.0000.0378.72
4.3.80.0030.0578.72
4.3.70.0100.0278.72
4.3.60.0000.0178.72
4.3.50.0070.0338.72
4.3.40.0070.0438.72
4.3.30.0070.0208.72
4.3.20.0070.0178.72
4.3.10.0030.0278.72
4.3.00.0000.0278.72

preferences:
49.78 ms | 401 KiB | 5 Q