3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } function xor_decrypt($in) { $key = '<derosnec>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } echo xor_decrypt("UK\"H+O%pSWh]UZ-T%UhR^,^ÿÿÿÜ0");
based on 2rHNI
Output for 4.3.0 - 7.2.0
i/Gl'Xla,?w<j9 >kfIwj;Vm0aVnu;^xb0����ڱ�C