3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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(); ?>
based on r1VGW
Output for 4.3.0 - 7.2.0
{"showpassword": "no", "bgcolor": "#fffff