3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1395 KiB | 17 Q