3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "POST&http%3A%2F%2Flocalhost%3A9000%2Fcourse%2F8%2FltiAuth&context_id%3D0-4bnFsIRr54%26context_label%3DFREN%2520311R%26context_title%3D3rd-Year%2520Conversation%26context_type%3DCourseSection%26launch_presentation_document_target%3Dwindow%26launch_presentation_locale%3Den-US%26launch_presentation_return_url%3Dhttps%253A%252F%252Flearningsuite.byu.edu%252FLTI%252FltiEnd.php%26lis_outcome_service_url%3Dhttps%253A%252F%252Flearningsuite.byu.edu%252FLTI%252FltiLis.php%253Fid%253Dv7NG4lQ24ViR%2526appId%253Dlti_view%26lis_person_contact_email_primary%3Dsantiago.verdu.01%2540gmail.com%26lis_person_name_family%3DVerdu%26lis_person_name_full%3DSantiago%2520Verdu%26lis_person_name_given%3DSantiago%26lis_result_sourcedid%3DjYnHsLplmraT%253A928298882%26lti_message_type%3Dbasic-lti-launch-request%26lti_version%3DLTI-1p0%26oauth_callback%3Dabout%253Ablank%26oauth_consumer_key%3D8%26oauth_nonce%3Dc6349fd71613591b358a24e9e6270872%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1440701915%26oauth_version%3D1.0%26resource_link_id%3Dv7NG4lQ24ViR%253AjYnHsLplmraT%26roles%3DInstructor%26user_id%3D928298882"; $signKey = "b6f564ecee32a2aba0e31ec5f2891956" . "&"; $SIGNATURE= base64_encode( hash_hmac( 'sha1', $str, $signKey, true ) ); echo $SIGNATURE;
based on kf5mh
Output for 5.1.2 - 7.2.0
rQcvSw4+lCWpkVuvkZ0SG6U4E4E=
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash_hmac() in /in/cOO1v 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/cOO1v 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/cOO1v 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/cOO1v on line 7