3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "test"; echo $password + "\n"; $hashToStoreInDb = password_hash($password, PASSWORD_BCRYPT); echo $hashToStoreInDb + "\n"; $isPasswordCorrect = password_verify($password, $existingHashFromDb); echo $isPasswordCorrect + "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qVfhu
function name:  (null)
number of ops:  18
compiled vars:  !0 = $password, !1 = $hashToStoreInDb, !2 = $isPasswordCorrect, !3 = $existingHashFromDb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test'
    4     1        ADD                                              ~5      !0, '%0A'
          2        ECHO                                                     ~5
    5     3        INIT_FCALL                                               'password_hash'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '2y'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    6     8        ADD                                              ~8      !1, '%0A'
          9        ECHO                                                     ~8
    7    10        INIT_FCALL                                               'password_verify'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    8    15        ADD                                              ~11     !2, '%0A'
         16        ECHO                                                     ~11
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.97 ms | 1394 KiB | 17 Q