3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = 'POST 8d03746277e04e07fca4d2ecb533cb6f Tue, 17 Jun 2014 12:17:31 GMT'; $key = 'WFepNDcs8xwypK1sSc8J0xtWNIt/g917dZ21xtQdUCtCR5HazBLgiUnON0N91hVq9ImcC08XUlmyQ57PyNFHlM90e33PW7lB33anZpBT2RB5EVa2mb0TTcnLRGHzzFSA'; $hmac = hash_hmac('sha512', $input, $key, true); // true voor binary output echo base64_encode($hmac);
Output for 5.1.2 - 7.2.0
EsiQaZpXxg+aJiBTzrFJcYE0s5xYb/hcPV3O2Ia6s5zHJVwr5ksAQlkDLZuBHNBDqYgX8Hs+2HYeKWLo1htJ3w==
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash_hmac() in /in/G887l on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash_hmac() in /in/G887l on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash_hmac() in /in/G887l on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash_hmac() in /in/G887l on line 8