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

Signing you up...

Thank you for signing up!

PHP Decode

$user_agent = getenv("HTTP_USER_AGENT"); if (strpos($user_agent, "Win") !== FALSE) $os..

Decoded Output download

<?  $user_agent = getenv("HTTP_USER_AGENT"); 
 
	if (strpos($user_agent, "Win") !== FALSE) $os = "Windows"; 
	else if (strpos($user_agent, "Mac") !== FALSE) $os = "Mac"; 
	echo $os; ?>

Did this file decode correctly?

Original Code

$user_agent = getenv("HTTP_USER_AGENT");

	if (strpos($user_agent, "Win") !== FALSE) $os = "Windows";
	else if (strpos($user_agent, "Mac") !== FALSE) $os = "Mac";
	echo $os;

Function Calls

getenv 1

Variables

None

Stats

MD5 3e6021a9e81a63b27a6979bd68e4a751
Eval Count 0
Decode Time 93 ms