3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '5 11.48 3 USD 6 771446 16 IT Books. Qty: 2 17 Books Online Inc. 14 www.sample.com 15 123456789012345 8 99999999 19 pgw@mail.sample.com 1 1 --14 20030105153021 16 F2B2DD7E603A7ADA 33 https://www.sample.com/shop/reply'; $key = pack('H*', '00112233445566778899AABBCCDDEEFF'); $expected = 'FACC882CA67E109E409E3974DDEDA8AAB13A5E48'; $result = hash_hmac('sha1', $string, $key); $result = strtoupper($result); echo "Expected: $expected".PHP_EOL; echo "Actual result: $result".PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
Expected: FACC882CA67E109E409E3974DDEDA8AAB13A5E48 Actual result: 43FF361FC87FA4FC9C8AD671D990C2B0F1FB52E7

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.68 ms | 401 KiB | 8 Q