3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function decrypt ($str) { if(preg_match('%^[a-zA-Z0-9/+]*={0,2}$%',$str)) { $str = base64_decode($str); if ($str != "" && $str != null && $str != false) { $decStr = ""; for ($i=0; $i < strlen($str); $i+=3) { $array[$i/3] = substr($str,$i,3); } foreach($array as $s) { echo "$s: " .$s. "\r\n"; $a = $s^192; echo "$a: " .$a . "\r\n"; $decStr .= chr($a); } return $decStr; } return false; } return false; } echo decrypt("MTI5MTY0MTczMTY5MTc0"); echo decrypt("MTQ4MTY4MTY1MTMxMTc1MTgz"); ?>
Output for 4.3.0 - 7.2.0
129: 129 65: 65 164: 164 100: 100 173: 173 109: 109 169: 169 105: 105 174: 174 110: 110 Admin148: 148 84: 84 168: 168 104: 104 165: 165 101: 101 131: 131 67: 67 175: 175 111: 111 183: 183 119: 119 TheCow