3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m_shop = '56921075'; $m_orderid = '1'; $m_amount = number_format(100, 2, '.', ''); $m_curr = 'USD'; $m_desc = base64_encode('Test'); $m_key = 'secret_key'; $arHash = array( $m_shop, $m_orderid, $m_amount, $m_curr, $m_desc, $m_key ); $sign = strtoupper(hash('sha256', implode(':', $arHash))); print implode(':', $arHash); print $sign; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Capjj
function name:  (null)
number of ops:  41
compiled vars:  !0 = $m_shop, !1 = $m_orderid, !2 = $m_amount, !3 = $m_curr, !4 = $m_desc, !5 = $m_key, !6 = $arHash, !7 = $sign
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '56921075'
    3     1        ASSIGN                                                   !1, '1'
    4     2        INIT_FCALL                                               'number_format'
          3        SEND_VAL                                                 100
          4        SEND_VAL                                                 2
          5        SEND_VAL                                                 '.'
          6        SEND_VAL                                                 ''
          7        DO_ICALL                                         $10     
          8        ASSIGN                                                   !2, $10
    5     9        ASSIGN                                                   !3, 'USD'
    6    10        INIT_FCALL                                               'base64_encode'
         11        SEND_VAL                                                 'Test'
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !4, $13
    7    14        ASSIGN                                                   !5, 'secret_key'
   10    15        INIT_ARRAY                                       ~16     !0
   11    16        ADD_ARRAY_ELEMENT                                ~16     !1
   12    17        ADD_ARRAY_ELEMENT                                ~16     !2
   13    18        ADD_ARRAY_ELEMENT                                ~16     !3
   14    19        ADD_ARRAY_ELEMENT                                ~16     !4
   15    20        ADD_ARRAY_ELEMENT                                ~16     !5
    9    21        ASSIGN                                                   !6, ~16
   17    22        INIT_FCALL                                               'strtoupper'
         23        INIT_FCALL                                               'hash'
         24        SEND_VAL                                                 'sha256'
         25        INIT_FCALL                                               'implode'
         26        SEND_VAL                                                 '%3A'
         27        SEND_VAR                                                 !6
         28        DO_ICALL                                         $18     
         29        SEND_VAR                                                 $18
         30        DO_ICALL                                         $19     
         31        SEND_VAR                                                 $19
         32        DO_ICALL                                         $20     
         33        ASSIGN                                                   !7, $20
   18    34        INIT_FCALL                                               'implode'
         35        SEND_VAL                                                 '%3A'
         36        SEND_VAR                                                 !6
         37        DO_ICALL                                         $22     
         38        ECHO                                                     $22
   19    39        ECHO                                                     !7
   20    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.84 ms | 1396 KiB | 23 Q