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;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.0040.03912.35
5.4.250.0060.03912.35
5.4.240.0070.03612.35
5.4.230.0040.03812.34
5.4.220.0060.03612.34
5.4.210.0090.03212.34
5.4.200.0090.04212.34
5.4.190.0070.03512.34
5.4.180.0050.03612.34
5.4.170.0070.03912.35
5.4.160.0030.03812.34
5.4.150.0040.03912.34
5.4.140.0070.03512.03
5.4.130.0050.03512.01
5.4.120.0050.03411.97
5.4.110.0020.03811.97
5.4.100.0050.03411.97
5.4.90.0050.03711.97
5.4.80.0050.03611.97
5.4.70.0050.03711.96
5.4.60.0030.03611.96
5.4.50.0060.03411.96
5.4.40.0040.03411.95
5.4.30.0070.03311.95
5.4.20.0050.03411.94
5.4.10.0070.03211.95
5.4.00.0060.03511.44
5.3.280.0070.03612.71
5.3.270.0060.04112.73
5.3.260.0050.03812.72
5.3.250.0060.03612.72
5.3.240.0070.03512.72
5.3.230.0060.04112.71
5.3.220.0060.04312.68
5.3.210.0050.03912.68
5.3.200.0040.03812.68
5.3.190.0040.03812.68
5.3.180.0050.03612.67
5.3.170.0060.03512.67
5.3.160.0050.03812.67
5.3.150.0080.03512.67
5.3.140.0040.03712.66
5.3.130.0070.03812.66
5.3.120.0040.04212.66
5.3.110.0090.03612.66
5.3.100.0060.03612.12
5.3.90.0040.03812.08
5.3.80.0080.03612.07
5.3.70.0050.03712.08
5.3.60.0040.03712.06
5.3.50.0040.03712.00
5.3.40.0060.03712.00
5.3.30.0070.03411.95
5.3.20.0050.03711.71
5.3.10.0070.03311.68
5.3.00.0040.03811.67
5.2.170.0060.0299.17
5.2.160.0040.0299.17
5.2.150.0020.0329.17
5.2.140.0050.0349.16
5.2.130.0040.0309.12
5.2.120.0040.0289.13
5.2.110.0050.0299.13
5.2.100.0090.0329.13
5.2.90.0040.0299.13
5.2.80.0040.0319.12
5.2.70.0050.0349.12
5.2.60.0040.0349.08
5.2.50.0040.0349.05
5.2.40.0050.0299.02
5.2.30.0050.0358.99
5.2.20.0070.0329.00
5.2.10.0060.0278.92
5.2.00.0050.0348.78
5.1.60.0040.0258.07
5.1.50.0040.0258.07
5.1.40.0040.0258.05
5.1.30.0050.0278.40
5.1.20.0040.0278.42
5.1.10.0050.0258.14
5.1.00.0040.0258.15
5.0.50.0040.0196.63
5.0.40.0020.0216.48
5.0.30.0020.0336.29
5.0.20.0040.0186.27
5.0.10.0040.0196.25
5.0.00.0030.0326.24
4.4.90.0040.0144.78
4.4.80.0010.0164.75
4.4.70.0030.0144.75
4.4.60.0030.0184.76
4.4.50.0030.0184.77
4.4.40.0020.0274.71
4.4.30.0040.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0154.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0020.0164.67
4.3.90.0040.0174.63
4.3.80.0040.0224.58
4.3.70.0030.0174.63
4.3.60.0050.0154.63
4.3.50.0030.0154.63
4.3.40.0020.0254.54
4.3.30.0020.0153.30
4.3.20.0020.0163.28
4.3.10.0020.0163.23
4.3.00.0100.0237.75

preferences:
140.47 ms | 1394 KiB | 7 Q