3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo hash_hmac('sha256', 'Foo data', 'secret_key').PHP_EOL; echo hash_hmac('sha256', 'Foo data', '').PHP_EOL; echo hash_hmac('sha256', 'Foo data', null).PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AF998
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'hash_hmac'
          1        SEND_VAL                                                     'sha256'
          2        SEND_VAL                                                     'Foo+data'
          3        SEND_VAL                                                     'secret_key'
          4        DO_ICALL                                             $0      
          5        CONCAT                                               ~1      $0, '%0A'
          6        ECHO                                                         ~1
    4     7        INIT_FCALL                                                   'hash_hmac'
          8        SEND_VAL                                                     'sha256'
          9        SEND_VAL                                                     'Foo+data'
         10        SEND_VAL                                                     ''
         11        DO_ICALL                                             $2      
         12        CONCAT                                               ~3      $2, '%0A'
         13        ECHO                                                         ~3
    5    14        INIT_FCALL                                                   'hash_hmac'
         15        SEND_VAL                                                     'sha256'
         16        SEND_VAL                                                     'Foo+data'
         17        SEND_VAL                                                     null
         18        DO_ICALL                                             $4      
         19        CONCAT                                               ~5      $4, '%0A'
         20        ECHO                                                         ~5
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.42 ms | 2295 KiB | 14 Q