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 namespace Sstalle\php7cc\CompatibilityViolation; class CheckMetadata { /** ..

Decoded Output download

<?php

namespace Sstalle\php7cc\CompatibilityViolation;

class CheckMetadata
{
    /**
     * @var float
     */
    protected $startTime;

    /**
     * @var float|null
     */
    protected $endTime;

    /**
     * @var int
     */
    protected $checkedFileCount = 0;

    public function __construct()
    {
        $this->startTime = microtime(true);
    }

    public function endCheck()
    {
        $this->endTime = microtime(true);
    }

    /**
     * @return float In seconds
     */
    public function getElapsedTime()
    {
        $endTime = $this->endTime;
        if ($endTime === null) {
            $endTime = microtime(true);
        }

        return $endTime - $this->startTime;
    }

    /**
     * @return int
     */
    public function getCheckedFileCount()
    {
        return $this->checkedFileCount;
    }

    public function incrementCheckedFileCount()
    {
        ++$this->checkedFileCount;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Sstalle\php7cc\CompatibilityViolation;

class CheckMetadata
{
    /**
     * @var float
     */
    protected $startTime;

    /**
     * @var float|null
     */
    protected $endTime;

    /**
     * @var int
     */
    protected $checkedFileCount = 0;

    public function __construct()
    {
        $this->startTime = microtime(true);
    }

    public function endCheck()
    {
        $this->endTime = microtime(true);
    }

    /**
     * @return float In seconds
     */
    public function getElapsedTime()
    {
        $endTime = $this->endTime;
        if ($endTime === null) {
            $endTime = microtime(true);
        }

        return $endTime - $this->startTime;
    }

    /**
     * @return int
     */
    public function getCheckedFileCount()
    {
        return $this->checkedFileCount;
    }

    public function incrementCheckedFileCount()
    {
        ++$this->checkedFileCount;
    }
}

Function Calls

None

Variables

None

Stats

MD5 fa03adb79895fbabb89cdf8bcc96dfdc
Eval Count 0
Decode Time 94 ms