3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = str_repeat("\x00", 22); echo password_hash('foo', PASSWORD_BCRYPT, array('salt' => $salt));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rRGai
function name:  (null)
number of ops:  13
compiled vars:  !0 = $salt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 '%00'
          2        SEND_VAL                                                 22
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'password_hash'
          6        SEND_VAL                                                 'foo'
          7        SEND_VAL                                                 '2y'
          8        INIT_ARRAY                                       ~3      !0, 'salt'
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.96 ms | 1394 KiB | 17 Q