3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_input="My1sTpassword"; $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,*/ 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 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/EPj2v
function name:  (null)
number of ops:  18
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
    8     5        INIT_FCALL                                               'crypt'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        ECHO                                                     $5
   11    10        INIT_FCALL                                               'crypt'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $6      
         14        IS_EQUAL                                                 !1, $6
         15      > JMPZ                                                     ~7, ->17
   12    16    >   ECHO                                                     'Password+verified%21'
   14    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.73 ms | 1394 KiB | 15 Q