3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt() { $key = 'qw8J'; $text = json_encode(array("showpassword"=>"yes", "bgcolor"=>"#0000ff")); $outText = base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"); for($i=0;$i<32;$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } echo xor_encrypt(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5q3sE
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'xor_encrypt'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   20     3      > RETURN                                                   1

Function xor_encrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
Branch analysis from position: 11
filename:       /in/5q3sE
function name:  xor_encrypt
number of ops:  22
compiled vars:  !0 = $key, !1 = $text, !2 = $outText, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'qw8J'
    5     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        INIT_FCALL                                               'base64_decode'
          6        SEND_VAL                                                 'ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%253D'
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    9     9        ASSIGN                                                   !3, 0
         10      > JMP                                                      ->18
   10    11    >   FETCH_DIM_R                                      ~10     !1, !3
         12        STRLEN                                           ~11     !0
         13        MOD                                              ~12     !3, ~11
         14        FETCH_DIM_R                                      ~13     !0, ~12
         15        BW_XOR                                           ~14     ~10, ~13
         16        ASSIGN_OP                                     8          !2, ~14
    9    17        PRE_INC                                                  !3
         18    >   IS_SMALLER                                               !3, 32
         19      > JMPNZ                                                    ~17, ->11
   14    20    > > RETURN                                                   !2
   15    21*     > RETURN                                                   null

End of function xor_encrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.7 ms | 1399 KiB | 18 Q