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(hmac-sha1($secretKey, $verb . ‘\n’ . $contentmd5 . ‘\n’ . $contentType . ‘\n’ . $dateNow)); $ch = curl_init("http://conapi.reddotnetwork.com/1.0/consumer"); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $verb); curl_setopt($ch, CURLOPT_POSTFIELDS, $body); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json","Content-Length: " . strlen($body),"Content-MD5: " .$contentmd5,‘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.03612.38
5.4.260.0050.04212.38
5.4.250.0110.03212.38
5.4.240.0090.03212.38
5.4.230.0040.04512.37
5.4.220.0070.04112.37
5.4.210.0040.03712.38
5.4.200.0060.03812.37
5.4.190.0100.03212.37
5.4.180.0060.03512.36
5.4.170.0030.03912.37
5.4.160.0060.03612.37
5.4.150.0080.03312.36
5.4.140.0030.04012.05
5.4.130.0060.03612.03
5.4.120.0080.03712.00
5.4.110.0060.03812.00
5.4.100.0040.03912.00
5.4.90.0040.04111.99
5.4.80.0050.03812.00
5.4.70.0050.03512.00
5.4.60.0040.03611.99
5.4.50.0050.03611.99
5.4.40.0060.03411.98
5.4.30.0090.03111.97
5.4.20.0090.03211.97
5.4.10.0020.03811.98
5.4.00.0080.03311.46
5.3.280.0060.03712.71
5.3.270.0080.03812.73
5.3.260.0050.04012.72
5.3.250.0060.03812.72
5.3.240.0040.03912.72
5.3.230.0060.03812.70
5.3.220.0080.03612.68
5.3.210.0060.03912.68
5.3.200.0080.04312.68
5.3.190.0070.03712.68
5.3.180.0050.03712.68
5.3.170.0060.03612.67
5.3.160.0110.03212.67
5.3.150.0080.03612.67
5.3.140.0060.03712.66
5.3.130.0090.03512.66
5.3.120.0050.03912.66
5.3.110.0080.03812.66
5.3.100.0030.04012.12
5.3.90.0040.03812.08
5.3.80.0030.03912.08
5.3.70.0060.04312.07
5.3.60.0070.04012.06
5.3.50.0060.03512.00
5.3.40.0080.03412.00
5.3.30.0040.03611.94
5.3.20.0050.03511.71
5.3.10.0050.03511.67
5.3.00.0030.03811.66

preferences:
141.74 ms | 1386 KiB | 7 Q