3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = '/f)1c(-JG'; $hash = password_hash($password); echo $hash, PHP_EOL; if (password_verify($password, $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/T34ie
function name:  (null)
number of ops:  16
compiled vars:  !0 = $password, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Ff%291c%28-JG'
    4     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        ECHO                                                     !1
          6        ECHO                                                     '%0A'
    8     7        INIT_FCALL                                               'password_verify'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11      > JMPZ                                                     $5, ->14
    9    12    >   ECHO                                                     'Password+is+valid%21'
         13      > JMP                                                      ->15
   11    14    >   ECHO                                                     'Invalid+password.'
   12    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1394 KiB | 17 Q