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=".$accessID."&app_key=".$secretKey."&limit=3; $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.0200.06018.94
5.4.250.0100.06018.79
5.4.240.0170.07019.01
5.4.230.0230.06718.93
5.4.220.0200.04718.94
5.4.210.0100.07318.96
5.4.200.0200.06318.97
5.4.190.0070.06719.02
5.4.180.0130.06718.73
5.4.170.0130.06318.92
5.4.160.0100.06019.08
5.4.150.0170.05318.97
5.4.140.0100.06316.52
5.4.130.0130.04316.38
5.4.120.0070.07716.32
5.4.110.0000.06316.62
5.4.100.0030.05716.47
5.4.90.0100.05016.62
5.4.80.0070.05316.45
5.4.70.0130.04716.49
5.4.60.0130.06716.36
5.4.50.0070.05316.43
5.4.40.0030.06716.44
5.4.30.0170.04716.43
5.4.20.0130.04716.36
5.4.10.0100.05316.37
5.4.00.0130.06715.78
5.3.280.0070.07314.52
5.3.270.0130.05314.50
5.3.260.0130.05714.63
5.3.250.0130.07314.61
5.3.240.0100.05314.38
5.3.230.0170.04714.49
5.3.220.0130.06014.44
5.3.210.0170.07014.58
5.3.200.0030.06014.44
5.3.190.0070.06314.58
5.3.180.0130.04714.57
5.3.170.0170.05014.44
5.3.160.0130.06014.34
5.3.150.0100.05014.58
5.3.140.0170.06714.43
5.3.130.0070.07014.47
5.3.120.0230.07014.41
5.3.110.0100.07314.57
5.3.100.0130.07014.05
5.3.90.0100.07714.05
5.3.80.0200.06014.03
5.3.70.0070.06013.88
5.3.60.0030.05313.89
5.3.50.0100.06713.95
5.3.40.0070.05313.81
5.3.30.0000.05713.61
5.3.20.0000.07713.70
5.3.10.0070.07013.50
5.3.00.0070.05713.66
5.2.170.0130.04011.07
5.2.160.0000.04710.90
5.2.150.0170.04311.29
5.2.140.0030.06011.16
5.2.130.0130.04310.86
5.2.120.0100.04011.00
5.2.110.0100.04710.86
5.2.100.0070.05310.93
5.2.90.0130.03710.86
5.2.80.0070.05011.11
5.2.70.0130.03310.93
5.2.60.0100.05011.07
5.2.50.0030.04710.96
5.2.40.0100.04010.92
5.2.30.0030.04010.89
5.2.20.0070.05311.05
5.2.10.0070.03710.93
5.2.00.0000.04710.88
5.1.60.0030.0509.89
5.1.50.0070.04010.05
5.1.40.0000.0479.89
5.1.30.0000.04310.17
5.1.20.0030.04310.43
5.1.10.0030.04310.13
5.1.00.0130.0309.98
5.0.50.0030.0308.51
5.0.40.0100.0338.26
5.0.30.0070.0438.28
5.0.20.0030.0308.39
5.0.10.0000.0378.18
5.0.00.0030.0438.22
4.4.90.0030.0237.14
4.4.80.0130.0137.14
4.4.70.0030.0307.14
4.4.60.0030.0307.14
4.4.50.0100.0177.14
4.4.40.0100.0407.14
4.4.30.0000.0277.14
4.4.20.0030.0277.14
4.4.10.0000.0277.14
4.4.00.0100.0377.14
4.3.110.0070.0207.14
4.3.100.0030.0207.14
4.3.90.0000.0277.14
4.3.80.0070.0307.14
4.3.70.0000.0307.14
4.3.60.0030.0277.14
4.3.50.0070.0237.14
4.3.40.0030.0337.14
4.3.30.0030.0207.14
4.3.20.0100.0207.14
4.3.10.0000.0237.14
4.3.00.0100.0207.06

preferences:
140.04 ms | 1394 KiB | 7 Q