3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.46 ms | 1394 KiB | 17 Q