3v4l.org

run code in 500+ PHP versions simultaneously
<?php $password = implode('', array_fill(0, 72, 'a')); $hash = password_hash($password, PASSWORD_BCRYPT); var_dump(password_verify($password . 'not valid', $hash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8ih6O
function name:  (null)
number of ops:  21
compiled vars:  !0 = $password, !1 = $hash
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'array_fill'
          1        SEND_VAL                                                     0
          2        SEND_VAL                                                     72
          3        SEND_VAL                                                     'a'
          4        DO_ICALL                                             $2      
          5        FRAMELESS_ICALL_2                implode             ~3      '', $2
          6        ASSIGN                                                       !0, ~3
    5     7        INIT_FCALL                                                   'password_hash'
          8        SEND_VAR                                                     !0
          9        SEND_VAL                                                     '2y'
         10        DO_ICALL                                             $5      
         11        ASSIGN                                                       !1, $5
    7    12        INIT_FCALL                                                   'var_dump'
         13        INIT_FCALL                                                   'password_verify'
         14        CONCAT                                               ~7      !0, 'not+valid'
         15        SEND_VAL                                                     ~7
         16        SEND_VAR                                                     !1
         17        DO_ICALL                                             $8      
         18        SEND_VAR                                                     $8
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.29 ms | 1424 KiB | 17 Q