3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = "robstark@winterfell.com"; $secretKey = sha1("L1v3rp00@"); $verb = "GET"; $body = json_encode("{\"Request\":{\"satn\":\"213456\"},\"emailAddress\":\"robstark@winterfell.com\"}"); $contentmd5 = base64_encode(md5($body, true)); $contentType = "application/json"; $dateNow = gmdate("c"); $authCode = base64_encode(hash_hmac("sha1", $verb . "\n" . $contentmd5 . "\n" . $contentType . "\n" . $dateNow, $secretKey)); $header = "Content-Type: application/json" . "\n" . "Content-Length: " . strlen($body) . "\n" . "Content-MD5: " . $contentmd5 . "\n" . "Authorization: RDN " . $username . ":" . $authCode));

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.270.0120.03012.36
5.4.260.0090.03912.37
5.4.250.0070.03812.37
5.4.240.0070.03412.37
5.4.230.0060.03712.36
5.4.220.0040.03812.36
5.4.210.0040.03712.36
5.4.200.0080.03512.36
5.4.190.0090.03312.35
5.4.180.0030.03812.36
5.4.170.0060.03512.36
5.4.160.0050.03712.36
5.4.150.0070.03612.35
5.4.140.0080.03712.04
5.4.130.0070.03412.02
5.4.120.0050.03611.99
5.4.110.0050.03711.98
5.4.100.0090.03711.99
5.4.90.0080.03611.98
5.4.80.0080.03511.98
5.4.70.0020.03811.98
5.4.60.0070.03311.98
5.4.50.0050.03711.98
5.4.40.0050.03611.97
5.4.30.0040.03811.96
5.4.20.0050.03611.96
5.4.10.0050.03511.96
5.4.00.0020.03911.46
5.3.280.0040.03812.71
5.3.270.0060.03812.72
5.3.260.0060.03812.71
5.3.250.0060.04812.71
5.3.240.0080.03512.72
5.3.230.0060.04312.71
5.3.220.0090.03512.68
5.3.210.0060.03912.68
5.3.200.0080.03412.68
5.3.190.0050.04112.68
5.3.180.0070.03512.67
5.3.170.0050.03712.67
5.3.160.0080.03412.67
5.3.150.0030.04012.67
5.3.140.0100.03212.66
5.3.130.0050.04312.65
5.3.120.0020.04412.66
5.3.110.0070.03712.66
5.3.100.0030.03912.12
5.3.90.0040.03812.08
5.3.80.0050.03712.08
5.3.70.0060.03612.07
5.3.60.0060.03612.07
5.3.50.0040.03712.00
5.3.40.0080.03412.00
5.3.30.0050.03511.94
5.3.20.0040.03711.70
5.3.10.0060.03411.66
5.3.00.0040.03811.65

preferences:
135.16 ms | 1398 KiB | 7 Q