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<32;$i++) { $key .= $input[$i] ^ $output[$i]; } return $key; } echo xor_encrypt(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2StF
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 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 11
Branch analysis from position: 18
Branch analysis from position: 11
filename:       /in/K2StF
function name:  xor_encrypt
number of ops:  20
compiled vars:  !0 = $key, !1 = $text, !2 = $outText, !3 = $i, !4 = $input, !5 = $output
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                                         $7      
          4        ASSIGN                                                   !1, $7
    6     5        INIT_FCALL                                               'base64_decode'
          6        SEND_VAL                                                 'ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%253D'
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !2, $9
    9     9        ASSIGN                                                   !3, 0
         10      > JMP                                                      ->16
   10    11    >   FETCH_DIM_R                                      ~12     !4, !3
         12        FETCH_DIM_R                                      ~13     !5, !3
         13        BW_XOR                                           ~14     ~12, ~13
         14        ASSIGN_OP                                     8          !0, ~14
    9    15        PRE_INC                                                  !3
         16    >   IS_SMALLER                                               !3, 32
         17      > JMPNZ                                                    ~17, ->11
   14    18    > > RETURN                                                   !0
   15    19*     > RETURN                                                   null

End of function xor_encrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.06 ms | 1390 KiB | 18 Q