3v4l.org

run code in 500+ PHP versions simultaneously
<?php $plaintext = "\x04\x03\x02\x01\x00\x00\x00"; $ciphertext = mcrypt_encrypt( MCRYPT_RIJNDAEL_128, "YELLOW SUBMARINE", $plaintext, MCRYPT_MODE_ECB ); $decrypted = trim( mcrypt_decrypt( MCRYPT_RIJNDAEL_128, "YELLOW SUBMARINE", $ciphertext, MCRYPT_MODE_ECB ) ); var_dump([ bin2hex($plaintext), bin2hex($decrypted) ]); var_dump([ mb_strlen($plaintext, '8bit'), mb_strlen($decrypted, '8bit') ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bSoNu
function name:  (null)
number of ops:  45
compiled vars:  !0 = $plaintext, !1 = $ciphertext, !2 = $decrypted
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%04%03%02%01%00%00%00'
    4     1        INIT_FCALL_BY_NAME                                           'mcrypt_encrypt'
    5     2        FETCH_CONSTANT                                       ~4      'MCRYPT_RIJNDAEL_128'
          3        SEND_VAL_EX                                                  ~4
    6     4        SEND_VAL_EX                                                  'YELLOW+SUBMARINE'
    5     5        SEND_VAR_EX                                                  !0
    8     6        FETCH_CONSTANT                                       ~5      'MCRYPT_MODE_ECB'
          7        SEND_VAL_EX                                                  ~5
    4     8        DO_FCALL                                          0  $6      
          9        ASSIGN                                                       !1, $6
   11    10        INIT_FCALL_BY_NAME                                           'mcrypt_decrypt'
   12    11        FETCH_CONSTANT                                       ~8      'MCRYPT_RIJNDAEL_128'
         12        SEND_VAL_EX                                                  ~8
   13    13        SEND_VAL_EX                                                  'YELLOW+SUBMARINE'
   12    14        SEND_VAR_EX                                                  !1
   15    15        FETCH_CONSTANT                                       ~9      'MCRYPT_MODE_ECB'
         16        SEND_VAL_EX                                                  ~9
   11    17        DO_FCALL                                          0  $10     
   10    18        FRAMELESS_ICALL_1                trim                ~11     $10
         19        ASSIGN                                                       !2, ~11
   19    20        INIT_FCALL                                                   'var_dump'
   20    21        INIT_FCALL                                                   'bin2hex'
         22        SEND_VAR                                                     !0
         23        DO_ICALL                                             $13     
         24        INIT_ARRAY                                           ~14     $13
   21    25        INIT_FCALL                                                   'bin2hex'
         26        SEND_VAR                                                     !2
         27        DO_ICALL                                             $15     
         28        ADD_ARRAY_ELEMENT                                    ~14     $15
         29        SEND_VAL                                                     ~14
   19    30        DO_ICALL                                                     
   24    31        INIT_FCALL                                                   'var_dump'
   25    32        INIT_FCALL                                                   'mb_strlen'
         33        SEND_VAR                                                     !0
         34        SEND_VAL                                                     '8bit'
         35        DO_ICALL                                             $17     
         36        INIT_ARRAY                                           ~18     $17
   26    37        INIT_FCALL                                                   'mb_strlen'
         38        SEND_VAR                                                     !2
         39        SEND_VAL                                                     '8bit'
         40        DO_ICALL                                             $19     
         41        ADD_ARRAY_ELEMENT                                    ~18     $19
         42        SEND_VAL                                                     ~18
   24    43        DO_ICALL                                                     
   27    44      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
238.7 ms | 2606 KiB | 16 Q