3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hundred = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; $password = 'foo'; $hash = password_hash($hundred . $password, PASSWORD_BCRYPT); $result = password_verify($hundred . 'BAR', $hash); var_dump($result); $result = password_verify($hundred . 'QUZ', $hash); var_dump($result); $result = password_verify($hundred . 'fuz', $hash); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jTkfQ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $hundred, !1 = $password, !2 = $hash, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'
    3     1        ASSIGN                                                   !1, 'foo'
    4     2        INIT_FCALL                                               'password_hash'
          3        CONCAT                                           ~6      !0, !1
          4        SEND_VAL                                                 ~6
          5        SEND_VAL                                                 '2y'
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !2, $7
    5     8        INIT_FCALL                                               'password_verify'
          9        CONCAT                                           ~9      !0, 'BAR'
         10        SEND_VAL                                                 ~9
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !3, $10
    6    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'password_verify'
         18        CONCAT                                           ~13     !0, 'QUZ'
         19        SEND_VAL                                                 ~13
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $14     
         22        ASSIGN                                                   !3, $14
    8    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
    9    26        INIT_FCALL                                               'password_verify'
         27        CONCAT                                           ~17     !0, 'fuz'
         28        SEND_VAL                                                 ~17
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                         $18     
         31        ASSIGN                                                   !3, $18
   10    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.42 ms | 1396 KiB | 19 Q