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.0050.03712.37
5.4.260.0060.03812.37
5.4.250.0050.04012.37
5.4.240.0050.03912.37
5.4.230.0080.03612.36
5.4.220.0090.03412.36
5.4.210.0070.03512.36
5.4.200.0080.04912.36
5.4.190.0100.04712.35
5.4.180.0160.05612.36
5.4.170.0120.04812.36
5.4.160.0080.04712.35
5.4.150.0090.05112.35
5.4.140.0140.04712.04
5.4.130.0070.04812.02
5.4.120.0110.05411.99
5.4.110.0090.05211.98
5.4.100.0120.04711.98
5.4.90.0090.05011.98
5.4.80.0180.07511.98
5.4.70.0070.04811.98
5.4.60.0060.04511.98
5.4.50.0160.05311.98
5.4.40.0110.05611.97
5.4.30.0090.07411.96
5.4.20.0160.04811.96
5.4.10.0100.04011.96
5.4.00.0120.06211.46
5.3.280.0150.04412.71
5.3.270.0090.04812.72
5.3.260.0080.05312.72
5.3.250.0120.05012.72
5.3.240.0140.05812.72
5.3.230.0120.05612.70
5.3.220.0080.04012.68
5.3.210.0090.04912.68
5.3.200.0110.05512.68
5.3.190.0100.04212.68
5.3.180.0110.04612.67
5.3.170.0110.03912.67
5.3.160.0090.04012.67
5.3.150.0080.04012.67
5.3.140.0060.03712.66
5.3.130.0050.04012.65
5.3.120.0050.04012.66
5.3.110.0070.04012.66
5.3.100.0060.04112.12
5.3.90.0090.03712.09
5.3.80.0070.04412.07
5.3.70.0100.03912.07
5.3.60.0080.03512.07
5.3.50.0050.03812.00
5.3.40.0050.03812.00
5.3.30.0050.03711.94
5.3.20.0060.03711.70
5.3.10.0060.03711.66
5.3.00.0050.03911.65

preferences:
139.4 ms | 1394 KiB | 7 Q