3v4l.org

run code in 300+ PHP versions simultaneously
<?php function signRequest($domain, $method, $public_key, $private_key, $data=array()){ $data = array_filter($data); // Normalise data if(array_key_exists('request_timestamp', $data)) { $data['request_timestamp'] = (int) $data['request_timestamp']; } ksort($data); $data = json_encode($data); $buffer = array($domain, $method, $data, $public_key); $buffer_str = implode(":", $buffer); return hash_hmac('sha256', $buffer_str, $private_key); } echo signRequest("neom.dev", "products", "c7912e9a71d7208f", "767f791f93a272d3f4554116", []);
Output for git.master, git.master_jit, rfc.property-hooks
3a25898db45ce47cfd172f30d9b7b116ba24a5818b82c5682465b6d0d2c096eb

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