3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = openssl_encrypt('0000000000000000', 'aes-128-ctr', '0123456789abcdef', OPENSSL_RAW_DATA, '0000000000000000'); $y = openssl_encrypt('0000000000000001', 'aes-128-ctr', '0123456789abcdef', OPENSSL_RAW_DATA, '0000000000000000'); $z = ''; for ($i = 0; $i < 16; ++$i) { $z .= \ord( \chr($x[$i]) ^ \chr($y[$i]) ); } var_dump( bin2hex($x), bin2hex($y), bin2hex($z) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 21
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 21
Branch analysis from position: 37
Branch analysis from position: 21
filename:       /in/Tf5Kd
function name:  (null)
number of ops:  52
compiled vars:  !0 = $x, !1 = $y, !2 = $z, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'openssl_encrypt'
          1        SEND_VAL_EX                                              '0000000000000000'
          2        SEND_VAL_EX                                              'aes-128-ctr'
          3        SEND_VAL_EX                                              '0123456789abcdef'
          4        FETCH_CONSTANT                                   ~4      'OPENSSL_RAW_DATA'
          5        SEND_VAL_EX                                              ~4
          6        SEND_VAL_EX                                              '0000000000000000'
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !0, $5
    4     9        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
         10        SEND_VAL_EX                                              '0000000000000001'
         11        SEND_VAL_EX                                              'aes-128-ctr'
         12        SEND_VAL_EX                                              '0123456789abcdef'
         13        FETCH_CONSTANT                                   ~7      'OPENSSL_RAW_DATA'
         14        SEND_VAL_EX                                              ~7
         15        SEND_VAL_EX                                              '0000000000000000'
         16        DO_FCALL                                      0  $8      
         17        ASSIGN                                                   !1, $8
    6    18        ASSIGN                                                   !2, ''
    7    19        ASSIGN                                                   !3, 0
         20      > JMP                                                      ->35
    8    21    >   INIT_FCALL                                               'ord'
    9    22        INIT_FCALL                                               'chr'
         23        FETCH_DIM_R                                      ~12     !0, !3
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                         $13     
         26        INIT_FCALL                                               'chr'
         27        FETCH_DIM_R                                      ~14     !1, !3
         28        SEND_VAL                                                 ~14
         29        DO_ICALL                                         $15     
         30        BW_XOR                                           ~16     $13, $15
         31        SEND_VAL                                                 ~16
         32        DO_ICALL                                         $17     
         33        ASSIGN_OP                                     8          !2, $17
    7    34        PRE_INC                                                  !3
         35    >   IS_SMALLER                                               !3, 16
         36      > JMPNZ                                                    ~20, ->21
   12    37    >   INIT_FCALL                                               'var_dump'
   13    38        INIT_FCALL                                               'bin2hex'
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                         $21     
         41        SEND_VAR                                                 $21
   14    42        INIT_FCALL                                               'bin2hex'
         43        SEND_VAR                                                 !1
         44        DO_ICALL                                         $22     
         45        SEND_VAR                                                 $22
   15    46        INIT_FCALL                                               'bin2hex'
         47        SEND_VAR                                                 !2
         48        DO_ICALL                                         $23     
         49        SEND_VAR                                                 $23
         50        DO_ICALL                                                 
   16    51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.33 ms | 1400 KiB | 21 Q