3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encrypt_result = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, "bite", "data", MCRYPT_MODE_ECB); var_dump($encrypt_result); $user_id = 4; $result = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, "bite", base64_decode($user_id), MCRYPT_MODE_ECB), "\0"); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Tp3i
function name:  (null)
number of ops:  33
compiled vars:  !0 = $encrypt_result, !1 = $user_id, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          1        FETCH_CONSTANT                                   ~3      'MCRYPT_RIJNDAEL_256'
          2        SEND_VAL_EX                                              ~3
          3        SEND_VAL_EX                                              'bite'
          4        SEND_VAL_EX                                              'data'
          5        FETCH_CONSTANT                                   ~4      'MCRYPT_MODE_ECB'
          6        SEND_VAL_EX                                              ~4
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !0, $5
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    8    12        ASSIGN                                                   !1, 4
    9    13        INIT_FCALL                                               'rtrim'
         14        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
         15        FETCH_CONSTANT                                   ~9      'MCRYPT_RIJNDAEL_256'
         16        SEND_VAL_EX                                              ~9
         17        SEND_VAL_EX                                              'bite'
         18        INIT_FCALL                                               'base64_decode'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $10     
         21        SEND_VAR_NO_REF_EX                                       $10
         22        FETCH_CONSTANT                                   ~11     'MCRYPT_MODE_ECB'
         23        SEND_VAL_EX                                              ~11
         24        DO_FCALL                                      0  $12     
         25        SEND_VAR                                                 $12
         26        SEND_VAL                                                 '%00'
         27        DO_ICALL                                         $13     
         28        ASSIGN                                                   !2, $13
   10    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.38 ms | 1396 KiB | 19 Q