3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cdrn_domain = "api.cdrn.com"; $secret_key = "57PE7UYt4h"; $api_version = "1.1"; $method_type = "PUT"; $case_id = "43958890"; $string_date = "2017-06-13T13:25:00Z"; $string_to_sign = $method_type . "\n" . $cdrn_domain . "\n" . "/partners/cases/$case_id" . "\n" . "<case xmlns=\"http://api.partner.cdrn.com/domain\"><status>PROCESSING</status></case>" . "\n" . $api_version . "\n" . $string_date . "\n"; $signature = utf8_encode(base64_encode(hash_hmac('sha1', $string_to_sign, $secret_key, false))); echo "$signature";
based on ZNjgX
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
YjVjMTQ0MzM1ZWE5YWRjODAxNmZhNDIyYTg4OThjZGE2ZjE0NTJjNQ==