3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'aldanux'; $string = 'string to be encrypted'; $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key)))); var_dump($encrypted); var_dump($decrypted);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I073p
function name:  (null)
number of ops:  31
compiled vars:  !0 = $key, !1 = $string, !2 = $encrypted, !3 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'aldanux'
    3     1        ASSIGN                                                   !1, 'string+to+be+encrypted'
    5     2        INIT_FCALL                                               'base64_encode'
          3        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          4        FETCH_CONSTANT                                   ~6      'MCRYPT_RIJNDAEL_256'
          5        SEND_VAL_EX                                              ~6
          6        INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        SEND_VAR_NO_REF_EX                                       $7
         10        SEND_VAR_EX                                              !1
         11        FETCH_CONSTANT                                   ~8      'MCRYPT_MODE_CBC'
         12        SEND_VAL_EX                                              ~8
         13        INIT_FCALL                                               'md5'
         14        INIT_FCALL                                               'md5'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $9      
         17        SEND_VAR                                                 $9
         18        DO_ICALL                                         $10     
         19        SEND_VAR_NO_REF_EX                                       $10
         20        DO_FCALL                                      0  $11     
         21        SEND_VAR                                                 $11
         22        DO_ICALL                                         $12     
         23        ASSIGN                                                   !2, $12
    7    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
    8    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !3
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.89 ms | 1395 KiB | 19 Q