3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'POST\n/auth/token\nproject=xRxyG0P5&ai=95335e7caf2f6a92&tm=1513574899'; $key = 'e68c202f73c54468b9822c843b320d34'; $signature = String2Hex(hash_hmac("sha256", $str, $key, true)); function String2Hex($string){ $hex=''; for ($i=0; $i < strlen($string); $i++){ $hex .= dechex(ord($string[$i])); } return $hex; } echo $signature;exit; ?>
Output for git.master, git.master_jit, rfc.property-hooks
4960e47454b272849238e7f9d0aab6a22bb53ea6a7f312de3d55603aac316a

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