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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cOO1v
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $signKey, !2 = $SIGNATURE
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'POST%26http%253A%252F%252Flocalhost%253A9000%252Fcourse%252F8%252FltiAuth%26context_id%253D0-4bnFsIRr54%2526context_label%253DFREN%252520311R%2526context_title%253D3rd-Year%252520Conversation%2526context_type%253DCourseSection%2526launch_presentation_document_target%253Dwindow%2526launch_presentation_locale%253Den-US%2526launch_presentation_return_url%253Dhttps%25253A%25252F%25252Flearningsuite.byu.edu%25252FLTI%25252FltiEnd.php%2526lis_outcome_service_url%253Dhttps%25253A%25252F%25252Flearningsuite.byu.edu%25252FLTI%25252FltiLis.php%25253Fid%25253Dv7NG4lQ24ViR%252526appId%25253Dlti_view%2526lis_person_contact_email_primary%253Dsantiago.verdu.01%252540gmail.com%2526lis_person_name_family%253DVerdu%2526lis_person_name_full%253DSantiago%252520Verdu%2526lis_person_name_given%253DSantiago%2526lis_result_sourcedid%253DjYnHsLplmraT%25253A928298882%2526lti_message_type%253Dbasic-lti-launch-request%2526lti_version%253DLTI-1p0%2526oauth_callback%253Dabout%25253Ablank%2526oauth_consumer_key%253D8%2526oauth_nonce%253Dc6349fd71613591b358a24e9e6270872%2526oauth_signature_method%253DHMAC-SHA1%2526oauth_timestamp%253D1440701915%2526oauth_version%253D1.0%2526resource_link_id%253Dv7NG4lQ24ViR%25253AjYnHsLplmraT%2526roles%253DInstructor%2526user_id%253D928298882'
    5     1        ASSIGN                                                   !1, 'b6f564ecee32a2aba0e31ec5f2891956%26'
    7     2        INIT_FCALL                                               'base64_encode'
          3        INIT_FCALL                                               'hash_hmac'
          4        SEND_VAL                                                 'sha1'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
    9    12        ECHO                                                     !2
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.77 ms | 1395 KiB | 17 Q