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":"8","sort":"1","language":"pt","active":0},{"id":"8","sort":"1","language":"en","active":0},{"id":"8","sort":"1","language":"es","active":0},{"id":"9","sort":"2","language":"pt","active":0},{"id":"9","sort":"2","language":"en","active":0},{"id":"9","sort":"2","language":"es","active":0},{"id":"11","sort":"3","language":"pt","active":0},{"id":"11","sort":"3","language":"en","active":0},{"id":"11","sort":"3","language":"es","active":0},{"id":"7","sort":"4","language":"pt","active":0},{"id":"7","sort":"4","language":"en","active":0},{"id":"7","sort":"4","language":"es","active":0},{"id":"10","sort":"5","language":"pt","active":0},{"id":"10","sort":"5","language":"en","active":0},{"id":"10","sort":"5","language":"es","active":0},{"id":"12","sort":"6","language":"pt","active":0},{"id":"12","sort":"6","language":"en","active":0},{"id":"12","sort":"6","language":"es","active":0},{"id":"13","sort":"7","language":"pt","active":0},{"id":"13","sort":"7","language":"en","active":0},{"id":"13","sort":"7","language":"es","active":0},{"id":"14","sort":"8","language":"pt","active":0},{"id":"14","sort":"8","language":"en","active":0},{"id":"14","sort":"8","language":"es","active":0},{"id":"15","sort":"9","language":"pt","active":0},{"id":"15","sort":"9","language":"en","active":0},{"id":"15","sort":"9","language":"es","active":0},{"id":"16","sort":"10","language":"pt","active":1},{"id":"16","sort":"10","language":"en","active":1},{"id":"16","sort":"10","language":"es","active":1}]', hash( 'sha256', 'moblee' . hash( 'sha256', '20140411app_mo165mob@r4lf#lee' ) ) ); echo base64_encode( 'moblee:' . $pk );
based on Kgccm
Output for 5.1.2 - 7.2.0
bW9ibGVlOmY1NDAwM2U4ZWJhN2EwYzQ0MzA2N2EzYzlmNzkwYjI5Y2UyZDgzYWQ5NDlhYzFlYjVhNTNmYWJkNGMxN2U2YWI=
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash_hmac() in /in/TnTSg 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/TnTSg 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/TnTSg 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/TnTSg on line 3