3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "Hello world!"; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 1)); if(password_verify($password, $hash)) { echo 'success'; } else { echo 'failed'; }
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/OZ7W0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $password, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello+world%21'
    3     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2y'
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    4     7        INIT_FCALL                                               'password_verify'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11      > JMPZ                                                     $5, ->14
    5    12    >   ECHO                                                     'success'
         13      > JMP                                                      ->15
    7    14    >   ECHO                                                     'failed'
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.63 ms | 1394 KiB | 17 Q