3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.84 ms | 1394 KiB | 15 Q