3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt() { $key = 'qw8Jqw8Jqw8Jqw8Js;9yzp7Jo:pJhe)]$#mj'; $text = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSRQt+QkULaAw='); $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } print xor_encrypt(); ?>

preferences:
43.61 ms | 402 KiB | 5 Q