3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hundred = '12345645678012345689012345678901234567890123456789012345678901234567890'; echo strlen($hundred)."\n"; $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/NgUki
function name:  (null)
number of ops:  21
compiled vars:  !0 = $hundred, !1 = $password, !2 = $hash, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '12345645678012345689012345678901234567890123456789012345678901234567890'
    3     1        STRLEN                                           ~5      !0
          2        CONCAT                                           ~6      ~5, '%0A'
          3        ECHO                                                     ~6
    4     4        ASSIGN                                                   !1, 'foo'
    5     5        INIT_FCALL                                               'password_hash'
          6        CONCAT                                           ~8      !0, !1
          7        SEND_VAL                                                 ~8
          8        SEND_VAL                                                 '2y'
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    6    11        INIT_FCALL                                               'password_verify'
         12        CONCAT                                           ~11     !0, 'BAR'
         13        SEND_VAL                                                 ~11
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !3, $12
    7    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.78 ms | 1395 KiB | 19 Q