3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = hash_hmac('sha512', 'BulletBillPop_Mac', '09021520C5B142B9B124B79AFBD05F7F', true); $h = hash('sha512', 'BulletBillPop_Mac', true); echo $h; echo '-----'; echo base64_encode('BulletBillPop_Mac:' . $s); echo '-----'; echo rawurlencode( base64_encode('BulletBillPop_Mac:' . $s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FGbmP
function name:  (null)
number of ops:  30
compiled vars:  !0 = $s, !1 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'hash_hmac'
          1        SEND_VAL                                                 'sha512'
          2        SEND_VAL                                                 'BulletBillPop_Mac'
          3        SEND_VAL                                                 '09021520C5B142B9B124B79AFBD05F7F'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'hash'
          8        SEND_VAL                                                 'sha512'
          9        SEND_VAL                                                 'BulletBillPop_Mac'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !1, $4
    5    13        ECHO                                                     !1
    6    14        ECHO                                                     '-----'
    7    15        INIT_FCALL                                               'base64_encode'
         16        CONCAT                                           ~6      'BulletBillPop_Mac%3A', !0
         17        SEND_VAL                                                 ~6
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
    8    20        ECHO                                                     '-----'
    9    21        INIT_FCALL                                               'rawurlencode'
         22        INIT_FCALL                                               'base64_encode'
         23        CONCAT                                           ~8      'BulletBillPop_Mac%3A', !0
         24        SEND_VAL                                                 ~8
         25        DO_ICALL                                         $9      
         26        SEND_VAR                                                 $9
         27        DO_ICALL                                         $10     
         28        ECHO                                                     $10
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.2 ms | 1395 KiB | 21 Q