3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hundred = '123456789012345678901234567890123456789012345678901234567890123456789012'; $password = 'foo'; $hash = password_hash($hundred . $password, PASSWORD_BCRYPT); $result = password_verify($hundred . 'BAR', $hash); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A5KRL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $hundred, !1 = $password, !2 = $hash, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '123456789012345678901234567890123456789012345678901234567890123456789012'
    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                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.48 ms | 1386 KiB | 19 Q