3v4l.org

run code in 300+ PHP versions simultaneously
<?php $merchant = 'VB-USA'; $secretKey = '6c5e27ca-fe94-4e2d-a940-ac7ba4fedd49'; 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/o5dJ7
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-USA'
    4     1        ASSIGN                                                   !1, '6c5e27ca-fe94-4e2d-a940-ac7ba4fedd49'
    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:
144.16 ms | 1394 KiB | 19 Q