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}" ]; echo $headers;

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)
8.3.60.0180.00418.41
8.3.50.0070.00716.34
8.3.40.0070.00718.95
8.3.30.0110.00419.02
8.3.20.0040.00420.16
8.3.10.0090.00023.52
8.3.00.0000.00722.09
8.2.180.0070.00718.13
8.2.170.0170.00022.96
8.2.160.0080.01219.20
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00321.11
8.2.120.0040.00426.35
8.2.110.0090.00022.20
8.2.100.0030.01017.72
8.2.90.0030.00619.17
8.2.80.0050.00318.05
8.2.70.0080.00017.63
8.2.60.0050.00318.03
8.2.50.0040.00418.10
8.2.40.0070.00320.59
8.2.30.0000.00821.07
8.2.20.0070.00318.04
8.2.10.0080.00018.06
8.2.00.0040.00418.23
8.1.280.0150.00425.92
8.1.270.0040.00422.12
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00320.93
8.1.230.0070.00419.10
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0080.00517.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00820.29
8.1.160.0000.00819.02
8.1.150.0050.00218.90
8.1.140.0050.00219.56
8.1.130.0030.00318.86
8.1.120.0030.00417.46
8.1.110.0030.00517.54
8.1.100.0000.00817.55
8.1.90.0020.00517.57
8.1.80.0000.00717.50
8.1.70.0000.00717.59
8.1.60.0040.00417.52
8.1.50.0040.00417.54
8.1.40.0060.00317.59
8.1.30.0040.00417.57
8.1.20.0000.00717.74
8.1.10.0060.00317.54
8.1.00.0050.00317.47
8.0.300.0030.00520.16
8.0.290.0040.00417.00
8.0.280.0030.00318.53
8.0.270.0070.00017.30
8.0.260.0030.00316.87
8.0.250.0000.00717.05
8.0.240.0030.00617.09
8.0.230.0050.00317.06
8.0.220.0030.00316.95
8.0.210.0030.00317.13
8.0.200.0040.00417.10
8.0.190.0030.00617.08
8.0.180.0030.00617.09
8.0.170.0000.00817.11
8.0.160.0060.00317.05
8.0.150.0040.00417.00
8.0.140.0000.00717.04
8.0.130.0040.00413.46
8.0.120.0000.00817.06
8.0.110.0000.00717.06
8.0.100.0000.00817.09
8.0.90.0040.00417.11
8.0.80.0100.01017.11
8.0.70.0040.00417.05
8.0.60.0040.00416.97
8.0.50.0040.00417.07
8.0.30.0090.00917.15
8.0.20.0110.00917.42
8.0.10.0040.00417.29
8.0.00.0030.01316.62
7.4.330.0000.00615.55
7.4.320.0040.00416.57
7.4.300.0000.00616.55
7.4.290.0000.00816.50
7.4.280.0050.00316.61
7.4.270.0070.00016.68
7.4.260.0050.00316.64
7.4.250.0050.00216.47
7.4.240.0040.00416.66
7.4.230.0040.00416.44
7.4.220.0100.01316.52
7.4.210.0030.01216.68
7.4.200.0070.00016.64
7.4.160.0060.01116.70
7.4.150.0060.01217.40
7.4.140.0120.01017.86
7.4.130.0130.00916.52
7.4.120.0110.00916.76
7.4.110.0130.00316.52
7.4.100.0140.00316.73
7.4.90.0160.00816.52
7.4.80.0100.00719.39
7.4.70.0150.00016.74
7.4.60.0110.00416.53
7.4.50.0110.00716.74
7.4.40.0040.01216.61
7.4.30.0100.01316.62
7.4.10.0000.02014.91
7.4.00.0050.01115.09
7.3.330.0030.00313.09
7.3.320.0030.00313.34
7.3.310.0040.00416.48
7.3.300.0070.00016.37
7.3.290.0020.01216.45
7.3.280.0060.00916.43
7.3.270.0090.00917.40
7.3.260.0090.00916.53
7.3.250.0120.00716.44
7.3.240.0090.00916.54
7.3.230.0090.00916.41
7.3.210.0160.00016.39
7.3.200.0120.00616.66
7.3.190.0090.00616.48
7.3.180.0100.01116.60
7.3.170.0160.00016.46
7.3.160.0140.00316.49
7.3.130.0090.00914.83
7.3.120.0130.00714.77
7.3.110.0040.01414.79
7.3.100.0120.00314.72
7.3.90.0090.00314.62
7.3.80.0030.00615.12
7.3.70.0070.01014.77
7.3.60.0100.00914.66
7.3.50.0100.00714.68
7.3.40.0100.00714.49
7.3.30.0100.00714.93
7.3.20.0040.01216.48
7.3.10.0040.00416.53
7.3.00.0000.01216.75
7.2.330.0280.01116.52
7.2.320.0060.01216.93
7.2.310.0070.01017.02
7.2.300.0100.00716.48
7.2.290.0180.00416.64
7.2.260.0070.01014.68
7.2.250.0060.01315.25
7.2.240.0060.01015.07
7.2.230.0070.00715.02
7.2.220.0090.00614.75
7.2.210.0070.00715.20
7.2.200.0100.00615.02
7.2.190.0070.01115.10
7.2.180.0090.00615.04
7.2.170.0090.00615.15
7.2.160.0070.01015.12
7.2.150.0120.00016.97
7.2.140.0000.01417.04
7.2.130.0130.00316.94
7.2.120.0000.01517.15
7.2.110.0100.00716.88
7.2.100.0030.01017.07
7.2.90.0070.00717.20
7.2.80.0070.00716.93
7.2.70.0100.00716.75
7.2.60.0080.00717.06
7.2.50.0080.00316.80
7.2.40.0040.01116.95
7.2.30.0030.01416.89
7.2.20.0110.00716.88
7.2.10.0070.01017.00
7.2.00.0080.00618.26
7.1.330.0110.00415.69
7.1.320.0040.01115.87
7.1.310.0100.00715.67
7.1.300.0080.01215.76
7.1.290.0080.00815.92
7.1.280.0080.00815.74
7.1.270.0100.00715.73
7.1.260.0040.00815.86
7.1.250.0060.00916.01
7.1.240.0100.00315.93
7.1.230.0160.00015.56
7.1.220.0060.00316.04
7.1.210.0040.00815.64
7.1.200.0050.00815.82
7.1.190.0040.01116.04
7.1.180.0000.01315.68
7.1.170.0040.00415.95
7.1.160.0040.00415.99
7.1.150.0030.00615.63
7.1.140.0030.01015.63
7.1.130.0040.00715.69
7.1.120.0060.00915.95
7.1.110.0070.00715.86
7.1.100.0050.00817.03
7.1.90.0070.00315.69
7.1.80.0070.00415.73
7.1.70.0090.00716.67
7.1.60.0190.00925.37
7.1.50.0170.00925.49
7.1.40.0190.01125.11
7.1.30.0200.01125.17
7.1.20.0170.01325.33
7.1.10.0080.01116.22
7.1.00.0040.01216.12
7.0.330.0040.00815.29
7.0.320.0030.00915.24
7.0.310.0000.01315.49
7.0.300.0070.00315.58
7.0.290.0040.00715.61
7.0.280.0060.00915.29
7.0.270.0060.00915.63
7.0.260.0040.00715.45
7.0.250.0030.00615.32
7.0.240.0160.00015.53
7.0.230.0100.00715.32
7.0.220.0000.01215.60
7.0.210.0090.00615.60
7.0.200.0060.01116.00
7.0.190.0190.01216.06
7.0.180.0100.00816.03
7.0.170.0070.01216.00
7.0.160.0300.01215.88
7.0.150.0060.01015.86
7.0.140.0190.00815.99
7.0.130.0100.00615.95
7.0.120.0040.01015.98
7.0.110.0210.01015.92
7.0.100.0210.01415.80
7.0.90.0100.00715.94
7.0.80.0080.00716.07
7.0.70.0070.00715.87
7.0.60.0090.00615.77
7.0.50.0050.01116.02
7.0.40.0070.00814.86
7.0.30.0030.01514.97
7.0.20.0110.00514.92
7.0.10.0080.00515.07
7.0.00.0050.00914.93
5.6.400.0040.00814.52
5.6.390.0000.00814.47
5.6.380.0030.00714.52
5.6.370.0030.00614.41
5.6.360.0030.00614.51
5.6.350.0030.00614.70
5.6.340.0100.00314.54
5.6.330.0000.01114.29
5.6.320.0060.00914.65
5.6.310.0130.00314.46
5.6.300.0060.00914.57
5.6.290.0090.00314.38
5.6.280.0150.00314.71
5.6.270.0070.00714.65
5.6.260.0040.00814.15
5.6.250.0030.01014.37
5.6.240.0030.01014.41
5.6.230.0070.00714.49
5.6.220.0040.01114.62
5.6.210.0030.01314.52
5.6.200.0030.00914.36
5.6.190.0000.01414.45
5.6.180.0030.01014.43
5.6.170.0030.01014.20
5.6.160.0120.00314.65
5.6.150.0030.01014.42
5.6.140.0060.00614.29
5.6.130.0030.01114.71
5.6.120.0060.00314.68
5.6.110.0070.00714.35
5.6.100.0000.00914.53
5.6.90.0000.01414.33
5.6.80.0030.00614.52
5.6.70.0060.00613.98
5.6.60.0060.00614.49
5.6.50.0040.01114.54
5.6.40.0040.00914.32
5.6.30.0080.00814.77
5.6.20.0130.00314.46
5.6.10.0090.00014.14
5.6.00.0030.01014.13

preferences:
58.65 ms | 400 KiB | 5 Q