3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = hash_hmac('sha512', 'BulletBillPop_Mac', '09021520C5B142B9B124B79AFBD05F7F', true); $h = hash('sha512', 'BulletBillPop_Mac', true).digest(); echo $h; echo '-----'; echo base64_encode('BulletBillPop_Mac:' . $s); echo '-----'; echo rawurlencode( base64_encode('BulletBillPop_Mac:' . $s));
based on FGbmP
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function digest() in /in/9TVQI:4 Stack trace: #0 {main} thrown in /in/9TVQI on line 4
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function digest() in /in/9TVQI on line 4
Process exited with code 255.