3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.03 ms | 1394 KiB | 17 Q