3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<form action="demo_form.asp" method="post">  password: <input type="text" name="fname"><br>  <input type="submit" value="Submit"></form>'; $randompassword ='thisismypassword'; $showpass = password_hash($randompassword, PASSWORD_BCRYPT); if (password_verify($randompassword, $showpass)) { 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/6vsb7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $randompassword, !1 = $showpass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Cform%C2%A0action%3D%22demo_form.asp%22%C2%A0method%3D%22post%22%3E%C2%A0+%0Apassword%3A+%3Cinput%C2%A0type%3D%22text%22%C2%A0name%3D%22fname%22%3E%3Cbr%3E%C2%A0+%0A%3Cinput%C2%A0type%3D%22submit%22%C2%A0value%3D%22Submit%22%3E%3C%2Fform%3E'
    5     1        ASSIGN                                                   !0, 'thisismypassword'
    7     2        INIT_FCALL                                               'password_hash'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '2y'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    9     7        INIT_FCALL                                               'password_verify'
          8        SEND_VAR                                                 !0
          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:
154.33 ms | 1395 KiB | 17 Q