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 $ch=1; class Employee { var $code; var $nme; var $des; function Emplo..

Decoded Output download

<?php 
$ch=1; 
 
class Employee 
{ 
	var $code; 
	var $nme; 
	var $des; 
 
	function Employee($code,$nme,$des) 
	{ 
		$this->code=$code; 
		$this->nme=$nme; 
		$this->des=$des; 
	} 
 
	function getcode() 
	{ 
		return $this->code; 
	} 
 
	function display() 
	{ 
		printf("Code= %d
 Name= %s
Designation= %s",$this->code,$this->nme,$this->des); 
	} 
 
	function disp() 
	{ 
		echo "<tr>"; 
		echo "<td>$this->code"; 
		echo "<td>$this->nme"; 
		echo "<td>$this->des"; 
	}	 
} 
 
 
 
               $e[0]=new Emp_sal(4,"sajith","manager",3212,"12/10/2010",5000,19000,200); 
$e[1]=new Emp_sal(2,"Mehul","driver",2234,"24/11/2011",2000,8000,200); 
$e[2]=new Emp_sal(1,"Mohsin","GrandMaster Mithun Da",1223,"12/10/2009",4000,20000,100); 
$e[3]=new Emp_sal(3,"Mohemmad","Marcelo Maggi",22314,"12/4/2008",3000,50000,200); 
$temp=new Emp_sal(0," "," ",0," ",0,0,0); 
//for($i=0;$i<4;$i++) 
echo "Master table<br>"; 
	       echo "<table cellpadding=2 border=2>"; 
	       echo "<tr>"; 
	       echo "<th>Code</th>"; 
	       echo "<th>Name</th>"; 
	       echo "<th>Designation</th>"; 
	       echo "<th>Accno</th>"; 
	       echo "<th>Join_date</th>"; 
	       echo "<th>Basic_pay</th>"; 
	       echo "<th>Earning</th>"; 
	       echo "<th>Deduction</th></tr>"; 
	       for($i=0;$i<sizeof($e);$i++) 
	       { 
		       $e[$i]->disp(); 
	       } 
	       echo "</table>"; 
 ?>

Did this file decode correctly?

Original Code

<?php
$ch=1;

class Employee
{
	var $code;
	var $nme;
	var $des;

	function Employee($code,$nme,$des)
	{
		$this->code=$code;
		$this->nme=$nme;
		$this->des=$des;
	}

	function getcode()
	{
		return $this->code;
	}

	function display()
	{
		printf("Code= %d\n Name= %s\nDesignation= %s",$this->code,$this->nme,$this->des);
	}

	function disp()
	{
		echo "<tr>";
		echo "<td>$this->code";
		echo "<td>$this->nme";
		echo "<td>$this->des";
	}	
}



               $e[0]=new Emp_sal(4,"sajith","manager",3212,"12/10/2010",5000,19000,200);
$e[1]=new Emp_sal(2,"Mehul","driver",2234,"24/11/2011",2000,8000,200);
$e[2]=new Emp_sal(1,"Mohsin","GrandMaster Mithun Da",1223,"12/10/2009",4000,20000,100);
$e[3]=new Emp_sal(3,"Mohemmad","Marcelo Maggi",22314,"12/4/2008",3000,50000,200);
$temp=new Emp_sal(0," "," ",0," ",0,0,0);
//for($i=0;$i<4;$i++)
echo "Master table<br>";
	       echo "<table cellpadding=2 border=2>";
	       echo "<tr>";
	       echo "<th>Code</th>";
	       echo "<th>Name</th>";
	       echo "<th>Designation</th>";
	       echo "<th>Accno</th>";
	       echo "<th>Join_date</th>";
	       echo "<th>Basic_pay</th>";
	       echo "<th>Earning</th>";
	       echo "<th>Deduction</th></tr>";
	       for($i=0;$i<sizeof($e);$i++)
	       {
		       $e[$i]->disp();
	       }
	       echo "</table>";

Function Calls

None

Variables

$ch 1

Stats

MD5 73e8731054a30cf19a45deaa1f6aa6bd
Eval Count 0
Decode Time 91 ms