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.0130.05318.75
5.4.250.0030.05718.79
5.4.240.0100.06018.77
5.4.230.0000.06019.02
5.4.220.0070.07718.83
5.4.210.0130.05718.96
5.4.200.0170.06018.65
5.4.190.0100.05018.74
5.4.180.0130.05718.83
5.4.170.0100.07018.95
5.4.160.0170.06718.93
5.4.150.0130.06019.08
5.4.140.0170.06016.33
5.4.130.0200.05316.42
5.4.120.0100.07016.56
5.4.110.0070.03016.44
5.4.100.0130.05316.54
5.4.90.0070.07016.64
5.4.80.0030.05716.44
5.4.70.0100.04716.44
5.4.60.0130.04016.45
5.4.50.0130.04316.61
5.4.40.0100.06716.46
5.4.30.0130.05016.34
5.4.20.0070.04716.46
5.4.10.0170.05316.41
5.4.00.0030.06315.81
5.3.280.0130.05714.39
5.3.270.0170.04714.62
5.3.260.0100.07314.50
5.3.250.0100.05314.38
5.3.240.0170.06714.76
5.3.230.0470.04014.62
5.3.220.0130.06014.46
5.3.210.0130.07014.42
5.3.200.0130.07314.59
5.3.190.0100.05014.66
5.3.180.0100.05714.56
5.3.170.0070.05714.34
5.3.160.0100.06014.66
5.3.150.0030.06314.27
5.3.140.0130.06014.71
5.3.130.0130.06314.33
5.3.120.0070.05714.56
5.3.110.0170.07314.71
5.3.100.0070.07014.04
5.3.90.0000.08314.02
5.3.80.0030.05713.94
5.3.70.0070.07313.86
5.3.60.0100.05713.89
5.3.50.0030.06313.95
5.3.40.0070.05313.84
5.3.30.0100.05313.93
5.3.20.0100.04713.71
5.3.10.0030.05013.67
5.3.00.0130.04713.66
5.2.170.0070.04711.03
5.2.160.0070.04311.15
5.2.150.0030.04311.25
5.2.140.0000.05711.16
5.2.130.0030.04011.01
5.2.120.0000.05011.21
5.2.110.0070.04011.00
5.2.100.0130.05311.02
5.2.90.0100.03710.86
5.2.80.0100.05311.10
5.2.70.0100.05011.13
5.2.60.0100.05010.82
5.2.50.0030.04011.18
5.2.40.0100.03711.02
5.2.30.0030.04010.91
5.2.20.0030.04010.96
5.2.10.0100.03710.84
5.2.00.0070.03710.64
5.1.60.0030.03310.05
5.1.50.0100.04310.20
5.1.40.0000.04010.02
5.1.30.0100.04310.09
5.1.20.0070.03710.43
5.1.10.0070.03710.11
5.1.00.0070.0339.92
5.0.50.0030.0308.61
5.0.40.0170.0138.48
5.0.30.0130.0438.12
5.0.20.0030.0338.26
5.0.10.0070.0238.22
5.0.00.0070.0508.31
4.4.90.0000.0307.14
4.4.80.0070.0177.14
4.4.70.0070.0177.14
4.4.60.0030.0207.14
4.4.50.0070.0207.14
4.4.40.0070.0307.14
4.4.30.0030.0207.14
4.4.20.0100.0137.14
4.4.10.0100.0207.14
4.4.00.0000.0377.14
4.3.110.0100.0277.14
4.3.100.0030.0307.14
4.3.90.0000.0207.14
4.3.80.0000.0437.14
4.3.70.0000.0237.14
4.3.60.0030.0277.14
4.3.50.0000.0337.14
4.3.40.0030.0407.14
4.3.30.0000.0237.14
4.3.20.0130.0207.14
4.3.10.0030.0277.14
4.3.00.0070.0237.75

preferences:
136.79 ms | 1394 KiB | 7 Q