3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = password_hash("admin", PASSWORD_DEFAULT); var_dump($hash); var_dump(password_verify("admin", $hash)); $hash = '$2y$10$HQfBMgdHdi7OY1qrk94OpOM.Y4faT.76VD1O6ehf2TyRzwncV1ppG'; var_dump($hash); var_dump(password_verify("admin", $hash));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZoLj
function name:  (null)
number of ops:  27
compiled vars:  !0 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'password_hash'
          1        SEND_VAL                                                 'admin'
          2        SEND_VAL                                                 '2y'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'password_verify'
         10        SEND_VAL                                                 'admin'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
    8    15        ASSIGN                                                   !0, '%242y%2410%24HQfBMgdHdi7OY1qrk94OpOM.Y4faT.76VD1O6ehf2TyRzwncV1ppG'
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'password_verify'
         21        SEND_VAL                                                 'admin'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $8      
         24        SEND_VAR                                                 $8
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.55 ms | 1395 KiB | 19 Q