3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'SuperSecretKey'; //To Encrypt: $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, 'I want to encrypt this', MCRYPT_MODE_ECB); //To Decrypt: $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $encrypted, MCRYPT_MODE_ECB); var_dump($descrypted);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iv4PS
function name:  (null)
number of ops:  23
compiled vars:  !0 = $key, !1 = $encrypted, !2 = $decrypted, !3 = $descrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'SuperSecretKey'
    5     1        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          2        FETCH_CONSTANT                                   ~5      'MCRYPT_RIJNDAEL_256'
          3        SEND_VAL_EX                                              ~5
          4        SEND_VAR_EX                                              !0
          5        SEND_VAL_EX                                              'I+want+to+encrypt+this'
          6        FETCH_CONSTANT                                   ~6      'MCRYPT_MODE_ECB'
          7        SEND_VAL_EX                                              ~6
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    8    10        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
         11        FETCH_CONSTANT                                   ~9      'MCRYPT_RIJNDAEL_256'
         12        SEND_VAL_EX                                              ~9
         13        SEND_VAR_EX                                              !0
         14        SEND_VAR_EX                                              !1
         15        FETCH_CONSTANT                                   ~10     'MCRYPT_MODE_ECB'
         16        SEND_VAL_EX                                              ~10
         17        DO_FCALL                                      0  $11     
         18        ASSIGN                                                   !2, $11
   10    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.75 ms | 1395 KiB | 15 Q