3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '{"showpassword":"yes","bgcolor","#000000"}'; $key = 'qw8J'; $outText = ''; for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } echo base64_encode($outText); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
Branch analysis from position: 5
filename:       /in/9No3Q
function name:  (null)
number of ops:  20
compiled vars:  !0 = $text, !1 = $key, !2 = $outText, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22showpassword%22%3A%22yes%22%2C%22bgcolor%22%2C%22%23000000%22%7D'
    4     1        ASSIGN                                                   !1, 'qw8J'
    5     2        ASSIGN                                                   !2, ''
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->12
    8     5    >   FETCH_DIM_R                                      ~8      !0, !3
          6        STRLEN                                           ~9      !1
          7        MOD                                              ~10     !3, ~9
          8        FETCH_DIM_R                                      ~11     !1, ~10
          9        BW_XOR                                           ~12     ~8, ~11
         10        ASSIGN_OP                                     8          !2, ~12
    7    11        PRE_INC                                                  !3
         12    >   STRLEN                                           ~15     !0
         13        IS_SMALLER                                               !3, ~15
         14      > JMPNZ                                                    ~16, ->5
   11    15    >   INIT_FCALL                                               'base64_encode'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $17     
         18        ECHO                                                     $17
   13    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.53 ms | 1395 KiB | 15 Q