3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $secret = '7pgj8Dm6'; echo "\r\n"; $sec = base64_decode($secret); echo $sec; echo "\r\n"; $message = "Message"; echo hash_hmac('sha512', $message, base64_decode($sec), true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kFjR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $secret, !1 = $sec, !2 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~3      !0, '7pgj8Dm6'
          1        ECHO                                                     ~3
    4     2        ECHO                                                     '%0D%0A'
    5     3        INIT_FCALL                                               'base64_decode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    6     7        ECHO                                                     !1
    7     8        ECHO                                                     '%0D%0A'
    8     9        ASSIGN                                                   !2, 'Message'
   10    10        INIT_FCALL                                               'hash_hmac'
         11        SEND_VAL                                                 'sha512'
         12        SEND_VAR                                                 !2
         13        INIT_FCALL                                               'base64_decode'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $8      
         19        ECHO                                                     $8
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.66 ms | 1395 KiB | 17 Q