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("PD9waHAKaWYoaXNzZXQoJF9HRVRbJ3Rva2VuJ10pKSB7CglDcnlwdFRva2VuOjpHZXRJbnN0YW5..

Decoded Output download

<?  base64_decode("PD9waHAKaWYoaXNzZXQoJF9HRVRbJ3Rva2VuJ10pKSB7CglDcnlwdFRva2VuOjpHZXRJbnN0YW5j 
ZSgpCgktPlBhcnNlVG9rZW4oQ3J5cHRUb2tlbjo6R2V0SW5zdGFuY2UoKS0+RGVjcnlwdCgkX0dF 
VFsndG9rZW4nXSkpOwoJaWYoQ3J5cHRUb2tlbjo6R2V0SW5zdGFuY2UoKS0+VGltZVN0YW1wQ2hl 
Y2soKSkgewoJCWlmKENyeXB0VG9rZW46OkdldEluc3RhbmNlKCktPkFkbWluQ2hlY2soKSkgewoJ 
CQlFUlJPUl9IQU5ETEU6OlNldExhc3RFcnJvcihFUlJPUl9IQU5ETEU6Okh0bWxGbGFnKCdHcmVh 
dCEgV2VsY29tZSBhZG1pbiBGTEFHLVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYJykpOwoJCX0g 
ZWxzZSB7CgkJCUVSUk9SX0hBTkRMRTo6U2V0TGFzdEVycm9yKEVSUk9SX0hBTkRMRTo6SHRtbEVy 
cm9yKCdZb3VyIGRvbnQgaGF2ZSBhZG1pbiBwcml2aWxlZ2VzLiBTb3JyeSBubyBmbGFnIGZvciB5 
b3UuJykpOwoJCX0KCX0gZWxzZSB7CgkJRVJST1JfSEFORExFOjpTZXRMYXN0RXJyb3IoRVJST1Jf 
SEFORExFOjpIdG1sRXJyb3IoJ0V4cGlyZWQgdGltZXN0YW1wLicpKTsKCX0KfSBlbHNlIHsKCUhU 
VFBfSEFORExFOjpSZWRpcmVjdCgnL2NoYWxsZW5nZXMvMTA1Lz90b2tlbj0nIC4gQ3J5cHRUb2tl 
bjo6R2V0SW5zdGFuY2UoKS0+Q3J5cHQoJ3Vz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