3v4l.org

run code in 300+ PHP versions simultaneously
<?php $merchant = 'VB-TIER1-NON-US'; $secretKey = '04ea9fb0-1c90-4b32-929a-0767126820ea'; 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/Giaoq
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-TIER1-NON-US'
    4     1        ASSIGN                                                   !1, '04ea9fb0-1c90-4b32-929a-0767126820ea'
    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:
162.41 ms | 1394 KiB | 19 Q