3v4l.org

run code in 300+ PHP versions simultaneously
<?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";
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function utf8_encode() is deprecated in /in/4MObH on line 18 YjVjMTQ0MzM1ZWE5YWRjODAxNmZhNDIyYTg4OThjZGE2ZjE0NTJjNQ==

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
72.77 ms | 401 KiB | 8 Q