3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt() { $key = ''; $text = json_encode(array("showpassword"=>"no", "bgcolor"=>"#0000ff")); $outText = base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"); for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } echo strlen('ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gk3J2
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     32
   20     1      > 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 = 21, Position 2 = 11
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 11
Branch analysis from position: 21
Branch analysis from position: 11
filename:       /in/Gk3J2
function name:  xor_encrypt
number of ops:  23
compiled vars:  !0 = $key, !1 = $text, !2 = $outText, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, ''
    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    >   STRLEN                                           ~17     !1
         19        IS_SMALLER                                               !3, ~17
         20      > JMPNZ                                                    ~18, ->11
   14    21    > > RETURN                                                   !2
   15    22*     > RETURN                                                   null

End of function xor_encrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.55 ms | 1396 KiB | 17 Q