3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo bin2hex( openssl_encrypt( /* Message: */ "The quick brown fox jumps over the lazy dog", /* Cipher algorithm and block mode: */ 'aes-128-ctr', /* Encryption key: (don't use weak keys like this ever, it's just an example!): */ "\x01\x02\x03\x04"."\x05\x06\x07\x08" . "\x09\x0a\x0b\x0c" . "\x0d\x0e\x0f\x10", /* Constant that means "don't encode": */ OPENSSL_RAW_DATA, /* Initialization Vector or Nonce -- don't ever actually use all NULL bytes: */ str_repeat("\0", 16) // This is a really bad way to generate a nonce or IV. // See how it's done here: http://stackoverflow.com/a/30189841/2224584 ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ih8om
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bin2hex'
    4     1        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
    6     2        SEND_VAL_EX                                              'The+quick+brown+fox+jumps+over+the+lazy+dog'
    8     3        SEND_VAL_EX                                              'aes-128-ctr'
   10     4        SEND_VAL_EX                                              '%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10'
   12     5        FETCH_CONSTANT                                   ~0      'OPENSSL_RAW_DATA'
          6        SEND_VAL_EX                                              ~0
   14     7        INIT_FCALL                                               'str_repeat'
          8        SEND_VAL                                                 '%00'
          9        SEND_VAL                                                 16
         10        DO_ICALL                                         $1      
         11        SEND_VAR_NO_REF_EX                                       $1
         12        DO_FCALL                                      0  $2      
         13        SEND_VAR                                                 $2
         14        DO_ICALL                                         $3      
         15        ECHO                                                     $3
   18    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.55 ms | 1394 KiB | 17 Q