3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = hex2bin('000102,mn030405060708090a0b0c0d0e0f'); $message = hex2bin('5061726101676f6e000300'); $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $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 $decrypted; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/325PD
function name:  (null)
number of ops:  36
compiled vars:  !0 = $key, !1 = $message, !2 = $iv, !3 = $encrypted, !4 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'hex2bin'
          1        SEND_VAL                                                 '000102%2Cmn030405060708090a0b0c0d0e0f'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    5     4        INIT_FCALL                                               'hex2bin'
          5        SEND_VAL                                                 '5061726101676f6e000300'
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    6     8        INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          9        SEND_VAL_EX                                              16
         10        FETCH_CONSTANT                                   ~9      'MCRYPT_DEV_URANDOM'
         11        SEND_VAL_EX                                              ~9
         12        DO_FCALL                                      0  $10     
         13        ASSIGN                                                   !2, $10
    7    14        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
         15        FETCH_CONSTANT                                   ~12     'MCRYPT_RIJNDAEL_128'
         16        SEND_VAL_EX                                              ~12
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !1
         19        FETCH_CONSTANT                                   ~13     'MCRYPT_MODE_CBC'
         20        SEND_VAL_EX                                              ~13
         21        SEND_VAR_EX                                              !2
         22        DO_FCALL                                      0  $14     
         23        ASSIGN                                                   !3, $14
    8    24        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
         25        FETCH_CONSTANT                                   ~16     'MCRYPT_RIJNDAEL_128'
         26        SEND_VAL_EX                                              ~16
         27        SEND_VAR_EX                                              !0
         28        SEND_VAR_EX                                              !3
         29        FETCH_CONSTANT                                   ~17     'MCRYPT_MODE_CBC'
         30        SEND_VAL_EX                                              ~17
         31        SEND_VAR_EX                                              !2
         32        DO_FCALL                                      0  $18     
         33        ASSIGN                                                   !4, $18
   10    34        ECHO                                                     !4
   11    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.06 ms | 1401 KiB | 15 Q