3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post_parameters = array('type' => 'buy', 'amount' => 5.3); $concatted_post_parameters = ''; $http_method = 'METHOD'; $uri = 'API'; $api_key = '789'; $nonce = 555; $secret = '123'; ksort($post_parameters); // Sort parameters by key ascending if (0 < count($post_parameters)) { // Generate URL-encoded query string $concatted_post_parameters = http_build_query($post_parameters, '', '&'); } $hmac_data = implode('#', array($http_method, $uri, $api_key, $nonce, md5($concatted_post_parameters))); $hmac = hash_hmac('sha256', $hmac_data, $secret); print($hmac_data);
Output for git.master, git.master_jit, rfc.property-hooks
METHOD#API#789#555#1f704473922a0932b74d4af09c0f2799

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:
50.93 ms | 401 KiB | 8 Q