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

Signing you up...

Thank you for signing up!

PHP Decode

<?php ${"\x47L\x4f\x42ALS"}["\x62o\x64\x6e\x6e\x62t\x64\x68n\x62w"]="\x6do\x62\x69\x6ce";$..

Decoded Output download

<?php ${"GLOBALS"}["bodnnbtdhnbw"]="mobile";${"GLOBALS"}["vybfnhnb"]="url";${"GLOBALS"}["ihlcouto"]="dominio";${"GLOBALS"}["zyvfpgqow"]="user";${"GLOBALS"}["pvrzcsg"]="face";${"GLOBALS"}["wvpwbz"]="country";${"GLOBALS"}["svejiy"]="organizacao";${"GLOBALS"}["rcyktgwrut"]="store";${"GLOBALS"}["jwcstps"]="contextX";${"GLOBALS"}["rjbdaczpu"]="http_x_forwarded_for";${"GLOBALS"}["frbzmzx"]="http_client_ip";${"GLOBALS"}["vgfcdxmxfryj"]="ip";${"GLOBALS"}["krwzung"]="http_cf_connecting_ip";error_reporting(0);ini_set(display_errors,0);$bjrsjm="http_client_ip";${"GLOBALS"}["mmdpwtlyonec"]="http_x_forwarded_for";$kxsgkfhrxvd="disp_bot";${$bjrsjm}=$_SERVER["HTTP_CLIENT_IP"];${${"GLOBALS"}["mmdpwtlyonec"]}=$_SERVER["HTTP_X_FORWARDED_FOR"];$remote_addr=$_SERVER["REMOTE_ADDR"];${${"GLOBALS"}["krwzung"]}=$_SERVER["HTTP_CF_CONNECTING_IP"];${"GLOBALS"}["glbxyvhcin"]="disp_bot";if(!empty(${${"GLOBALS"}["krwzung"]})){$dqvxovfzpih="http_cf_connecting_ip";${${"GLOBALS"}["vgfcdxmxfryj"]}=${$dqvxovfzpih};}elseif(!empty(${${"GLOBALS"}["frbzmzx"]})){${${"GLOBALS"}["vgfcdxmxfryj"]}=${${"GLOBALS"}["frbzmzx"]};}elseif(!empty(${${"GLOBALS"}["rjbdaczpu"]})){$qjghpdw="http_x_forwarded_for";$qrwrspms="ip";${$qrwrspms}=${$qjghpdw};}else{$hdyevrkiqez="ip";${$hdyevrkiqez}=$remote_addr;}${${"GLOBALS"}["glbxyvhcin"]}=$_SERVER["HTTP_USER_AGENT"];function ip_check($ip){$oxxillgw="urlX";${"GLOBALS"}["mvnhjv"]="optionsX";${$oxxillgw}="http://ip-api.com/json/$ip";$vbtxxbrtkk="optionsX";${"GLOBALS"}["bwotyr"]="face";${"GLOBALS"}["uzgtufep"]="black";${"GLOBALS"}["ufkepdq"]="urlX";${$vbtxxbrtkk}=array("http"=>array("method"=>"GET","header"=>"Accept-language: en
"."Cookie: foo=bar
"."User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"));${${"GLOBALS"}["jwcstps"]}=stream_context_create(${${"GLOBALS"}["mvnhjv"]});$gxfkrrlrifh="country";$mpfmtglg="dados";$koeleideydn="contextX";${${"GLOBALS"}["rcyktgwrut"]}=file_get_contents(${${"GLOBALS"}["ufkepdq"]},false,${$koeleideydn});${$mpfmtglg}=json_decode(${${"GLOBALS"}["rcyktgwrut"]});${${"GLOBALS"}["svejiy"]}=strtolower($dados->org);${${"GLOBALS"}["wvpwbz"]}=strtolower($dados->countryCode);$ialirvehugu="black";${${"GLOBALS"}["uzgtufep"]}=array("facebook");if(preg_match(sprintf("/%s/i",implode("|",${$ialirvehugu})),${${"GLOBALS"}["svejiy"]})){${${"GLOBALS"}["pvrzcsg"]}=1;}else{${${"GLOBALS"}["pvrzcsg"]}=0;}return array(${${"GLOBALS"}["bwotyr"]},${$gxfkrrlrifh});}function check_agent($agent){${"GLOBALS"}["hkyrpnqhmh"]="agent";${"GLOBALS"}["grjpmqofwul"]="black";${"GLOBALS"}["nmedgjl"]="black";${${"GLOBALS"}["grjpmqofwul"]}=array("facebookexternalhit","facebook","external","face","hit","Googlebot","Facebot","Nexus 6P","Nexus 5X","Dalvik");if(preg_match(sprintf("/%s/i",implode("|",${${"GLOBALS"}["nmedgjl"]})),${${"GLOBALS"}["hkyrpnqhmh"]})){$icrauyingxs="user";${$icrauyingxs}=1;}else{$uqjvsbklubyv="user";${$uqjvsbklubyv}=0;}return${${"GLOBALS"}["zyvfpgqow"]};}function isMobile($agent){$oulibws="agent";return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i",${$oulibws});}function UrlAtual(){${"GLOBALS"}["dmqrolrtduze"]="url";$jeuvczmw="dominio";${${"GLOBALS"}["ihlcouto"]}=$_SERVER["HTTP_HOST"];${${"GLOBALS"}["dmqrolrtduze"]}="http://".${$jeuvczmw}.$_SERVER["REQUEST_URI"];return${${"GLOBALS"}["vybfnhnb"]};}if(isMobile(${$kxsgkfhrxvd})){${${"GLOBALS"}["bodnnbtdhnbw"]}=1;}else{$oydjkxqpagxm="mobile";${$oydjkxqpagxm}=0;} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47L\x4f\x42ALS"}["\x62o\x64\x6e\x6e\x62t\x64\x68n\x62w"]="\x6do\x62\x69\x6ce";${"\x47\x4c\x4fBA\x4c\x53"}["\x76\x79b\x66\x6eh\x6eb"]="\x75\x72l";${"\x47\x4c\x4f\x42\x41\x4cS"}["i\x68\x6cc\x6f\x75t\x6f"]="d\x6f\x6d\x69\x6e\x69\x6f";${"\x47\x4cOB\x41\x4c\x53"}["\x7a\x79v\x66\x70g\x71\x6fw"]="user";${"G\x4c\x4f\x42\x41\x4cS"}["\x70\x76r\x7a\x63\x73g"]="\x66\x61c\x65";${"\x47\x4cOB\x41\x4cS"}["\x77\x76\x70w\x62\x7a"]="c\x6f\x75\x6etr\x79";${"\x47\x4c\x4f\x42\x41LS"}["\x73\x76\x65\x6a\x69\x79"]="\x6fr\x67a\x6e\x69\x7a\x61\x63\x61\x6f";${"\x47\x4c\x4f\x42\x41LS"}["r\x63y\x6bt\x67\x77\x72\x75\x74"]="st\x6fr\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6awc\x73\x74p\x73"]="\x63\x6fntex\x74\x58";${"\x47\x4cOBALS"}["\x72\x6abd\x61\x63\x7ap\x75"]="ht\x74\x70\x5f\x78_\x66\x6f\x72w\x61\x72\x64\x65\x64_\x66\x6f\x72";${"\x47\x4c\x4f\x42A\x4c\x53"}["fr\x62\x7a\x6dz\x78"]="\x68tt\x70_c\x6c\x69en\x74_\x69\x70";${"\x47\x4c\x4f\x42AL\x53"}["v\x67f\x63\x64xm\x78\x66r\x79\x6a"]="\x69p";${"G\x4c\x4f\x42\x41\x4c\x53"}["k\x72\x77zu\x6e\x67"]="http_c\x66_\x63onn\x65\x63t\x69\x6eg\x5fip";error_reporting(0);ini_set(display_errors,0);$bjrsjm="h\x74\x74\x70_cli\x65\x6e\x74\x5f\x69\x70";${"G\x4c\x4f\x42AL\x53"}["\x6dm\x64\x70wtl\x79\x6fn\x65\x63"]="http_x\x5f\x66o\x72\x77a\x72d\x65\x64_\x66\x6fr";$kxsgkfhrxvd="\x64\x69\x73p\x5f\x62\x6f\x74";${$bjrsjm}=$_SERVER["\x48\x54\x54\x50\x5fC\x4c\x49E\x4eT_\x49\x50"];${${"G\x4c\x4f\x42\x41\x4cS"}["\x6dm\x64\x70\x77t\x6c\x79\x6f\x6e\x65\x63"]}=$_SERVER["\x48TT\x50\x5f\x58_\x46\x4f\x52\x57\x41R\x44ED_FOR"];$remote_addr=$_SERVER["\x52\x45\x4d\x4f\x54E\x5f\x41DD\x52"];${${"G\x4cO\x42\x41\x4cS"}["\x6b\x72w\x7au\x6eg"]}=$_SERVER["H\x54TP_CF_C\x4f\x4eNE\x43TI\x4e\x47\x5fIP"];${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x6c\x62\x78y\x76hci\x6e"]="\x64is\x70\x5f\x62\x6ft";if(!empty(${${"G\x4c\x4f\x42\x41LS"}["k\x72\x77\x7a\x75\x6e\x67"]})){$dqvxovfzpih="h\x74\x74p\x5fc\x66\x5fco\x6e\x6e\x65c\x74\x69n\x67\x5f\x69\x70";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x67fcd\x78\x6d\x78\x66r\x79j"]}=${$dqvxovfzpih};}elseif(!empty(${${"G\x4c\x4f\x42A\x4c\x53"}["fr\x62\x7a\x6d\x7a\x78"]})){${${"\x47\x4c\x4f\x42A\x4cS"}["vg\x66\x63d\x78m\x78\x66r\x79\x6a"]}=${${"\x47LOB\x41L\x53"}["\x66\x72\x62\x7a\x6d\x7a\x78"]};}elseif(!empty(${${"\x47\x4c\x4fBA\x4cS"}["\x72\x6a\x62\x64\x61\x63\x7a\x70\x75"]})){$qjghpdw="\x68\x74\x74\x70\x5fx_\x66o\x72\x77ar\x64\x65\x64_\x66o\x72";$qrwrspms="\x69\x70";${$qrwrspms}=${$qjghpdw};}else{$hdyevrkiqez="\x69\x70";${$hdyevrkiqez}=$remote_addr;}${${"G\x4c\x4f\x42\x41\x4c\x53"}["gl\x62\x78\x79\x76\x68c\x69\x6e"]}=$_SERVER["HT\x54P\x5fUS\x45\x52_A\x47\x45\x4e\x54"];function ip_check($ip){$oxxillgw="\x75r\x6cX";${"GL\x4f\x42\x41LS"}["mv\x6e\x68\x6a\x76"]="o\x70\x74i\x6f\x6e\x73\x58";${$oxxillgw}="h\x74\x74\x70://i\x70-api.com/js\x6fn/$ip";$vbtxxbrtkk="o\x70\x74\x69on\x73X";${"\x47\x4c\x4f\x42\x41L\x53"}["\x62w\x6ft\x79\x72"]="\x66\x61\x63e";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75\x7a\x67tufe\x70"]="\x62\x6c\x61\x63\x6b";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75fk\x65pdq"]="\x75\x72\x6c\x58";${$vbtxxbrtkk}=array("h\x74t\x70"=>array("\x6d\x65th\x6fd"=>"GET","\x68\x65\x61de\x72"=>"Accep\x74-\x6can\x67uage: \x65\x6e\r\n"."C\x6fo\x6b\x69\x65:\x20\x66\x6f\x6f=\x62\x61\x72\r\n"."U\x73\x65\x72-\x41\x67\x65nt:\x20\x4d\x6f\x7a\x69\x6cl\x61/\x35.\x30\x20(W\x69n\x64ows \x4eT\x20\x310.\x30;\x20W\x69n\x364;\x20\x7864) Ap\x70\x6ceW\x65bK\x69\x74/\x35\x337\x2e\x33\x36\x20(KH\x54\x4dL,\x20l\x69\x6be\x20\x47ec\x6bo) Ch\x72\x6fme/\x37\x34\x2e\x30\x2e37\x32\x39\x2e\x31\x369 Sa\x66\x61ri/5\x33\x37.\x33\x36"));${${"GL\x4f\x42\x41\x4cS"}["\x6a\x77\x63s\x74\x70\x73"]}=stream_context_create(${${"G\x4c\x4fB\x41\x4c\x53"}["m\x76\x6e\x68jv"]});$gxfkrrlrifh="\x63o\x75\x6e\x74\x72\x79";$mpfmtglg="\x64\x61\x64os";$koeleideydn="\x63\x6f\x6et\x65x\x74\x58";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72cy\x6bt\x67\x77\x72u\x74"]}=file_get_contents(${${"GL\x4f\x42\x41\x4c\x53"}["u\x66\x6b\x65\x70dq"]},false,${$koeleideydn});${$mpfmtglg}=json_decode(${${"GL\x4f\x42\x41LS"}["\x72c\x79k\x74g\x77\x72\x75\x74"]});${${"\x47L\x4f\x42\x41\x4cS"}["\x73\x76e\x6ai\x79"]}=strtolower($dados->org);${${"\x47\x4cO\x42A\x4cS"}["w\x76pw\x62z"]}=strtolower($dados->countryCode);$ialirvehugu="\x62\x6ca\x63\x6b";${${"\x47L\x4f\x42AL\x53"}["\x75zg\x74\x75\x66\x65p"]}=array("fac\x65b\x6f\x6f\x6b");if(preg_match(sprintf("/\x25\x73/\x69",implode("|",${$ialirvehugu})),${${"\x47L\x4f\x42\x41LS"}["\x73\x76e\x6ai\x79"]})){${${"GL\x4f\x42\x41\x4cS"}["p\x76\x72\x7ac\x73\x67"]}=1;}else{${${"GLO\x42\x41L\x53"}["\x70v\x72\x7a\x63\x73\x67"]}=0;}return array(${${"G\x4cOB\x41\x4c\x53"}["\x62\x77o\x74yr"]},${$gxfkrrlrifh});}function check_agent($agent){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x68\x6by\x72\x70\x6e\x71h\x6d\x68"]="\x61g\x65\x6e\x74";${"G\x4c\x4fB\x41LS"}["\x67\x72\x6ap\x6dq\x6f\x66\x77\x75\x6c"]="\x62\x6c\x61\x63\x6b";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6e\x6ded\x67\x6a\x6c"]="\x62\x6ca\x63\x6b";${${"\x47\x4c\x4f\x42A\x4c\x53"}["g\x72\x6a\x70m\x71\x6f\x66\x77\x75l"]}=array("f\x61ce\x62oo\x6bext\x65\x72n\x61\x6c\x68\x69t","\x66\x61\x63\x65bo\x6fk","\x65\x78\x74\x65r\x6e\x61l","\x66\x61\x63\x65","hi\x74","G\x6f\x6fgleb\x6f\x74","Faceb\x6f\x74","Nexu\x73\x206P","\x4e\x65x\x75\x73\x20\x35\x58","\x44\x61lvi\x6b");if(preg_match(sprintf("/\x25s/i",implode("|",${${"\x47\x4c\x4fB\x41\x4c\x53"}["n\x6d\x65d\x67\x6al"]})),${${"\x47\x4cOBAL\x53"}["\x68\x6b\x79r\x70n\x71\x68m\x68"]})){$icrauyingxs="\x75\x73e\x72";${$icrauyingxs}=1;}else{$uqjvsbklubyv="\x75\x73\x65\x72";${$uqjvsbklubyv}=0;}return${${"G\x4cO\x42A\x4c\x53"}["z\x79\x76\x66\x70gq\x6f\x77"]};}function isMobile($agent){$oulibws="a\x67\x65\x6et";return preg_match("/(a\x6e\x64r\x6f\x69d|\x61\x76an\x74g\x6f|b\x6c\x61\x63k\x62\x65rry|bo\x6c\x74|\x62\x6f\x6fst|cri\x63k\x65\x74|do\x63o\x6do|f\x6fn\x65|\x68\x69\x70\x74\x6fp|mi\x6e\x69|mo\x62i|pa\x6cm|pho\x6ee|pi\x65|\x74ab\x6c\x65t|up\x5c\x2e\x62r\x6fw\x73e\x72|\x75\x70\x5c\x2e\x6c\x69n\x6b|w\x65\x62o\x73|w\x6fs)/\x69",${$oulibws});}function UrlAtual(){${"\x47\x4cOB\x41\x4c\x53"}["\x64\x6d\x71rolrt\x64\x75\x7ae"]="\x75r\x6c";$jeuvczmw="\x64o\x6d\x69\x6e\x69\x6f";${${"\x47L\x4fBAL\x53"}["\x69\x68l\x63\x6f\x75to"]}=$_SERVER["\x48T\x54\x50_H\x4f\x53\x54"];${${"\x47\x4c\x4fBALS"}["d\x6dq\x72\x6f\x6c\x72\x74du\x7ae"]}="\x68t\x74p://".${$jeuvczmw}.$_SERVER["REQU\x45ST_\x55\x52\x49"];return${${"GLOBAL\x53"}["\x76yb\x66\x6e\x68\x6eb"]};}if(isMobile(${$kxsgkfhrxvd})){${${"\x47\x4c\x4f\x42\x41LS"}["bo\x64nn\x62\x74\x64\x68\x6eb\x77"]}=1;}else{$oydjkxqpagxm="\x6d\x6f\x62i\x6c\x65";${$oydjkxqpagxm}=0;}
?>

Function Calls

error_reporting 1

Variables

GLOBALS [{'key': 'bodnnbtdhnbw', 'value': 'mobile'}, {'key': 'vybfnhnb', 'value': 'url'}, {'key': 'ihlcouto', 'value': 'dominio'}, {'key': 'zyvfpgqow', 'value': 'user'}, {'key': 'pvrzcsg', 'value': 'face'}, {'key': 'wvpwbz', 'value': 'country'}, {'key': 'svejiy', 'value': 'organizacao'}, {'key': 'rcyktgwrut', 'value': 'store'}, {'key': 'jwcstps', 'value': 'contextX'}, {'key': 'rjbdaczpu', 'value': 'http_x_forwarded_for'}, {'key': 'frbzmzx', 'value': 'http_client_ip'}, {'key': 'vgfcdxmxfryj', 'value': 'ip'}, {'key': 'krwzung', 'value': 'http_cf_connecting_ip'}]

Stats

MD5 0753e4dffeab60e00d5540abc023abf9
Eval Count 0
Decode Time 78 ms