3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = '1521dc4feb1f44efec8a8936a28c1eb8'; // $key = base64_decode($key); $message = 'I want to decode this'; // $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $iv = '00000000000000000000000000000000'; print $iv.'<p>'; $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv); $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encrypted, MCRYPT_MODE_CBC, $iv); print base64_encode($encrypted); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lRbJL
function name:  (null)
number of ops:  30
compiled vars:  !0 = $key, !1 = $message, !2 = $iv, !3 = $encrypted, !4 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1521dc4feb1f44efec8a8936a28c1eb8'
    6     1        ASSIGN                                                   !1, 'I+want+to+decode+this'
    8     2        ASSIGN                                                   !2, '00000000000000000000000000000000'
    9     3        CONCAT                                           ~8      !2, '%3Cp%3E'
          4        ECHO                                                     ~8
   10     5        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          6        FETCH_CONSTANT                                   ~9      'MCRYPT_RIJNDAEL_128'
          7        SEND_VAL_EX                                              ~9
          8        SEND_VAR_EX                                              !0
          9        SEND_VAR_EX                                              !1
         10        FETCH_CONSTANT                                   ~10     'MCRYPT_MODE_CBC'
         11        SEND_VAL_EX                                              ~10
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0  $11     
         14        ASSIGN                                                   !3, $11
   11    15        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
         16        FETCH_CONSTANT                                   ~13     'MCRYPT_RIJNDAEL_128'
         17        SEND_VAL_EX                                              ~13
         18        SEND_VAR_EX                                              !0
         19        SEND_VAR_EX                                              !3
         20        FETCH_CONSTANT                                   ~14     'MCRYPT_MODE_CBC'
         21        SEND_VAL_EX                                              ~14
         22        SEND_VAR_EX                                              !2
         23        DO_FCALL                                      0  $15     
         24        ASSIGN                                                   !4, $15
   13    25        INIT_FCALL                                               'base64_encode'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                         $17     
         28        ECHO                                                     $17
   14    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.65 ms | 1395 KiB | 15 Q