3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = gmdate('D, d M Y H:i:s \G\M\T'); $account_name = "xyz"; $containername = "abc"; $account_key = "asdf"; $canonicalizedHeaders = "x-ms-date:$date\nx-ms-version:2014-02-14"; $canonicalizedResource = "/$account_name/$containername\ncomp:list\nrestype:container"; $arraysign = array(); $arraysign[] = 'GET'; /*HTTP Verb*/ $arraysign[] = ''; /*Content-Encoding*/ $arraysign[] = ''; /*Content-Language*/ $arraysign[] = ''; /*Content-Length (include value when zero)*/ $arraysign[] = ''; /*Content-MD5*/ $arraysign[] = ''; /*Content-Type*/ $arraysign[] = ''; /*Date*/ $arraysign[] = ''; /*If-Modified-Since */ $arraysign[] = ''; /*If-Match*/ $arraysign[] = ''; /*If-None-Match*/ $arraysign[] = ''; /*If-Unmodified-Since*/ $arraysign[] = ''; /*Range*/ $arraysign[] = $canonicalizedHeaders; /*CanonicalizedHeaders*/ $arraysign[] = $canonicalizedResource; /*CanonicalizedResource*/ $stringtosign = implode("\n", $arraysign); $signature = 'SharedKey'.' '.$account_name.':'.base64_encode(hash_hmac('sha256', $stringtosign, base64_decode($account_key), true)); $endpoint = 'https://'.$account_name.'.blob.core.windows.net'; $url = $endpoint.'/'.$containername.'?restype=container&comp=list'; $headers = [ "x-ms-date:{$date}", 'x-ms-version:2014-02-14', 'Accept:application/json;odata=nometadata', "Authorization:{$signature}" ]; foreach($key in $headers){ echo $key; }

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)
7.1.70.0030.01416.91
7.1.60.0240.01334.96
7.1.50.0240.00634.86
7.1.40.0210.00934.30
7.1.30.0260.00634.36
7.1.20.0180.01734.50
7.1.10.0080.01316.11
7.1.00.0140.00716.30
7.0.200.0080.00816.64
7.0.190.0040.01116.67
7.0.180.0030.01116.12
7.0.170.0000.01515.98
7.0.160.0050.01316.29
7.0.150.0060.01415.98
7.0.140.0000.02116.08
7.0.130.0100.01116.07
7.0.120.0140.00716.35
7.0.110.0070.01416.02
7.0.100.0030.01716.02
7.0.90.0120.00616.19
7.0.80.0150.00616.09
7.0.70.0460.01214.50
7.0.60.0080.01115.70
7.0.50.0100.01016.41
7.0.40.0060.01316.20
7.0.30.0060.01416.48
7.0.20.0080.01316.29
7.0.10.0060.01216.14
7.0.00.0100.01116.30

preferences:
132.85 ms | 1394 KiB | 7 Q