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 .= \chr( \ord($x[$i]) ^ \orf($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 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 21
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 21
Branch analysis from position: 38
Branch analysis from position: 21
filename:       /in/995aa
function name:  (null)
number of ops:  53
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                                                      ->36
    8    21    >   INIT_FCALL                                               'chr'
    9    22        INIT_FCALL                                               'ord'
         23        FETCH_DIM_R                                      ~12     !0, !3
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                         $13     
         26        INIT_FCALL_BY_NAME                                       'orf'
         27        CHECK_FUNC_ARG                                           
         28        FETCH_DIM_FUNC_ARG                               $14     !1, !3
         29        SEND_FUNC_ARG                                            $14
         30        DO_FCALL                                      0  $15     
         31        BW_XOR                                           ~16     $13, $15
         32        SEND_VAL                                                 ~16
         33        DO_ICALL                                         $17     
         34        ASSIGN_OP                                     8          !2, $17
    7    35        PRE_INC                                                  !3
         36    >   IS_SMALLER                                               !3, 16
         37      > JMPNZ                                                    ~20, ->21
   12    38    >   INIT_FCALL                                               'var_dump'
   13    39        INIT_FCALL                                               'bin2hex'
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                         $21     
         42        SEND_VAR                                                 $21
   14    43        INIT_FCALL                                               'bin2hex'
         44        SEND_VAR                                                 !1
         45        DO_ICALL                                         $22     
         46        SEND_VAR                                                 $22
   15    47        INIT_FCALL                                               'bin2hex'
         48        SEND_VAR                                                 !2
         49        DO_ICALL                                         $23     
         50        SEND_VAR                                                 $23
         51        DO_ICALL                                                 
   16    52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.54 ms | 1400 KiB | 21 Q