3v4l.org

run code in 300+ PHP versions simultaneously
<? $access_key = "OJPGR41P5NV22ZSF86IX"; //put your own access_key - found in admin panel $secret_key = "7dc45f07f7c4cd88536c198b34ef43af61061d95"; //put your own secret_key - found in admin panel $txn_id = "27042015121151082151-Ez6SvBr3ff"; $value = 450; //Charge amount is in INR by default $data_string = "merchantAccessKey=" . $access_key . "&transactionId=" . $txn_id . "&amount=" . $value; $signature = hash_hmac('sha1', $data_string, $secret_key); $amount = array('value' => $value, 'currency' => 'INR'); echo $signature; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p6PKH
function name:  (null)
number of ops:  21
compiled vars:  !0 = $access_key, !1 = $secret_key, !2 = $txn_id, !3 = $value, !4 = $data_string, !5 = $signature, !6 = $amount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'OJPGR41P5NV22ZSF86IX'
    3     1        ASSIGN                                                   !1, '7dc45f07f7c4cd88536c198b34ef43af61061d95'
    4     2        ASSIGN                                                   !2, '27042015121151082151-Ez6SvBr3ff'
    5     3        ASSIGN                                                   !3, 450
    6     4        CONCAT                                           ~11     'merchantAccessKey%3D', !0
    7     5        CONCAT                                           ~12     ~11, '%26transactionId%3D'
          6        CONCAT                                           ~13     ~12, !2
    8     7        CONCAT                                           ~14     ~13, '%26amount%3D'
          8        CONCAT                                           ~15     ~14, !3
    6     9        ASSIGN                                                   !4, ~15
    9    10        INIT_FCALL                                               'hash_hmac'
         11        SEND_VAL                                                 'sha1'
         12        SEND_VAR                                                 !4
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $17     
         15        ASSIGN                                                   !5, $17
   10    16        INIT_ARRAY                                       ~19     !3, 'value'
         17        ADD_ARRAY_ELEMENT                                ~19     'INR', 'currency'
         18        ASSIGN                                                   !6, ~19
   11    19        ECHO                                                     !5
   12    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.8 ms | 1395 KiB | 15 Q