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

Signing you up...

Thank you for signing up!

PHP Decode

define("\x41\120\x50\116\101\x4d\105", "\115\x6f\144\x65\x72\x6e\55\120\117\123"); define(..

Decoded Output download

<?  define("APPNAME", "Modern-POS"); define("APPID", "26d9653505b49794718ac566f5f79a98"); $timezone = "America/New_York"; if (!function_exists("date_default_timezone_set")) { goto Muej9; } date_default_timezone_set($timezone); Muej9: define("ENVIRONMENT", "development"); switch (ENVIRONMENT) { case "development": error_reporting(-1); ini_set("display_errors", 1); goto nOkEw; case "production": ini_set("display_errors", 0); if (version_compare(PHP_VERSION, "5.3", ">=")) { goto tA7xg; } error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); goto TlSD2; tA7xg: error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED); TlSD2: goto nOkEw; } wFiTi: nOkEw: if (!(version_compare(phpversion(), "5.6.0", "<") == true)) { goto H1VE6; } exit("PHP5.6+ Required"); H1VE6: if (isset($_SERVER["DOCUMENT_ROOT"])) { goto AURkM; } if (!isset($_SERVER["SCRIPT_FILENAME"])) { goto jom_5; }  ?>

Did this file decode correctly?

Original Code

define("\x41\120\x50\116\101\x4d\105", "\115\x6f\144\x65\x72\x6e\55\120\117\123"); define("\101\x50\120\x49\104", "\62\66\144\71\x36\x35\x33\65\x30\65\x62\64\71\67\x39\64\67\x31\x38\141\143\x35\x36\66\x66\65\146\x37\71\141\x39\x38"); $timezone = "\101\155\x65\162\151\x63\x61\57\x4e\x65\x77\137\x59\x6f\162\153"; if (!function_exists("\x64\x61\164\145\137\x64\x65\x66\x61\x75\154\164\137\x74\151\x6d\145\172\x6f\156\145\x5f\x73\145\x74")) { goto Muej9; } date_default_timezone_set($timezone); Muej9: define("\105\x4e\126\111\x52\x4f\116\115\x45\x4e\124", "\144\x65\166\x65\154\157\160\x6d\145\156\164"); switch (ENVIRONMENT) { case "\144\145\166\145\154\x6f\160\x6d\x65\x6e\164": error_reporting(-1); ini_set("\x64\x69\x73\x70\x6c\x61\171\137\145\x72\162\157\162\163", 1); goto nOkEw; case "\160\x72\157\144\165\x63\164\x69\x6f\x6e": ini_set("\144\151\x73\x70\154\x61\x79\x5f\145\162\x72\x6f\x72\163", 0); if (version_compare(PHP_VERSION, "\x35\x2e\63", "\76\x3d")) { goto tA7xg; } error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); goto TlSD2; tA7xg: error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED); TlSD2: goto nOkEw; } wFiTi: nOkEw: if (!(version_compare(phpversion(), "\x35\x2e\66\x2e\60", "\74") == true)) { goto H1VE6; } exit("\x50\x48\120\x35\56\66\53\40\x52\145\x71\165\151\162\x65\144"); H1VE6: if (isset($_SERVER["\x44\117\103\x55\x4d\x45\116\x54\x5f\122\x4f\117\124"])) { goto AURkM; } if (!isset($_SERVER["\x53\x43\122\x49\120\124\x5f\106\x49\x4c\x45\116\101\x4d\x45"])) { goto jom_5; } 

Function Calls

None

Variables

None

Stats

MD5 53189f33c130fb6b4fb7fcf2aab90501
Eval Count 0
Decode Time 49 ms