3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'sup3r53cr3t!'; $options = [ 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM) ]; $hash = password_hash($password, PASSWORD_DEFAULT, $options);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7sNf1
function name:  (null)
number of ops:  15
compiled vars:  !0 = $password, !1 = $options, !2 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'sup3r53cr3t%21'
    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        INIT_ARRAY                                       ~6      $5, 'salt'
    3     7        ASSIGN                                                   !1, ~6
    6     8        INIT_FCALL                                               'password_hash'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '2y'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.54 ms | 1394 KiB | 15 Q