3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accessID = "09d67621"; $secretKey = "c0ab83a5057b00d294a2b7531ce21236"; $expires = mktime() + 300; // The request is good for the next 5 minutes, or 300 seconds from now. $stringToSign = $accessID."\n".$expires; // Get the "raw" or binary output of the hmac hash. $binarySignature = hash_hmac('sha1', $stringToSign, $secretKey, true); // We need to base64-encode it and then url-encode that. $urlSafeSignature = urlencode(base64_encode($binarySignature)); $urlToFetch = "http://api3.wordtracker.com/search?keyword=cheap&app_id=09d67621&app_key=c0ab83a5057b00d294a2b7531ce21236&limit=3"; echo $urlToFetch; $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, $urlToFetch); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 120); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); $buffer = curl_exec($curl_handle); curl_close($curl_handle); $buffer=utf8_encode($buffer); $arr = json_decode($buffer); print_r($arr); ?>

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.0040.01418.30
8.3.50.0140.00221.92
8.3.40.0090.00618.85
8.3.30.0100.01019.21
8.3.20.0100.00320.16
8.3.10.0050.00322.09
8.3.00.0080.00022.50
8.2.180.0150.00416.88
8.2.170.0090.00622.96
8.2.160.0110.00420.63
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0110.00426.16
8.2.120.0000.00817.63
8.2.110.0070.00322.20
8.2.100.0080.00319.64
8.2.90.0060.00319.27
8.2.80.0030.00617.97
8.2.70.0040.00417.38
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0090.00018.22
8.2.30.0000.00717.96
8.2.20.0080.00017.69
8.2.10.0040.00417.72
8.2.00.0040.00417.77
8.1.280.0140.00725.92
8.1.270.0080.00022.17
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00023.78
8.1.230.0110.00019.10
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.13
8.1.190.0050.00317.39
8.1.180.0080.00018.61
8.1.170.0000.00818.50
8.1.160.0000.00722.02
8.1.150.0000.00818.47
8.1.140.0040.00417.41
8.1.130.0070.00017.81
8.1.120.0030.00317.50
8.1.110.0050.00217.40
8.1.100.0050.00217.45
8.1.90.0080.00017.32
8.1.80.0050.00217.44
8.1.70.0070.00017.43
8.1.60.0040.00417.52
8.1.50.0000.00717.61
8.1.40.0050.00317.53
8.1.30.0050.00317.68
8.1.20.0030.00617.57
8.1.10.0050.00217.51
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0040.00418.32
8.0.270.0000.00717.16
8.0.260.0040.00418.33
8.0.250.0030.00317.05
8.0.240.0030.00316.94
8.0.230.0030.00616.94
8.0.220.0030.00316.89
8.0.210.0000.00716.97
8.0.200.0000.00617.03
8.0.190.0040.00417.05
8.0.180.0000.00817.05
8.0.170.0000.00716.91
8.0.160.0000.00717.10
8.0.150.0080.00016.89
8.0.140.0080.00016.90
8.0.130.0000.00613.37
8.0.120.0050.00316.92
8.0.110.0000.00717.00
8.0.100.0000.00716.89
8.0.90.0030.00316.88
8.0.80.0080.00816.94
8.0.70.0000.00817.01
8.0.60.0040.00417.04
8.0.50.0000.00717.09
8.0.30.0150.00716.97
8.0.20.0090.00917.40
8.0.10.0020.00517.21
8.0.00.0130.00616.72
7.4.330.0000.00515.00
7.4.320.0000.00716.50
7.4.300.0000.00616.73
7.4.290.0030.00316.74
7.4.280.0030.00516.64
7.4.270.0030.00316.59
7.4.260.0000.00716.64
7.4.250.0040.00416.60
7.4.240.0020.00516.66
7.4.230.0030.00316.58
7.4.220.0110.00616.55
7.4.210.0050.01116.67
7.4.200.0090.00016.72
7.4.190.0040.00416.69
7.4.160.0110.00916.50
7.4.150.0100.00717.40
7.4.140.0160.00517.86
7.4.130.0110.00616.66
7.4.120.0110.00716.76
7.4.110.0100.00716.61
7.4.100.0120.00916.53
7.4.90.0000.02016.80
7.4.80.0100.01319.39
7.4.70.0090.01316.73
7.4.60.0140.00316.54
7.4.50.0000.00816.56
7.4.40.0050.00622.77
7.4.30.0030.01416.59
7.4.00.0080.01015.14
7.3.330.0000.00613.34
7.3.320.0060.00013.19
7.3.310.0030.00316.28
7.3.300.0030.00316.46
7.3.290.0090.00916.43
7.3.280.0040.01416.43
7.3.270.0030.01517.40
7.3.260.0130.00916.58
7.3.250.0140.00516.77
7.3.240.0030.01416.64
7.3.230.0080.00816.65
7.3.210.0110.00716.60
7.3.200.0130.00319.39
7.3.190.0120.00616.77
7.3.180.0090.00616.49
7.3.170.0110.01116.59
7.3.160.0100.01316.59
7.3.120.0070.00915.14
7.3.110.0100.00714.94
7.3.100.0100.00615.04
7.3.90.0000.01314.91
7.3.80.0060.00615.01
7.3.70.0000.01514.99
7.3.60.0060.00314.99
7.3.50.0030.00614.82
7.3.40.0090.00615.05
7.3.30.0100.00615.02
7.3.20.0000.01516.88
7.3.10.0050.00916.58
7.3.00.0080.00516.81
7.2.330.0100.01316.93
7.2.320.0030.01316.74
7.2.310.0070.01316.49
7.2.300.0000.01616.88
7.2.290.0100.00616.57
7.2.250.0100.01015.45
7.2.240.0070.01315.04
7.2.230.0070.00715.41
7.2.220.0140.00315.25
7.2.210.0130.00314.72
7.2.200.0060.00915.11
7.2.190.0120.00315.32
7.2.180.0070.01015.27
7.2.170.0000.01814.98
7.2.130.0070.00716.86
7.2.120.0000.01216.99
7.2.110.0040.01017.02
7.2.100.0090.00517.07
7.2.90.0000.01217.11
7.2.80.0060.00917.16
7.2.70.0000.01217.14
7.2.60.0050.00916.84
7.2.50.0030.01017.13
7.2.40.0070.00717.18
7.2.30.0080.00417.23
7.2.20.0070.00317.08
7.2.10.0080.00417.13
7.2.00.0030.01018.31
7.1.330.0080.00615.96
7.1.320.0070.00715.96
7.1.310.0050.00316.11
7.1.300.0050.00515.87
7.1.290.0100.00715.81
7.1.280.0100.00015.64
7.1.270.0000.01416.01
7.1.260.0030.00915.69
7.1.250.0060.00916.00
7.1.200.0070.00715.71
7.1.100.0060.00618.33
7.1.70.0030.00917.32
7.1.60.0040.01419.82
7.1.50.0060.01617.14
7.1.00.0000.08022.31
7.0.200.0040.00417.12
7.0.140.0070.06722.09
7.0.100.0130.06319.91
7.0.90.0270.08019.92
7.0.80.0300.06720.16
7.0.70.0170.07019.95
7.0.60.0070.08719.98
7.0.50.0170.07720.36
7.0.40.0070.04720.09
7.0.30.0130.05719.94
7.0.20.0030.07320.13
7.0.10.0100.06020.09
7.0.00.0100.07320.09
5.6.280.0100.06721.07
5.6.250.0070.07720.71
5.6.240.0100.07320.75
5.6.230.0070.08320.67
5.6.220.0130.06720.57
5.6.210.0000.08320.47
5.6.200.0070.08321.01
5.6.190.0070.08321.03
5.6.180.0230.03721.14
5.6.170.0070.06720.96
5.6.160.0070.05021.07
5.6.150.0030.06021.02
5.6.140.0100.06321.16
5.6.130.0100.08021.10
5.6.120.0030.05721.11
5.6.110.0000.04721.03
5.6.100.0030.06721.00
5.6.90.0070.05021.04
5.6.80.0070.07720.50
5.6.70.0130.06320.40
5.6.60.0130.07020.41
5.6.50.0030.04320.50
5.6.40.0170.07020.43
5.6.30.0070.08020.38
5.6.20.0170.06720.46
5.6.10.0030.07020.43
5.6.00.0000.08720.29
5.5.380.0070.07720.41
5.5.370.0100.07320.45
5.5.360.0030.04320.49
5.5.350.0070.08320.34
5.5.340.0070.07020.84
5.5.330.0070.08320.84
5.5.320.0100.07320.90
5.5.310.0100.07320.86
5.5.300.0070.04020.88
5.5.290.0100.07720.79
5.5.280.0100.08020.92
5.5.270.0170.07720.89
5.5.260.0130.07020.82
5.5.250.0070.06720.55
5.5.240.0030.05320.29
5.5.230.0130.07020.26
5.5.220.0000.06320.27
5.5.210.0030.04320.30
5.5.200.0130.03720.11
5.5.190.0100.04720.11
5.5.180.0100.07320.09
5.5.160.0100.07320.25
5.5.150.0070.07320.26
5.5.140.0100.05020.18
5.5.130.0170.07320.16
5.5.120.0070.07320.08
5.5.110.0030.08320.14
5.5.100.0100.05320.05
5.5.90.0130.06720.15
5.5.80.0170.07320.07
5.5.70.0030.08320.07
5.5.60.0100.06720.11
5.5.50.0070.07720.06
5.5.40.0130.07020.00
5.5.30.0070.07320.15
5.5.20.0170.07020.13
5.5.10.0100.07320.18
5.5.00.0070.04719.91
5.4.450.0030.06719.38
5.4.440.0030.06019.43
5.4.430.0070.06319.27
5.4.420.0030.06319.13
5.4.410.0030.05019.26
5.4.400.0130.06719.04
5.4.390.0100.06718.91
5.4.380.0030.04718.97
5.4.370.0070.06718.92
5.4.360.0200.06719.07
5.4.350.0070.07319.23
5.4.340.0070.08018.81
5.4.320.0070.04719.00
5.4.310.0070.06719.06
5.4.300.0030.07019.16
5.4.290.0200.05718.98
5.4.280.0030.09019.15
5.4.270.0000.07018.80
5.4.260.0170.06318.77
5.4.250.0100.07719.02
5.4.240.0070.03718.94
5.4.230.0070.07319.11
5.4.220.0130.07019.04
5.4.210.0130.07319.05
5.4.200.0000.08019.03
5.4.190.0130.07719.11
5.4.180.0070.05019.02
5.4.170.0100.06319.11
5.4.160.0070.05719.04
5.4.150.0070.07718.96
5.4.140.0030.06016.32
5.4.130.0030.06016.33
5.4.120.0070.06316.30
5.4.110.0070.07316.38
5.4.100.0030.06716.27
5.4.90.0100.05316.27
5.4.80.0070.07016.25
5.4.70.0070.06716.26
5.4.60.0070.06716.21
5.4.50.0100.06016.28
5.4.40.0000.07016.34
5.4.30.0030.07316.42
5.4.20.0130.06016.30
5.4.10.0130.06716.18
5.4.00.0030.07015.81
5.3.290.0070.05714.53
5.3.280.0070.07714.60
5.3.270.0130.07314.55
5.3.260.0100.07014.55
5.3.250.0130.03314.62
5.3.240.0100.07014.52
5.3.230.0030.07714.60
5.3.220.0030.08314.39
5.3.210.0070.04714.55
5.3.200.0130.07014.52
5.3.190.0030.06714.50
5.3.180.0100.07014.52
5.3.170.0100.07014.54
5.3.160.0100.07314.57
5.3.150.0030.04714.51
5.3.140.0030.03714.42
5.3.130.0030.08014.49
5.3.120.0130.07314.54
5.3.110.0000.07714.54
5.3.100.0100.06713.87
5.3.90.0070.07014.01
5.3.80.0100.07013.87
5.3.70.0130.05713.98
5.3.60.0030.04313.98
5.3.50.0030.03713.91
5.3.40.0000.04713.89
5.3.30.0000.03713.92
5.3.20.0030.07013.65
5.3.10.0130.06713.65
5.3.00.0100.06313.63
5.2.170.0030.06011.01
5.2.160.0030.04011.21
5.2.150.0100.02311.11
5.2.140.0000.03011.18
5.2.130.0000.06011.09
5.2.120.0070.05711.14
5.2.110.0070.06010.94
5.2.100.0000.06311.07
5.2.90.0000.04011.02
5.2.80.0070.02311.08
5.2.70.0100.05711.14
5.2.60.0030.05711.04
5.2.50.0030.06010.94
5.2.40.0000.06010.96
5.2.30.0130.04710.98
5.2.20.0030.06310.98
5.2.10.0030.03710.79
5.2.00.0070.06010.67
5.1.60.0070.03010.07
5.1.50.0000.05010.04
5.1.40.0030.02710.05
5.1.30.0070.04710.42
5.1.20.0030.04710.40
5.1.10.0030.05310.14
5.1.00.0030.0379.95
5.0.50.0100.0409.02
5.0.40.0100.0339.02
5.0.30.0070.0639.02
5.0.20.0030.0239.02
5.0.10.0000.0209.02
5.0.00.0030.0479.02
4.4.90.0030.0309.02
4.4.80.0030.0339.02
4.4.70.0070.0309.02
4.4.60.0000.0379.02
4.4.50.0000.0409.02
4.4.40.0030.0479.02
4.4.30.0070.0309.02
4.4.20.0000.0209.02
4.4.10.0000.0279.02
4.4.00.0000.0479.02
4.3.110.0000.0379.02
4.3.100.0030.0339.02
4.3.90.0030.0139.02
4.3.80.0030.0539.02
4.3.70.0030.0179.02
4.3.60.0000.0309.02
4.3.50.0000.0279.02
4.3.40.0030.0339.02
4.3.30.0000.0209.02
4.3.20.0030.0339.02
4.3.10.0000.0239.02
4.3.00.0000.0339.02

preferences:
82.98 ms | 401 KiB | 5 Q