3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dumb_hash(string $arbitrary, bool $raw_binary = false): string { $h = sodium_crypto_shorthash($arbitrary, 'SoatokDreamseekr'); if ($raw_binary) { return $h; } return sodium_bin2hex($h); } var_dump( dumb_hash('Stormi the Folf'), dumb_hash('Diffuse Moose') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SMnki
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
   13     1        INIT_FCALL                                               'dumb_hash'
          2        SEND_VAL                                                 'Stormi+the+Folf'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
   14     5        INIT_FCALL                                               'dumb_hash'
          6        SEND_VAL                                                 'Diffuse+Moose'
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR                                                 $1
   12     9        DO_ICALL                                                 
   15    10      > RETURN                                                   1

Function dumb_hash:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SMnki
function name:  dumb_hash
number of ops:  17
compiled vars:  !0 = $arbitrary, !1 = $raw_binary, !2 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <false>
    5     2        INIT_FCALL_BY_NAME                                       'sodium_crypto_shorthash'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAL_EX                                              'SoatokDreamseekr'
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !2, $3
    6     7      > JMPZ                                                     !1, ->10
    7     8    >   VERIFY_RETURN_TYPE                                       !2
          9      > RETURN                                                   !2
    9    10    >   INIT_FCALL_BY_NAME                                       'sodium_bin2hex'
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0  $5      
         13        VERIFY_RETURN_TYPE                                       $5
         14      > RETURN                                                   $5
   10    15*       VERIFY_RETURN_TYPE                                       
         16*     > RETURN                                                   null

End of function dumb_hash

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.32 ms | 1440 KiB | 16 Q