3v4l.org

run code in 300+ PHP versions simultaneously
<?php $objectURL = $searchUrl; $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)
5.4.260.0000.06018.85
5.4.250.0070.06718.94
5.4.240.0200.04718.75
5.4.230.0100.06318.88
5.4.220.0170.06718.89
5.4.210.0100.05318.80
5.4.200.0100.06018.70
5.4.190.0170.04318.86
5.4.180.0100.07718.70
5.4.170.0100.06718.84
5.4.160.0070.05318.83
5.4.150.0070.06718.83
5.4.140.0100.07316.28
5.4.130.0070.05316.52
5.4.120.0100.06316.48
5.4.110.0030.07716.50
5.4.100.0070.05016.29
5.4.90.0170.06316.49
5.4.80.0130.06016.53
5.4.70.0100.07016.33
5.4.60.0230.05716.47
5.4.50.0100.06716.16
5.4.40.0100.06316.32
5.4.30.0130.06016.27
5.4.20.0070.05016.46
5.4.10.0070.05716.28
5.4.00.0130.05715.67
5.3.280.0170.06014.38
5.3.270.0070.06314.66
5.3.260.0070.05714.45
5.3.250.0170.06314.38
5.3.240.0070.07314.46
5.3.230.0100.05314.60
5.3.220.0170.04714.48
5.3.210.0100.05314.35
5.3.200.0000.06314.41
5.3.190.0100.05014.55
5.3.180.0070.07314.72
5.3.170.0070.06014.58
5.3.160.0170.06714.44
5.3.150.0100.06714.45
5.3.140.0130.04714.61
5.3.130.0100.04714.56
5.3.120.0030.07314.25
5.3.110.0070.06314.70
5.3.100.0070.06714.04
5.3.90.0130.04713.72
5.3.80.0030.05313.94
5.3.70.0000.05313.96
5.3.60.0170.04714.02
5.3.50.0130.05713.73
5.3.40.0070.05013.65
5.3.30.0130.06013.90
5.3.20.0100.05713.79
5.3.10.0030.05313.67
5.3.00.0070.04713.66
5.2.170.0030.04311.17
5.2.160.0070.04011.17
5.2.150.0030.04311.14
5.2.140.0070.06011.09
5.2.130.0000.04310.87
5.2.120.0030.06311.02
5.2.110.0070.04011.02
5.2.100.0070.05711.25
5.2.90.0070.04011.03
5.2.80.0030.05311.01
5.2.70.0070.06011.09
5.2.60.0000.04311.15
5.2.50.0100.03711.12
5.2.40.0070.03710.76
5.2.30.0070.05710.89
5.2.20.0130.03310.81
5.2.10.0070.04310.80
5.2.00.0130.04710.63
5.1.60.0000.03710.08
5.1.50.0070.03310.03
5.1.40.0100.03310.04
5.1.30.0030.04010.57
5.1.20.0000.04310.27
5.1.10.0100.03010.23
5.1.00.0100.03310.01
5.0.50.0130.0338.42
5.0.40.0070.0238.45
5.0.30.0000.0478.27
5.0.20.0030.0278.36
5.0.10.0000.0338.19
5.0.00.0000.0508.17
4.4.90.0070.0177.47
4.4.80.0000.0277.47
4.4.70.0000.0277.47
4.4.60.0000.0337.47
4.4.50.0030.0307.47
4.4.40.0000.0507.47
4.4.30.0030.0277.47
4.4.20.0030.0207.47
4.4.10.0030.0237.47
4.4.00.0030.0337.47
4.3.110.0030.0207.47
4.3.100.0070.0237.47
4.3.90.0030.0177.47
4.3.80.0070.0437.47
4.3.70.0000.0307.47
4.3.60.0000.0237.47
4.3.50.0130.0107.47
4.3.40.0030.0437.47
4.3.30.0070.0237.47
4.3.20.0000.0237.47
4.3.10.0000.0237.47
4.3.00.0030.0208.11

preferences:
143.04 ms | 1394 KiB | 7 Q