3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'mypassword'; $hash = password_hash($password); var_dump(password_get_info($hash)); echo "Password needs rehash? => " . (password_needs_rehash($hash, PASSWORD_DEFAULT));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7SqgW
function name:  (null)
number of ops:  18
compiled vars:  !0 = $password, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'mypassword'
    4     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'password_get_info'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'password_needs_rehash'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 '2y'
         14        DO_ICALL                                         $7      
         15        CONCAT                                           ~8      'Password+needs+rehash%3F+%3D%3E+', $7
         16        ECHO                                                     ~8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.01 ms | 1394 KiB | 21 Q