3v4l.org

run code in 300+ PHP versions simultaneously
<?php $random = random_bytes(256); $message = 'hello'; $mac1 = hash_hmac('sha256', $message, $random); $mac2 = hash_hmac('sha256', $message, hash('sha256', $random, true)); var_dump($mac1, $mac2); $mac3 = hash_hmac('sha256', $random, $message); $mac4 = hash_hmac('sha256', $random, hash('sha256', $message, true)); var_dump($mac3, $mac4);
Output for git.master
string(64) "4218e9ca1945c029209cfae7add9dd74204a22d957e74744a8bc765a7cabdeb4" string(64) "4218e9ca1945c029209cfae7add9dd74204a22d957e74744a8bc765a7cabdeb4" string(64) "11051ff6d6eb42cf18c4ceb1a112f758a04c4c4ae3406a310df62da40af245af" string(64) "6799ec22cba7bfdc68323a9080257c22551481a3f7cbf5d9759404263e9c218d"
Output for git.master_jit
string(64) "aa2a033c596190203c0422c6498d9ef974c2d446322d990e3e0d0d05b431be61" string(64) "aa2a033c596190203c0422c6498d9ef974c2d446322d990e3e0d0d05b431be61" string(64) "6820a1cb452836ac5acaae114cbc0f6cc5fd8b0efc147257b37f53a677d0e432" string(64) "d4b9add3aa04ae1895d077dd633e37676b47a4c58d03a9e14be023c986b15616"

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:
11.85 ms | 461 KiB | 5 Q