3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = 'OaZZhZgCp/VAldZFX2o6leedzq6wLT.'; $options = array('cost' => 10,'salt' => $salt); echo password_hash('test123', PASSWORD_BCRYPT, $options)."\n"; echo crypt('test123', '$2a$10$' . $salt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cFMG2
function name:  (null)
number of ops:  18
compiled vars:  !0 = $salt, !1 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'OaZZhZgCp%2FVAldZFX2o6leedzq6wLT.'
    3     1        INIT_ARRAY                                       ~3      10, 'cost'
          2        ADD_ARRAY_ELEMENT                                ~3      !0, 'salt'
          3        ASSIGN                                                   !1, ~3
    4     4        INIT_FCALL                                               'password_hash'
          5        SEND_VAL                                                 'test123'
          6        SEND_VAL                                                 '2y'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      $5, '%0A'
         10        ECHO                                                     ~6
    5    11        INIT_FCALL                                               'crypt'
         12        SEND_VAL                                                 'test123'
         13        CONCAT                                           ~7      '%242a%2410%24', !0
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                         $8      
         16        ECHO                                                     $8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.27 ms | 1394 KiB | 17 Q