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 .= $text[$i] ^ $outText[$i]; } return $key; } echo xor_encrypt(); ?>

preferences:
42.31 ms | 402 KiB | 5 Q