3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_this($string) { // Let's define our key here $key = adeabecc; // Our plaintext/ciphertext $text =$string; // Our output text $outText = ''; // Iterate through each character $outText = $text ^ $key; //echo 'i='.$i.', '.'j='.$j.', '.$outText{$i}.'<br />'; //for debugging return $outText; } echo xor_this("adeabecc"); //echo xor_this(12341234);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rAEfp
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'xor_this'
          1        SEND_VAL                                                 'adeabecc'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   24     4      > RETURN                                                   1

Function xor_this:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rAEfp
function name:  xor_this
number of ops:  9
compiled vars:  !0 = $string, !1 = $key, !2 = $text, !3 = $outText
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    6     1        FETCH_CONSTANT                                   ~4      'adeabecc'
          2        ASSIGN                                                   !1, ~4
    9     3        ASSIGN                                                   !2, !0
   12     4        ASSIGN                                                   !3, ''
   16     5        BW_XOR                                           ~8      !2, !1
          6        ASSIGN                                                   !3, ~8
   19     7      > RETURN                                                   !3
   20     8*     > RETURN                                                   null

End of function xor_this

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.07 ms | 1397 KiB | 14 Q