3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = "X7uD5rln1zv0Exxzjxty755cIBpeV5p0"; $password = "Admin123"; function sha1Hash($password, $salt) { return sha1(sha1($password) . $salt); } var_dump(sha1Hash($password, $salt)); var_dump(password_verify('Admin123', '$2y$10$0mHZ5ZtsMsCUb00yvFEkW./qEu/.cCCLeIW/2MmPhM3iJ6/elqlbW'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/la6hJ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $salt, !1 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'X7uD5rln1zv0Exxzjxty755cIBpeV5p0'
    4     1        ASSIGN                                                   !1, 'Admin123'
   11     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'sha1hash'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
   12     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'password_verify'
         11        SEND_VAL                                                 'Admin123'
         12        SEND_VAL                                                 '%242y%2410%240mHZ5ZtsMsCUb00yvFEkW.%2FqEu%2F.cCCLeIW%2F2MmPhM3iJ6%2FelqlbW'
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function sha1hash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/la6hJ
function name:  sha1Hash
number of ops:  11
compiled vars:  !0 = $password, !1 = $salt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        INIT_FCALL                                               'sha1'
          3        INIT_FCALL                                               'sha1'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      $2, !1
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9      > RETURN                                                   $4
   10    10*     > RETURN                                                   null

End of function sha1hash

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.77 ms | 1399 KiB | 20 Q