3v4l.org

run code in 300+ PHP versions simultaneously
<?php $merchant = 'VB-TEST'; $secretKey = 'a9237fa9-f480-433f-8098-ac9f1a9ca18a'; echo base64_encode( hash_hmac( 'sha512', $merchant . \json_encode(['order_id' => 1000001067]) . $merchant, $secretKey ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/90n7N
function name:  (null)
number of ops:  17
compiled vars:  !0 = $merchant, !1 = $secretKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'VB-TEST'
    4     1        ASSIGN                                                   !1, 'a9237fa9-f480-433f-8098-ac9f1a9ca18a'
    6     2        INIT_FCALL                                               'base64_encode'
    7     3        INIT_FCALL                                               'hash_hmac'
    8     4        SEND_VAL                                                 'sha512'
    9     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAL                                                 <array>
          7        DO_ICALL                                         $4      
          8        CONCAT                                           ~5      !0, $4
          9        CONCAT                                           ~6      ~5, !0
         10        SEND_VAL                                                 ~6
   10    11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
   12    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.63 ms | 1394 KiB | 19 Q