3v4l.org

run code in 300+ 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:  47
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
          8        DO_FCALL                                      0  $6      
    4     9        ASSIGN                                                   !1, $6
   10    10        INIT_FCALL                                               'trim'
   11    11        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
   12    12        FETCH_CONSTANT                                   ~8      'MCRYPT_RIJNDAEL_128'
         13        SEND_VAL_EX                                              ~8
   13    14        SEND_VAL_EX                                              'YELLOW+SUBMARINE'
   12    15        SEND_VAR_EX                                              !1
   15    16        FETCH_CONSTANT                                   ~9      'MCRYPT_MODE_ECB'
         17        SEND_VAL_EX                                              ~9
         18        DO_FCALL                                      0  $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
   10    21        ASSIGN                                                   !2, $11
   19    22        INIT_FCALL                                               'var_dump'
   20    23        INIT_FCALL                                               'bin2hex'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $13     
         26        INIT_ARRAY                                       ~14     $13
   21    27        INIT_FCALL                                               'bin2hex'
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                         $15     
         30        ADD_ARRAY_ELEMENT                                ~14     $15
         31        SEND_VAL                                                 ~14
         32        DO_ICALL                                                 
   24    33        INIT_FCALL                                               'var_dump'
   25    34        INIT_FCALL                                               'mb_strlen'
         35        SEND_VAR                                                 !0
         36        SEND_VAL                                                 '8bit'
         37        DO_ICALL                                         $17     
         38        INIT_ARRAY                                       ~18     $17
   26    39        INIT_FCALL                                               'mb_strlen'
         40        SEND_VAR                                                 !2
         41        SEND_VAL                                                 '8bit'
         42        DO_ICALL                                         $19     
         43        ADD_ARRAY_ELEMENT                                ~18     $19
         44        SEND_VAL                                                 ~18
         45        DO_ICALL                                                 
   27    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.41 ms | 1400 KiB | 21 Q