3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(password_hash('foo', -1)); var_dump(password_hash('foo', 'foo')); var_dump(password_hash('foo', PASSWORD_BCRYPT, ['salt' => 'foo'])); var_dump(password_hash('foo', PASSWORD_BCRYPT, ['cost' => 'foo'])); var_dump(password_hash('foo', PASSWORD_ARGON2I, ['memory_cost' => 'foo'])); var_dump(password_hash('foo', PASSWORD_ARGON2I, ['time_cost' => 'foo'])); var_dump(password_hash('foo', PASSWORD_ARGON2I, ['threads' => 'foo']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DMv87
function name:  (null)
number of ops:  58
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'password_hash'
          2        SEND_VAL                                                 'foo'
          3        SEND_VAL                                                 -1
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'password_hash'
          9        SEND_VAL                                                 'foo'
         10        SEND_VAL                                                 'foo'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'password_hash'
         16        SEND_VAL                                                 'foo'
         17        SEND_VAL                                                 '2y'
         18        SEND_VAL                                                 <array>
         19        DO_ICALL                                         $4      
         20        SEND_VAR                                                 $4
         21        DO_ICALL                                                 
    8    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'password_hash'
         24        SEND_VAL                                                 'foo'
         25        SEND_VAL                                                 '2y'
         26        SEND_VAL                                                 <array>
         27        DO_ICALL                                         $6      
         28        SEND_VAR                                                 $6
         29        DO_ICALL                                                 
   10    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'password_hash'
         32        SEND_VAL                                                 'foo'
         33        FETCH_CONSTANT                                   ~8      'PASSWORD_ARGON2I'
         34        SEND_VAL                                                 ~8
         35        SEND_VAL                                                 <array>
         36        DO_ICALL                                         $9      
         37        SEND_VAR                                                 $9
         38        DO_ICALL                                                 
   11    39        INIT_FCALL                                               'var_dump'
         40        INIT_FCALL                                               'password_hash'
         41        SEND_VAL                                                 'foo'
         42        FETCH_CONSTANT                                   ~11     'PASSWORD_ARGON2I'
         43        SEND_VAL                                                 ~11
         44        SEND_VAL                                                 <array>
         45        DO_ICALL                                         $12     
         46        SEND_VAR                                                 $12
         47        DO_ICALL                                                 
   12    48        INIT_FCALL                                               'var_dump'
         49        INIT_FCALL                                               'password_hash'
         50        SEND_VAL                                                 'foo'
         51        FETCH_CONSTANT                                   ~14     'PASSWORD_ARGON2I'
         52        SEND_VAL                                                 ~14
         53        SEND_VAL                                                 <array>
         54        DO_ICALL                                         $15     
         55        SEND_VAR                                                 $15
         56        DO_ICALL                                                 
         57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.85 ms | 1400 KiB | 17 Q