3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hashed_password = crypt('superadmin', '$r!lanka'); // let the salt be automatically generated echo $hashed_password;exit; if (hash_equals($hashed_password, crypt($user_input, $hashed_password))) { echo "Password verified!"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/pZ9s6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $hashed_password, !1 = $user_input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'crypt'
          1        SEND_VAL                                                 'superadmin'
          2        SEND_VAL                                                 '%24r%21lanka'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5        ECHO                                                     !0
          6      > EXIT                                                     
    7     7*       INIT_FCALL                                               'hash_equals'
          8*       SEND_VAR                                                 !0
          9*       INIT_FCALL                                               'crypt'
         10*       SEND_VAR                                                 !1
         11*       SEND_VAR                                                 !0
         12*       DO_ICALL                                         $4      
         13*       SEND_VAR                                                 $4
         14*       DO_ICALL                                         $5      
         15*       JMPZ                                                     $5, ->17
    8    16*       ECHO                                                     'Password+verified%21'
    9    17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.25 ms | 1394 KiB | 17 Q