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 class PhpAnonym { private $field; public function __construct(int $field) ..

Decoded Output download

<?php
class PhpAnonym
{
    private $field;

    public function __construct(int $field)
    {
        $this->field = $field;
    }

    public function funcOne(): int
    {
        return $this->field;
    }

    public function funcTwo(): int
    {
        $cls = new class(42) {
            private $num;

            public function __construct(int $num)
            {
                $this->num = $num;
            }

            public function getNum(): int
            {
                return $this->num;
            }
        };

        return $cls->getNum();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
class PhpAnonym
{
    private $field;

    public function __construct(int $field)
    {
        $this->field = $field;
    }

    public function funcOne(): int
    {
        return $this->field;
    }

    public function funcTwo(): int
    {
        $cls = new class(42) {
            private $num;

            public function __construct(int $num)
            {
                $this->num = $num;
            }

            public function getNum(): int
            {
                return $this->num;
            }
        };

        return $cls->getNum();
    }
}

Function Calls

None

Variables

None

Stats

MD5 7199453218964484d5066e9ad7ce0266
Eval Count 0
Decode Time 81 ms