Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function decode($input): string { $output = ""; $index = 0; $length = strle..

Decoded Output download

<?  function decode($input): string { 
    $output = ""; 
    $index = 0; 
    $length = strlen($input); 
    while ($index < $length) { 
        if ($input[$index] == ' ') { 
            $output .= " "; 
        } else if ($input[$index] == '!') { 
            $output .= chr((ord($input[$index + 1]) - ord('A')) * 16 + (ord($input[$index + 2]) - ord('a'))); 
            $index += 2; 
        } else { 
            $output .= chr(ord($input[$index]) + 1); 
        } 
        echo $output; 
        $index++; 
    } 
    return $output; 
} 
decode('du`k!Ci`fE0fScJDAOc5B`I!Ci&aj_qq'); ?>

Did this file decode correctly?

Original Code

function decode($input): string {
    $output = "";
    $index = 0;
    $length = strlen($input);
    while ($index < $length) {
        if ($input[$index] == ' ') {
            $output .= " ";
        } else if ($input[$index] == '!') {
            $output .= chr((ord($input[$index + 1]) - ord('A')) * 16 + (ord($input[$index + 2]) - ord('a')));
            $index += 2;
        } else {
            $output .= chr(ord($input[$index]) + 1);
        }
        echo $output;
        $index++;
    }
    return $output;
}
decode('du`k!Ci`fE0fScJDAOc5B`I!Ci&aj_qq');

Function Calls

None

Variables

None

Stats

MD5 fd76d8198517d1509173a8962f5e4313
Eval Count 0
Decode Time 33 ms