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.0070.03612.33
5.4.250.0020.04012.33
5.4.240.0050.03612.33
5.4.230.0030.04012.32
5.4.220.0060.03512.32
5.4.210.0070.04112.32
5.4.200.0050.04412.32
5.4.190.0060.03712.32
5.4.180.0020.03912.32
5.4.170.0040.03612.33
5.4.160.0030.03812.32
5.4.150.0040.03712.32
5.4.140.0060.03512.00
5.4.130.0090.03111.99
5.4.120.0050.03411.95
5.4.110.0030.03811.95
5.4.100.0030.03911.95
5.4.90.0070.03411.95
5.4.80.0030.04211.95
5.4.70.0020.03711.94
5.4.60.0070.03211.94
5.4.50.0050.03511.94
5.4.40.0030.03611.93
5.4.30.0040.03511.93
5.4.20.0030.03811.93
5.4.10.0080.03211.93
5.4.00.0060.03611.42
5.3.280.0030.03912.71
5.3.270.0030.04012.72
5.3.260.0030.04012.72
5.3.250.0030.03912.72
5.3.240.0030.03912.72
5.3.230.0050.03812.70
5.3.220.0070.03512.68
5.3.210.0060.03712.68
5.3.200.0070.03912.68
5.3.190.0050.03812.68
5.3.180.0050.04212.67
5.3.170.0050.03612.67
5.3.160.0040.03712.68
5.3.150.0070.03612.67
5.3.140.0040.03912.66
5.3.130.0070.03612.66
5.3.120.0060.03712.66
5.3.110.0050.03812.66
5.3.100.0030.03912.12
5.3.90.0060.03512.09
5.3.80.0040.03612.07
5.3.70.0110.03612.07
5.3.60.0090.03212.06
5.3.50.0050.03612.00
5.3.40.0050.03712.00
5.3.30.0040.03611.94
5.3.20.0040.03811.70
5.3.10.0100.03611.66
5.3.00.0080.03811.64
5.2.170.0050.0309.15
5.2.160.0030.0309.14
5.2.150.0050.0309.14
5.2.140.0020.0339.14
5.2.130.0020.0319.10
5.2.120.0060.0289.11
5.2.110.0030.0309.11
5.2.100.0050.0379.11
5.2.90.0030.0319.11
5.2.80.0060.0289.11
5.2.70.0040.0309.10
5.2.60.0040.0309.05
5.2.50.0060.0279.03
5.2.40.0050.0289.00
5.2.30.0010.0328.97
5.2.20.0060.0338.98
5.2.10.0060.0378.90
5.2.00.0020.0428.76
5.1.60.0040.0348.05
5.1.50.0070.0288.05
5.1.40.0070.0308.04
5.1.30.0050.0248.38
5.1.20.0050.0298.41
5.1.10.0010.0298.13
5.1.00.0030.0268.13
5.0.50.0020.0226.61
5.0.40.0020.0206.46
5.0.30.0020.0326.28
5.0.20.0020.0206.25
5.0.10.0060.0256.23
5.0.00.0020.0416.22
4.4.90.0040.0174.78
4.4.80.0030.0214.75
4.4.70.0010.0184.75
4.4.60.0040.0134.76
4.4.50.0020.0164.77
4.4.40.0030.0244.71
4.4.30.0020.0174.76
4.4.20.0040.0154.84
4.4.10.0040.0164.85
4.4.00.0010.0264.76
4.3.110.0030.0204.67
4.3.100.0040.0154.66
4.3.90.0030.0184.64
4.3.80.0030.0284.58
4.3.70.0030.0174.63
4.3.60.0060.0174.63
4.3.50.0000.0204.63
4.3.40.0010.0254.54
4.3.30.0020.0163.30
4.3.20.0030.0153.28
4.3.10.0010.0163.23
4.3.00.0000.02013.14

preferences:
139.81 ms | 1394 KiB | 7 Q