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 /** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This..
Decoded Output download
<?php
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
namespace Facebook\InstantArticles\Utils;
/*
* Sample class used for testing the Observer.
*/
class Greeting
{
private $greeting;
public function __construct($greeting)
{
$this->greeting = $greeting;
}
/**
* Says hello to someone
*/
public static function hello($name)
{
return "Hello $name";
}
/**
* Method that returns a string greeting someone
*/
public function greet($name, $middleName = null, $lastName = null)
{
$name = ($this->greeting).' '.$name;
if ($middleName) {
$name = $name.' '.$middleName;
}
if ($lastName) {
$name = $name.' '.$lastName;
}
return $name;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
namespace Facebook\InstantArticles\Utils;
/*
* Sample class used for testing the Observer.
*/
class Greeting
{
private $greeting;
public function __construct($greeting)
{
$this->greeting = $greeting;
}
/**
* Says hello to someone
*/
public static function hello($name)
{
return "Hello $name";
}
/**
* Method that returns a string greeting someone
*/
public function greet($name, $middleName = null, $lastName = null)
{
$name = ($this->greeting).' '.$name;
if ($middleName) {
$name = $name.' '.$middleName;
}
if ($lastName) {
$name = $name.' '.$lastName;
}
return $name;
}
}
Function Calls
None |
Stats
MD5 | c8431fbb4f2ebdb4665f9a92413b6baf |
Eval Count | 0 |
Decode Time | 124 ms |