3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = "X7uD5rln1zv0Exxzjxty755cIBpeV5p0"; $password = ""; function sha1Hash($password, $salt) { return sha1(sha1($password) . $salt); } var_dump(password_verify(sha1Hash($password, $salt), '$2y$10$3PgU1WWU6oVP2hR1e.M76eu1NITpe3fiTjaXCNJdWB7XZJbWaXSUC'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IH2fk
function name:  (null)
number of ops:  14
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, ''
   12     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'password_verify'
          4        INIT_FCALL                                               'sha1hash'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAL                                                 '%242y%2410%243PgU1WWU6oVP2hR1e.M76eu1NITpe3fiTjaXCNJdWB7XZJbWaXSUC'
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function sha1hash:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IH2fk
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:
156.78 ms | 1398 KiB | 20 Q