3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hmac = hash_hmac("sha1", 'abcdefg', '#0123455'); $token = sprintf("%1.1s%20.20s", '0', $hmac); var_export([ $hmac, $token, sprintf("%1.1s%20.20s", '0', 'abc') ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JBLXn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $hmac, !1 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'hash_hmac'
          1        SEND_VAL                                                 'sha1'
          2        SEND_VAL                                                 'abcdefg'
          3        SEND_VAL                                                 '%230123455'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 '%251.1s%2520.20s'
          8        SEND_VAL                                                 '0'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !1, $4
    4    12        INIT_FCALL                                               'var_export'
    5    13        INIT_ARRAY                                       ~6      !0
    6    14        ADD_ARRAY_ELEMENT                                ~6      !1
    7    15        INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 '%251.1s%2520.20s'
         17        SEND_VAL                                                 '0'
         18        SEND_VAL                                                 'abc'
         19        DO_ICALL                                         $7      
         20        ADD_ARRAY_ELEMENT                                ~6      $7
         21        SEND_VAL                                                 ~6
         22        DO_ICALL                                                 
    8    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.37 ms | 1395 KiB | 19 Q