3v4l.org

run code in 500+ PHP versions simultaneously
<?php $commands['api_key'] = '789'; $commands['nonce'] = 555; $message = json_encode($commands); print($message); $signature = hash_hmac('sha256', $message, '123'); print($signature);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FM0Mq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $commands, !1 = $message, !2 = $signature
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_DIM                                                   !0, 'api_key'
          1        OP_DATA                                                      '789'
    5     2        ASSIGN_DIM                                                   !0, 'nonce'
          3        OP_DATA                                                      555
    7     4        INIT_FCALL                                                   'json_encode'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $5      
          7        ASSIGN                                                       !1, $5
    8     8        ECHO                                                         !1
   10     9        INIT_FCALL                                                   'hash_hmac'
         10        SEND_VAL                                                     'sha256'
         11        SEND_VAR                                                     !1
         12        SEND_VAL                                                     '123'
         13        DO_ICALL                                             $7      
         14        ASSIGN                                                       !2, $7
   12    15        ECHO                                                         !2
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
229.56 ms | 2345 KiB | 15 Q