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

Signing you up...

Thank you for signing up!

PHP Decode

function get_real_ip() { if (array_key_exists("\x48\124\124\120\x5f\130\137\x46\x4f\122\x5..

Decoded Output download

<?  function get_real_ip() { if (array_key_exists("HTTP_X_FORWARDED_FOR", $_SERVER) && !empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { goto iVwAA; } return isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : ''; goto gN_I6; iVwAA: if (strpos($_SERVER["HTTP_X_FORWARDED_FOR"], ",") > 0) { goto ke_0w; } return $_SERVER["HTTP_X_FORWARDED_FOR"]; goto fL6cW; ke_0w: $addr = explode(",", $_SERVER["HTTP_X_FORWARDED_FOR"]); return trim($addr[0]); fL6cW: gN_I6: } ?>

Did this file decode correctly?

Original Code

function get_real_ip() { if (array_key_exists("\x48\124\124\120\x5f\130\137\x46\x4f\122\x57\101\x52\x44\x45\104\x5f\106\x4f\x52", $_SERVER) && !empty($_SERVER["\110\124\124\120\x5f\130\x5f\106\117\x52\127\x41\x52\104\105\104\x5f\x46\x4f\122"])) { goto iVwAA; } return isset($_SERVER["\x52\105\115\x4f\124\105\137\101\x44\x44\122"]) ? $_SERVER["\x52\105\x4d\117\124\105\137\x41\104\104\122"] : ''; goto gN_I6; iVwAA: if (strpos($_SERVER["\x48\124\x54\120\x5f\x58\x5f\106\117\x52\x57\x41\x52\x44\x45\104\x5f\x46\117\x52"], "\x2c") > 0) { goto ke_0w; } return $_SERVER["\x48\x54\124\120\137\x58\137\x46\117\x52\127\x41\x52\x44\105\104\137\x46\x4f\122"]; goto fL6cW; ke_0w: $addr = explode("\x2c", $_SERVER["\x48\x54\124\120\x5f\130\137\106\x4f\122\x57\101\x52\104\x45\x44\x5f\x46\117\122"]); return trim($addr[0]); fL6cW: gN_I6: }

Function Calls

None

Variables

None

Stats

MD5 c26165cc084d06ad36dbb02d8c37fccd
Eval Count 0
Decode Time 56 ms