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; echo $urlToFetch;die(); $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.0070.03812.36
5.4.250.0070.03612.36
5.4.240.0050.03912.36
5.4.230.0050.03812.36
5.4.220.0070.03612.35
5.4.210.0050.03712.35
5.4.200.0020.04212.36
5.4.190.0070.03912.35
5.4.180.0040.03812.35
5.4.170.0070.03612.36
5.4.160.0060.03512.35
5.4.150.0030.04312.35
5.4.140.0070.03812.04
5.4.130.0050.03612.02
5.4.120.0040.03911.98
5.4.110.0050.03511.98
5.4.100.0090.03611.98
5.4.90.0050.03811.98
5.4.80.0040.03911.98
5.4.70.0070.03511.97
5.4.60.0070.03211.97
5.4.50.0070.03611.97
5.4.40.0070.03511.96
5.4.30.0060.03611.96
5.4.20.0050.03511.96
5.4.10.0090.03511.96
5.4.00.0090.03911.46
5.3.280.0090.03812.71
5.3.270.0050.04012.72
5.3.260.0080.03912.72
5.3.250.0040.04012.72
5.3.240.0050.04012.72
5.3.230.0050.04312.71
5.3.220.0080.03812.68
5.3.210.0080.04112.68
5.3.200.0040.04312.68
5.3.190.0060.04312.68
5.3.180.0050.04612.67
5.3.170.0060.03812.67
5.3.160.0050.03712.67
5.3.150.0080.03612.67
5.3.140.0040.03912.66
5.3.130.0080.04112.66
5.3.120.0070.04112.66
5.3.110.0050.03912.66
5.3.100.0070.03712.12
5.3.90.0070.04312.08
5.3.80.0090.04312.08
5.3.70.0060.04312.08
5.3.60.0070.04012.06
5.3.50.0050.04512.00
5.3.40.0050.04212.00
5.3.30.0070.04311.94
5.3.20.0040.03611.70
5.3.10.0060.04211.66
5.3.00.0040.03611.64

preferences:
132.74 ms | 1398 KiB | 7 Q