3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = base64_encode(random_bytes(54)); // 72 chars $b = $a . random_bytes(33); // Same 72 character prefix, with junk added after the end $hash = password_hash($a, PASSWORD_BCRYPT); // Since $b has junk added to the end, we'd expect this to return // bool(false) var_dump(password_verify($b, $hash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AsiTa
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b, !2 = $hash
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'base64_encode'
          1        INIT_FCALL                                                   'random_bytes'
          2        SEND_VAL                                                     54
          3        DO_ICALL                                             $3      
          4        SEND_VAR                                                     $3
          5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !0, $4
    4     7        INIT_FCALL                                                   'random_bytes'
          8        SEND_VAL                                                     33
          9        DO_ICALL                                             $6      
         10        CONCAT                                               ~7      !0, $6
         11        ASSIGN                                                       !1, ~7
    6    12        INIT_FCALL                                                   'password_hash'
         13        SEND_VAR                                                     !0
         14        SEND_VAL                                                     '2y'
         15        DO_ICALL                                             $9      
         16        ASSIGN                                                       !2, $9
   10    17        INIT_FCALL                                                   'var_dump'
         18        INIT_FCALL                                                   'password_verify'
         19        SEND_VAR                                                     !1
         20        SEND_VAR                                                     !2
         21        DO_ICALL                                             $11     
         22        SEND_VAR                                                     $11
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
149.89 ms | 1978 KiB | 18 Q