3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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));
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected ',' in /in/4nKdV on line 10
Process exited with code 255.