3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 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/GWZd3
function name:  (null)
number of ops:  15
compiled vars:  !0 = $randompassword, !1 = $showpass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'thisismypassword'
    4     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2y'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'password_verify'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10      > JMPZ                                                     $5, ->13
    7    11    >   ECHO                                                     'Password+is+valid%21'
         12      > JMP                                                      ->14
    9    13    >   ECHO                                                     'Invalid+password.'
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.71 ms | 1394 KiB | 17 Q