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 /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * F..

Decoded Output download

<?php
/**
 * This file is part of the Cloudinary PHP package.
 *
 * (c) Cloudinary
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Cloudinary\Samples;

require_once __DIR__ . '/BaseTab.php';

// Set PHP code colors
ini_set('highlight.comment', '#008000');
ini_set('highlight.default', '#FFFFFF');
ini_set('highlight.html', '#808080');
ini_set('highlight.keyword', '#87BDFD; font-weight: bold');
ini_set('highlight.string', '#F2D864');

/**
 * Class CodeTab
 */
class CodeTab extends BaseTab
{
    protected $keepSpaces;

    /**
     * CodeTab constructor.
     * @param $code
     * @param bool $keepSpaces
     * @param string $title
     */
    public function __construct($code, $keepSpaces = true, $title = 'PHP')
    {
        parent::__construct($title);
        $this->text = $code;
        $this->isFirst = true;
        $this->keepSpaces = $keepSpaces;
    }

    public function getTabContent()
    {
        return '
        <div class="row no-gutters tab-content align-items-center rounded" >
          <div
           class="php-content ml-3 tab-pane fade show active"
            role="tabpanel"
             aria-labelledby="php-tab">
             <code>' . getColoredPhp($this->text, $this->keepSpaces) . '</code>
          </div>
        ';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * This file is part of the Cloudinary PHP package.
 *
 * (c) Cloudinary
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Cloudinary\Samples;

require_once __DIR__ . '/BaseTab.php';

// Set PHP code colors
ini_set('highlight.comment', '#008000');
ini_set('highlight.default', '#FFFFFF');
ini_set('highlight.html', '#808080');
ini_set('highlight.keyword', '#87BDFD; font-weight: bold');
ini_set('highlight.string', '#F2D864');

/**
 * Class CodeTab
 */
class CodeTab extends BaseTab
{
    protected $keepSpaces;

    /**
     * CodeTab constructor.
     * @param $code
     * @param bool $keepSpaces
     * @param string $title
     */
    public function __construct($code, $keepSpaces = true, $title = 'PHP')
    {
        parent::__construct($title);
        $this->text = $code;
        $this->isFirst = true;
        $this->keepSpaces = $keepSpaces;
    }

    public function getTabContent()
    {
        return '
        <div class="row no-gutters tab-content align-items-center rounded" >
          <div
           class="php-content ml-3 tab-pane fade show active"
            role="tabpanel"
             aria-labelledby="php-tab">
             <code>' . getColoredPhp($this->text, $this->keepSpaces) . '</code>
          </div>
        ';
    }
}

Function Calls

None

Variables

None

Stats

MD5 fd4f932ba6e28e8c3fb1ce8bbe05f2a4
Eval Count 0
Decode Time 85 ms