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

Signing you up...

Thank you for signing up!

PHP Decode

base64_decode("PD9waHAKdXNlIEd1enpsZUh0dHBcQ2xpZW50Owp1c2UgR3V6emxlSHR0cFxQc3I3XFJlcXVlc3Q..

Decoded Output download

<?  base64_decode("PD9waHAKdXNlIEd1enpsZUh0dHBcQ2xpZW50Owp1c2UgR3V6emxlSHR0cFxQc3I3XFJlcXVlc3Q7CnVzZSB2b2t1XGhlbHBlclxIdG1sRG9tUGFyc2VyOwoKZnVuY3Rpb24gcHJpbnRzKCRtc2cpCnsKICAgIGVjaG8gIj4+ICRtc2ciIC4gUEhQX0VPTDsKfQoKZnVuY3Rpb24gZ2V0Qm9keUZyb21VUkwoJHVybCwgJGhlYWRlcnMsICRib2R5ID0gbnVsbCwgJG1ldGhvZCA9ICdHRVQnKSB7CiAgICAkY2xpZW50ID0gbmV3IFxHdXp6bGVIdHRwXENsaWVudCgpOwogICAgJHJlcXVlc3QgPSBuZXcgXEd1enpsZUh0dHBcUHNyN1xSZXF1ZXN0KCRtZXRob2QsICR1cmwsICRoZWFkZXJzLCAkYm9keSk7CiAgICAkcmVzcG9uc2UgPSAkY2xpZW50LT5zZW5kKCRyZXF1ZXN0KTsKICAgIHJldHVybiAkcmVzcG9uc2UtPmdldEJvZHkoKTsKfQoKZnVuY3Rpb24gbWFrZWRpcigkcGF0aCkKewogICAgJHBhdGhQYXJ0cyA9IGV4cGxvZGUoJy8nLCAkcGF0aCk7CiAgICBhcnJheV9wb3AoJHBhdGhQYXJ0cyk7CiAgICAkZGlyUGF0aCA9ICcnOwoKICAgIGZvcmVhY2ggKCRwYXRoUGFydHMgYXMgJHBhcnQpIHsKICAgICAgICAkZGlyUGF0aCAuPSAkcGFydCAuICcvJzsKICAgICAgICBpZiAoIWlzX2RpcigkZGlyUGF0aCkgJiYgc3RycG9zKCRwYXJ0LCAnLnBocCcpID09PSBmYWxzZSkgewogICAgICAgICAgICBwcmludHMoIkNyZWF0aW5nIGR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mxvYWQgPSBnZXRCb2R5RnJvbVVSTCgkZG93bmxvYWRMaW5rLCAkaGVhZGVycyk7CiAgICAgICAgICAgICAgICAkbmV3RmlsZUNvbnRlbnQgPSAkZG93bmxvYWQtPmdldENvbnRlbnRzKCk7CiAgICAgICAgICAgICAgICAkbmV3RmlsZSA9IHN0cl9yZXBsYWNlKFNDQU5fRElSLCBESVJfQkFDS1VQLCAkZmlsZSk7CiAgICAgICAgICAgICAgICBtYWtlZGlyKCRuZXdGaWxlKTsKICAgICAgICAgICAgICAgIHJlbmFtZSgkZmlsZSwgJG5ld0ZpbGUpOwogICAgICAgICAgICAgICAgJGZpbGVIYW5kbGUgPSBmb3BlbigkZmlsZSwgJ3cnKTsKICAgICAgICAgICAgICAgIGZ3cml0ZSgkZmlsZUhhbmRsZSwgJG5ld0ZpbGVDb250ZW50KTsKICAgICAgICAgICAgICAgIGZjbG9zZSgkZmlsZUhhbmRsZSk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBwcmludHMoIkRvZXNuJ3QgZXhpc3QgZG93bmxvYWQgbGluayBpbiBocmVmIGF0dHJpYnV0ZSIpOwogICAgICAgICAgICB9CiAgICAgICAgfWVsc2UgcHJpbnRzKCAiRG9lc24ndCBleGlzdCBkb3dubG9hZCBsaW5rIik7CiAgICB9Cn0="); ?>

Did this file decode correctly?

Original Code

base64_decode("PD9waHAKdXNlIEd1enpsZUh0dHBcQ2xpZW50Owp1c2UgR3V6emxlSHR0cFxQc3I3XFJlcXVlc3Q7CnVzZSB2b2t1XGhlbHBlclxIdG1sRG9tUGFyc2VyOwoKZnVuY3Rpb24gcHJpbnRzKCRtc2cpCnsKICAgIGVjaG8gIj4+ICRtc2ciIC4gUEhQX0VPTDsKfQoKZnVuY3Rpb24gZ2V0Qm9keUZyb21VUkwoJHVybCwgJGhlYWRlcnMsICRib2R5ID0gbnVsbCwgJG1ldGhvZCA9ICdHRVQnKSB7CiAgICAkY2xpZW50ID0gbmV3IFxH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ZSgkZmlsZUhhbmRsZSk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBwcmludHMoIkRvZXNuJ3QgZXhpc3QgZG93bmxvYWQgbGluayBpbiBocmVmIGF0dHJpYnV0ZSIpOwogICAgICAgICAgICB9CiAgICAgICAgfWVsc2UgcHJpbnRzKCAiRG9lc24ndCBleGlzdCBkb3dubG9hZCBsaW5rIik7CiAgICB9Cn0=");

Function Calls

base64_decode 1

Variables

None

Stats

MD5 c672d9ab186048fc93f85d7353b634af
Eval Count 0
Decode Time 64 ms