3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pk = hash_hmac( 'sha256', 'PUThttp://localhost:8080/moblee/ralf-api/api/v1_1/event/20140411app_mo165/info/[{"id":"9","language":"pt","sort":"4","active":1},{"id":"9","language":"en","sort":"4","active":1},{"id":"9","language":"es","sort":"4","active":1}]', hash( 'sha256', 'moblee' . hash( 'sha256', '20140411app_mo165mob@r4lf#lee' ) ) ); echo base64_encode( 'moblee:' . $pk );
based on TnTSg
Output for 5.1.2 - 7.2.0
bW9ibGVlOjE1ZDExOWViMzU1ZjM0YmI2MTg5NTM4M2M1MzNlZWNiNzE2MDZmZGVjYTUwMzNiYTY2YTY1OTAyNGEyODNjNTU=
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash_hmac() in /in/WHlmp on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash_hmac() in /in/WHlmp on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash_hmac() in /in/WHlmp on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash_hmac() in /in/WHlmp on line 3