3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mustget = 'Kw4SCQ=='; $key = 'frtkj'; $key_length = strlen($key); $encoded_data = base64_decode($mustget); $result = ''; $length = strlen($encoded_data); for ($i = 0; $i < $length; $i++) { $tmp = $encoded_data[$i]; for ($j = 0; $j < $key_length; $j++) { $tmp = chr(ord($tmp) ^ ord($key[$j])); } $result .= $tmp; } echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 13
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 17
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 13
Branch analysis from position: 36
Branch analysis from position: 13
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 17
Branch analysis from position: 32
Branch analysis from position: 17
filename:       /in/rPDOo
function name:  (null)
number of ops:  38
compiled vars:  !0 = $mustget, !1 = $key, !2 = $key_length, !3 = $encoded_data, !4 = $result, !5 = $length, !6 = $i, !7 = $tmp, !8 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Kw4SCQ%3D%3D'
    5     1        ASSIGN                                                   !1, 'frtkj'
    6     2        STRLEN                                           ~11     !1
          3        ASSIGN                                                   !2, ~11
    8     4        INIT_FCALL                                               'base64_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $13     
          7        ASSIGN                                                   !3, $13
   10     8        ASSIGN                                                   !4, ''
   12     9        STRLEN                                           ~16     !3
         10        ASSIGN                                                   !5, ~16
   13    11        ASSIGN                                                   !6, 0
         12      > JMP                                                      ->34
   14    13    >   FETCH_DIM_R                                      ~19     !3, !6
         14        ASSIGN                                                   !7, ~19
   16    15        ASSIGN                                                   !8, 0
         16      > JMP                                                      ->30
   17    17    >   INIT_FCALL                                               'chr'
         18        INIT_FCALL                                               'ord'
         19        SEND_VAR                                                 !7
         20        DO_ICALL                                         $22     
         21        INIT_FCALL                                               'ord'
         22        FETCH_DIM_R                                      ~23     !1, !8
         23        SEND_VAL                                                 ~23
         24        DO_ICALL                                         $24     
         25        BW_XOR                                           ~25     $22, $24
         26        SEND_VAL                                                 ~25
         27        DO_ICALL                                         $26     
         28        ASSIGN                                                   !7, $26
   16    29        PRE_INC                                                  !8
         30    >   IS_SMALLER                                               !8, !2
         31      > JMPNZ                                                    ~29, ->17
   20    32    >   ASSIGN_OP                                     8          !4, !7
   13    33        PRE_INC                                                  !6
         34    >   IS_SMALLER                                               !6, !5
         35      > JMPNZ                                                    ~32, ->13
   23    36    >   ECHO                                                     !4
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.43 ms | 1392 KiB | 19 Q