3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = md5('static salt'); for ($cost = 4; $cost <=12; $cost++) { echo password_hash('reddit is fun', PASSWORD_DEFAULT, ['salt' => $salt, 'cost' => 4]) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
filename:       /in/SZCdJ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $salt, !1 = $cost
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 'static+salt'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN                                                   !1, 4
          5      > JMP                                                      ->16
    6     6    >   INIT_FCALL                                               'password_hash'
          7        SEND_VAL                                                 'reddit+is+fun'
          8        SEND_VAL                                                 '2y'
          9        INIT_ARRAY                                       ~5      !0, 'salt'
         10        ADD_ARRAY_ELEMENT                                ~5      4, 'cost'
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      $6, '%0A'
         14        ECHO                                                     ~7
    5    15        PRE_INC                                                  !1
         16    >   IS_SMALLER_OR_EQUAL                                      !1, 12
         17      > JMPNZ                                                    ~9, ->6
    7    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.43 ms | 1395 KiB | 17 Q