3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); $key = 'qw8J'; $text = json_encode($data); $outText = ''; for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } echo base64_encode($outText);

preferences:
44.21 ms | 402 KiB | 5 Q