3v4l.org

run code in 150+ 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); // echo "chr: " .$decStr . "\r\n\r\n"; } return $decStr."\r\n\r\n"; } return false; } return false; } echo decrypt("Admin"); ?>
Output for 7.1.0
Warning: A non-numeric value encountered in /in/DppEE on line 19 �
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.0.14