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.0140.00718.68
8.3.50.0130.00521.98
8.3.40.0100.00718.96
8.3.30.0060.00819.01
8.3.20.0050.00320.32
8.3.10.0030.00622.04
8.3.00.0000.00822.34
8.2.180.0150.00316.50
8.2.170.0060.01522.96
8.2.160.0110.00320.80
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00326.16
8.2.120.0030.00619.23
8.2.110.0050.00522.20
8.2.100.0060.00318.77
8.1.280.0110.00725.92
8.1.270.0040.00422.09
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00618.49
8.1.230.0070.00318.52
5.4.260.0130.07018.66
5.4.250.0070.06018.93
5.4.240.0130.07718.97
5.4.230.0170.04319.02
5.4.220.0030.06319.03
5.4.210.0170.05018.89
5.4.200.0200.06718.80
5.4.190.0070.05718.93
5.4.180.0130.05318.83
5.4.170.0100.05018.94
5.4.160.0170.04318.64
5.4.150.0000.06718.96
5.4.140.0030.05716.41
5.4.130.0070.05016.32
5.4.120.0130.04316.37
5.4.110.0200.05316.50
5.4.100.0070.05716.57
5.4.90.0070.05716.56
5.4.80.0130.05316.40
5.4.70.0170.06716.55
5.4.60.0030.05016.36
5.4.50.0170.05316.63
5.4.40.0070.05016.36
5.4.30.0130.04716.43
5.4.20.0100.05316.36
5.4.10.0070.05716.48
5.4.00.0100.05715.98
5.3.280.0130.05014.43
5.3.270.0170.04314.69
5.3.260.0100.05014.67
5.3.250.0170.04314.64
5.3.240.0130.06314.74
5.3.230.0130.05314.58
5.3.220.0130.06314.39
5.3.210.0100.05314.70
5.3.200.0130.05014.47
5.3.190.0070.05314.54
5.3.180.0130.04714.56
5.3.170.0170.07014.55
5.3.160.0100.06314.56
5.3.150.0100.07314.65
5.3.140.0070.05014.63
5.3.130.0070.06014.77
5.3.120.0100.05014.71
5.3.110.0130.04714.45
5.3.100.0070.06314.03
5.3.90.0100.05314.18
5.3.80.0030.07014.09
5.3.70.0200.05714.00
5.3.60.0070.05013.97
5.3.50.0070.05014.02
5.3.40.0100.07014.03
5.3.30.0000.06014.07
5.3.20.0170.04313.86
5.3.10.0130.04313.74
5.3.00.0230.04713.82
5.2.170.0070.04011.11
5.2.160.0100.03711.11
5.2.150.0070.04011.21
5.2.140.0130.04310.96
5.2.130.0270.03011.08
5.2.120.0070.04011.09
5.2.110.0030.04011.17
5.2.100.0070.05011.05
5.2.90.0030.04311.05
5.2.80.0070.05311.19
5.2.70.0100.04011.16
5.2.60.0130.05011.13
5.2.50.0070.04311.12
5.2.40.0070.04010.99
5.2.30.0100.03710.92
5.2.20.0000.04311.04
5.2.10.0270.02710.84
5.2.00.0030.05710.88
5.1.60.0100.04310.00
5.1.50.0130.02710.14
5.1.40.0070.03010.04
5.1.30.0030.03710.32
5.1.20.0030.03710.51
5.1.10.0000.04310.16
5.1.00.0130.04310.07
5.0.50.0070.0338.51
5.0.40.0000.0308.38
5.0.30.0030.0438.14
5.0.20.0030.0278.39
5.0.10.0070.0238.27
5.0.00.0070.0378.11
4.4.90.0000.0237.07
4.4.80.0000.0237.07
4.4.70.0070.0177.07
4.4.60.0000.0237.07
4.4.50.0070.0177.07
4.4.40.0000.0377.07
4.4.30.0100.0137.07
4.4.20.0000.0237.07
4.4.10.0030.0237.07
4.4.00.0030.0337.07
4.3.110.0030.0337.07
4.3.100.0030.0207.07
4.3.90.0000.0237.07
4.3.80.0030.0307.07
4.3.70.0000.0237.07
4.3.60.0030.0207.07
4.3.50.0070.0207.07
4.3.40.0000.0377.07
4.3.30.0000.0307.07
4.3.20.0030.0207.07
4.3.10.0000.0237.07
4.3.00.0070.01314.49

preferences:
35.64 ms | 400 KiB | 5 Q