3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM), ]; $hash = password_hash("password", PASSWORD_BCRYPT, $options); $pass = "password"; if(password_verify($pass, $hash)) { echo("Verified."); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/gvp3r
function name:  (null)
number of ops:  22
compiled vars:  !0 = $options, !1 = $hash, !2 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~3      11, 'cost'
    4     1        INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          2        SEND_VAL_EX                                              22
          3        FETCH_CONSTANT                                   ~4      'MCRYPT_DEV_URANDOM'
          4        SEND_VAL_EX                                              ~4
          5        DO_FCALL                                      0  $5      
          6        ADD_ARRAY_ELEMENT                                ~3      $5, 'salt'
    2     7        ASSIGN                                                   !0, ~3
    6     8        INIT_FCALL                                               'password_hash'
          9        SEND_VAL                                                 'password'
         10        SEND_VAL                                                 '2y'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
    7    14        ASSIGN                                                   !2, 'password'
    8    15        INIT_FCALL                                               'password_verify'
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19      > JMPZ                                                     $10, ->21
    9    20    >   ECHO                                                     'Verified.'
   10    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.74 ms | 1399 KiB | 17 Q