3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "SmackFactory"; $encrypted = encryptIt( $input ); $decrypted = decryptIt( $encrypted ); echo $encrypted . '<br />' . $decrypted; function encryptIt( $q ) { $cryptKey = 'qJB0rGtIn5UB1xG03efyCp'; $qEncoded = base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), $q, MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ) ); return( $qEncoded ); } function decryptIt( $q ) { $cryptKey = 'qJB0rGtIn5UB1xG03efyCp'; $qDecoded = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), base64_decode( $q ), MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ), "\0"); return( $qDecoded ); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kpvbY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $input, !1 = $encrypted, !2 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SmackFactory'
    5     1        INIT_FCALL_BY_NAME                                       'encryptIt'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL_BY_NAME                                       'decryptIt'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !2, $6
    8     9        CONCAT                                           ~8      !1, '%3Cbr+%2F%3E'
         10        CONCAT                                           ~9      ~8, !2
         11        ECHO                                                     ~9
   21    12      > RETURN                                                   1

Function encryptit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kpvbY
function name:  encryptIt
number of ops:  26
compiled vars:  !0 = $q, !1 = $cryptKey, !2 = $qEncoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        ASSIGN                                                   !1, 'qJB0rGtIn5UB1xG03efyCp'
   12     2        INIT_FCALL                                               'base64_encode'
          3        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          4        FETCH_CONSTANT                                   ~4      'MCRYPT_RIJNDAEL_256'
          5        SEND_VAL_EX                                              ~4
          6        INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR_NO_REF_EX                                       $5
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~6      'MCRYPT_MODE_CBC'
         12        SEND_VAL_EX                                              ~6
         13        INIT_FCALL                                               'md5'
         14        INIT_FCALL                                               'md5'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                         $8      
         19        SEND_VAR_NO_REF_EX                                       $8
         20        DO_FCALL                                      0  $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                         $10     
         23        ASSIGN                                                   !2, $10
   13    24      > RETURN                                                   !2
   14    25*     > RETURN                                                   null

End of function encryptit

Function decryptit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kpvbY
function name:  decryptIt
number of ops:  30
compiled vars:  !0 = $q, !1 = $cryptKey, !2 = $qDecoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        ASSIGN                                                   !1, 'qJB0rGtIn5UB1xG03efyCp'
   18     2        INIT_FCALL                                               'rtrim'
          3        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
          4        FETCH_CONSTANT                                   ~4      'MCRYPT_RIJNDAEL_256'
          5        SEND_VAL_EX                                              ~4
          6        INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR_NO_REF_EX                                       $5
         10        INIT_FCALL                                               'base64_decode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        SEND_VAR_NO_REF_EX                                       $6
         14        FETCH_CONSTANT                                   ~7      'MCRYPT_MODE_CBC'
         15        SEND_VAL_EX                                              ~7
         16        INIT_FCALL                                               'md5'
         17        INIT_FCALL                                               'md5'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                         $9      
         22        SEND_VAR_NO_REF_EX                                       $9
         23        DO_FCALL                                      0  $10     
         24        SEND_VAR                                                 $10
         25        SEND_VAL                                                 '%00'
         26        DO_ICALL                                         $11     
         27        ASSIGN                                                   !2, $11
   19    28      > RETURN                                                   !2
   20    29*     > RETURN                                                   null

End of function decryptit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160 ms | 1405 KiB | 21 Q