3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
Output for 5.1.2 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
rQcvSw4+lCWpkVuvkZ0SG6U4E4E=
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 rQcvSw4+lCWpkVuvkZ0SG6U4E4E=
Output for 5.0.0 - 5.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
231.58 ms | 401 KiB | 340 Q