3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = crypt("My1sTpassword"); // let salt be generated /* Si dovrebbe passare l'intero risultato di crypt() come chiave di confronto della password per evitare problemi con differenti algoritmi di hash. (Come detto prima lo standard basato su DES usa chiavi di 2 caratteri, mentre lo standard basato su MD5 ne usa 12). */ if (crypt($user_input, $password) == $password) { echo "Password verified!"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/iBVWf
function name:  (null)
number of ops:  12
compiled vars:  !0 = $password, !1 = $user_input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'crypt'
          1        SEND_VAL                                                 'My1sTpassword'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    9     4        INIT_FCALL                                               'crypt'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        IS_EQUAL                                                 !0, $4
          9      > JMPZ                                                     ~5, ->11
   10    10    >   ECHO                                                     'Password+verified%21'
   12    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.31 ms | 1385 KiB | 15 Q