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('test123', '$2a$10$' . $salt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7g2F7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $options, !1 = $salt
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                                         $4      
          7        CONCAT                                           ~5      $4, '%0A'
          8        ECHO                                                     ~5
    6     9        INIT_FCALL                                               'crypt'
         10        SEND_VAL                                                 'test123'
         11        CONCAT                                           ~6      '%242a%2410%24', !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.72 ms | 1386 KiB | 17 Q