3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "hi"; $hash = '$2y$10$inV7Rm56EYqTnjJiZs9PM.RbrawziMvArUb'; die(password_hash('heinz12', PASSWORD_BCRYPT)); if (password_hash('heinz12', PASSWORD_BCRYPT)) { echo 'Password is valid!'; } else { echo 'Invalid password.'; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/XB78v
function name:  (null)
number of ops:  16
compiled vars:  !0 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'hi'
    3     1        ASSIGN                                                   !0, '%242y%2410%24inV7Rm56EYqTnjJiZs9PM.RbrawziMvArUb'
    4     2        INIT_FCALL                                               'password_hash'
          3        SEND_VAL                                                 'heinz12'
          4        SEND_VAL                                                 '2y'
          5        DO_ICALL                                         $2      
          6      > EXIT                                                     $2
    5     7*       INIT_FCALL                                               'password_hash'
          8*       SEND_VAL                                                 'heinz12'
          9*       SEND_VAL                                                 '2y'
         10*       DO_ICALL                                         $3      
         11*       JMPZ                                                     $3, ->14
    6    12*       ECHO                                                     'Password+is+valid%21'
         13*       JMP                                                      ->15
    8    14*       ECHO                                                     'Invalid+password.'
   10    15*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.76 ms | 1394 KiB | 15 Q