3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'asdfasdfasdfasdf'; $message = '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/HhtUX
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
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'asdfasdfasdfasdf'
    5     1        ASSIGN                                                   !1, '5061726101676f6e000300'
    6     2        INIT_FCALL_BY_NAME                                       'mcrypt_create_iv'
          3        SEND_VAL_EX                                              16
          4        FETCH_CONSTANT                                   ~7      'MCRYPT_DEV_URANDOM'
          5        SEND_VAL_EX                                              ~7
          6        DO_FCALL                                      0  $8      
          7        ASSIGN                                                   !2, $8
    7     8        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          9        FETCH_CONSTANT                                   ~10     'MCRYPT_RIJNDAEL_128'
         10        SEND_VAL_EX                                              ~10
         11        SEND_VAR_EX                                              !0
         12        SEND_VAR_EX                                              !1
         13        FETCH_CONSTANT                                   ~11     'MCRYPT_MODE_CBC'
         14        SEND_VAL_EX                                              ~11
         15        SEND_VAR_EX                                              !2
         16        DO_FCALL                                      0  $12     
         17        ASSIGN                                                   !3, $12
    8    18        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
         19        FETCH_CONSTANT                                   ~14     'MCRYPT_RIJNDAEL_128'
         20        SEND_VAL_EX                                              ~14
         21        SEND_VAR_EX                                              !0
         22        SEND_VAR_EX                                              !3
         23        FETCH_CONSTANT                                   ~15     'MCRYPT_MODE_CBC'
         24        SEND_VAL_EX                                              ~15
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0  $16     
         27        ASSIGN                                                   !4, $16
   10    28        ECHO                                                     !4
   11    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.21 ms | 1394 KiB | 13 Q