<?php

// Encoded string
$encoded_string = "%3QfPB6kHpiyUG3f2HYO3nGgRpeA1FcSREuyxHKEzFjuRI0jJEFOSMLEIpkNQMXOUFKIQod1Hn0q1G4S1EvSGFRE1q0H0Ib5RJCAaGgEJAwg2IlLRZAyzDH5RIjk2L0DJIMSaJjLILfqyGjc0IwAIZKqSAngJGAc1ZvIxGU10HbIIJcq2HngJBlxSoFWQJjxSIncaEgy1oIqxJ250IngTrgAJZbAyJeywZMIaIUWJrJAQMbcRFYkzHlVznJqxJmcRJxAwEgA2oIqxJ25HovkTrgAJZbAyJeywZMkzHUWJrJu0F29JnYS3ocgHpiyUG6WyovkzHhWzqBWQJjLyZnMzIUWTpn1TGcEwrDy2M5kHpiy2FkumDvuzJLcID5x2Fk9JnYS3ocgHp4ZHF29JnYS3ocgHpiyUGauGnYS3ocgHpiy2FkumDWqmqUWJZ1pHH29JnYS3o5kHB4DRH";

// Decode URL encoding
$decoded_string = urldecode($encoded_string);

// Reverse ROT13
function custom_rot13($str) {
    return strtr($str, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 'NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm');
}
$decoded_string = custom_rot13(strrev($decoded_string));

// Implement custom base64 decode
function custom_hex_decode($str) {
    return custom_hex_decode(str_replace(array('-', '_'), array('+', '/'), $str));
}

// Decode base64 once
$decoded_string = custom_hex_decode($decoded_string);

// Output the decoded string, escaped for HTML context
echo htmlspecialchars($decoded_string);

?>