3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $salt = md5('static salt'); for ($i = 0; $i < 5; $i++) { echo password_hash('reddit is fun', PASSWORD_DEFAULT, ['salt' => $salt, 'cost' => 4]) . PHP_EOL; }
based on RsQ61
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 17
Branch analysis from position: 17
Jump found. Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
Branch analysis from position: 6
filename:       /in/Bklc1
function name:  (null)
number of ops:  20
compiled vars:  !0 = $salt, !1 = $i
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, 0
         5      > JMP                                                      ->17
   6     6    >   INIT_FCALL                                               'password_hash'
         7        SEND_VAL                                                 'reddit+is+fun'
         8        SEND_VAL                                                 1
         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        POST_INC                                         ~8      !1
        16        FREE                                                     ~8
        17    >   IS_SMALLER                                       ~9      !1, 5
        18      > JMPNZ                                                    ~9, ->6
        19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0