3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo("<h3> Symmetric Encryption </h3>"); $key_value = "KEYVALUE"; $plain_text = "PLAINTEXT"; $encrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $plain_text, MCRYPT_ENCRYPT); echo ("<p><b> Text after encryption : </b>"); echo ( $encrypted_text ); $decrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $encrypted_text, MCRYPT_DECRYPT); echo ("<p><b> Text after decryption : </b>"); echo ( $decrypted_text );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a8EqO
function name:  (null)
number of ops:  26
compiled vars:  !0 = $key_value, !1 = $plain_text, !2 = $encrypted_text, !3 = $decrypted_text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%3Ch3%3E+Symmetric+Encryption+%3C%2Fh3%3E'
    4     1        ASSIGN                                                   !0, 'KEYVALUE'
    5     2        ASSIGN                                                   !1, 'PLAINTEXT'
    6     3        INIT_FCALL_BY_NAME                                       'mcrypt_ecb'
          4        FETCH_CONSTANT                                   ~6      'MCRYPT_DES'
          5        SEND_VAL_EX                                              ~6
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !1
          8        FETCH_CONSTANT                                   ~7      'MCRYPT_ENCRYPT'
          9        SEND_VAL_EX                                              ~7
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
    7    12        ECHO                                                     '%3Cp%3E%3Cb%3E+Text+after+encryption+%3A+%3C%2Fb%3E'
    8    13        ECHO                                                     !2
    9    14        INIT_FCALL_BY_NAME                                       'mcrypt_ecb'
         15        FETCH_CONSTANT                                   ~10     'MCRYPT_DES'
         16        SEND_VAL_EX                                              ~10
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !2
         19        FETCH_CONSTANT                                   ~11     'MCRYPT_DECRYPT'
         20        SEND_VAL_EX                                              ~11
         21        DO_FCALL                                      0  $12     
         22        ASSIGN                                                   !3, $12
   10    23        ECHO                                                     '%3Cp%3E%3Cb%3E+Text+after+decryption+%3A+%3C%2Fb%3E'
   11    24        ECHO                                                     !3
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.59 ms | 1394 KiB | 13 Q