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<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } echo strlen('ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi'); ?>

preferences:
32.75 ms | 402 KiB | 5 Q