3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "POST\n/\n132fbf95-d58e-f9ed-86e8-48b76f901d91\nda390885-e72f-4a93-be7f-a90220bac5c7\n/provision/provision\n132fc751-9325-63d3-a605-f74e0c25192a\n2013-10-23T15:39:34.462Z\n{\"instance-id\":\"132fc751-9325-63d3-a605-f74e0c25192a\"}"; $secret = "97cfac6e-b061-4007-a03e-eb4bc199e620"; $sig = hash_hmac('sha256', $string, $secret); echo $sig;
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
65e1ceb6435d24b9188ad1732247ccb166c4fbfce353826afd2766eee1d10315
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash_hmac() in /in/4X780 on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash_hmac() in /in/4X780 on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash_hmac() in /in/4X780 on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash_hmac() in /in/4X780 on line 7