3v4l.org

run code in 500+ PHP versions simultaneously
<?php $password = 'foobar'; $salt = 'qwertzuiopasdfghjklyxc'; $hash = password_hash($password, PASSWORD_BCRYPT, [ 'salt' => $salt, ]); $froxlor_pwd_salt = str_replace(substr(strrchr($hash, "$"), 1), "", $hash); $froxlor_pwd_check = crypt($password, $froxlor_pwd_salt); var_dump($hash, $froxlor_pwd_check);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bub6H
function name:  (null)
number of ops:  27
compiled vars:  !0 = $password, !1 = $salt, !2 = $hash, !3 = $froxlor_pwd_salt, !4 = $froxlor_pwd_check
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'foobar'
    4     1        ASSIGN                                                       !1, 'qwertzuiopasdfghjklyxc'
    6     2        INIT_FCALL                                                   'password_hash'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     '2y'
    7     5        INIT_ARRAY                                           ~7      !1, 'salt'
          6        SEND_VAL                                                     ~7
    6     7        DO_ICALL                                             $8      
          8        ASSIGN                                                       !2, $8
   10     9        INIT_FCALL                                                   'strrchr'
         10        SEND_VAR                                                     !2
         11        SEND_VAL                                                     '%24'
         12        DO_ICALL                                             $10     
         13        FRAMELESS_ICALL_2                substr              ~11     $10, 1
         14        FRAMELESS_ICALL_3                str_replace         ~12     ~11, ''
         15        OP_DATA                                                      !2
         16        ASSIGN                                                       !3, ~12
   11    17        INIT_FCALL                                                   'crypt'
         18        SEND_VAR                                                     !0
         19        SEND_VAR                                                     !3
         20        DO_ICALL                                             $14     
         21        ASSIGN                                                       !4, $14
   13    22        INIT_FCALL                                                   'var_dump'
         23        SEND_VAR                                                     !2
         24        SEND_VAR                                                     !4
         25        DO_ICALL                                                     
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.14 ms | 1414 KiB | 17 Q