3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.15 ms | 1394 KiB | 17 Q