3v4l.org

run code in 500+ PHP versions simultaneously
<?php $cost = 12; while ( --$cost ) { password_hash( 'password', PASSWORD_BCRYPT, [ 'cost' => $cost ]); var_dump($cost); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
Branch analysis from position: 2
filename:       /in/15DFo
function name:  (null)
number of ops:  14
compiled vars:  !0 = $cost
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 12
    4     1      > JMP                                                          ->11
    5     2    >   INIT_FCALL                                                   'password_hash'
          3        SEND_VAL                                                     'password'
          4        SEND_VAL                                                     '2y'
          5        INIT_ARRAY                                           ~2      !0, 'cost'
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                                     
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
    4    11    >   PRE_DEC                                              ~5      !0
         12      > JMPNZ                                                        ~5, ->2
    7    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.96 ms | 3295 KiB | 15 Q