3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = password_hash("servergrove", PASSWORD_BCRYPT); // create hash echo $hash . "\n"; var_dump(password_get_info($hash)); // get hash info (algorithm and options) var_dump(password_needs_rehash($hash, PASSWORD_BCRYPT)); // check if hash implements the algorith and options provided var_dump(password_verify("servergrove", $hash)); // check hash matches the password
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VSlp1
function name:  (null)
number of ops:  28
compiled vars:  !0 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'password_hash'
          1        SEND_VAL                                                 'servergrove'
          2        SEND_VAL                                                 '2y'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        CONCAT                                           ~3      !0, '%0A'
          6        ECHO                                                     ~3
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'password_get_info'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'password_needs_rehash'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '2y'
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
    7    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'password_verify'
         22        SEND_VAL                                                 'servergrove'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $8      
         25        SEND_VAR                                                 $8
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.72 ms | 1395 KiB | 23 Q