3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_input="My1sTpassword"; $password = crypt("My1sTpassword"); // let salt be generated echo $password; /* 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,*/ echo crypt($user_input, $password); /* me mentre lo standard basato su MD5 ne usa 12). me 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 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/eKK2T
function name:  (null)
number of ops:  19
compiled vars:  !0 = $user_input, !1 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'My1sTpassword'
    3     1        INIT_FCALL                                               'crypt'
          2        SEND_VAL                                                 'My1sTpassword'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        ECHO                                                     !1
    8     6        INIT_FCALL                                               'crypt'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
   11    11        INIT_FCALL                                               'crypt'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $6      
         15        IS_EQUAL                                                 !1, $6
         16      > JMPZ                                                     ~7, ->18
   12    17    >   ECHO                                                     'Password+verified%21'
   14    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.46 ms | 1399 KiB | 15 Q