3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = 'password'; var_dump(hexdec(substr(sha1($pass, PASSWORD_BCRYPT), -10))); var_dump(hedec(sha1($pass, PASSWORD_BCRYPT))); var_dump(sha1($pass));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fa2MJ
function name:  (null)
number of ops:  32
compiled vars:  !0 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'password'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'hexdec'
          3        INIT_FCALL                                               'substr'
          4        INIT_FCALL                                               'sha1'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '2y'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        SEND_VAL                                                 -10
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL_BY_NAME                                       'hedec'
         17        INIT_FCALL                                               'sha1'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 '2y'
         20        DO_ICALL                                         $6      
         21        SEND_VAR_NO_REF_EX                                       $6
         22        DO_FCALL                                      0  $7      
         23        SEND_VAR                                                 $7
         24        DO_ICALL                                                 
    7    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'sha1'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $9      
         29        SEND_VAR                                                 $9
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.21 ms | 1395 KiB | 21 Q