Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- $this not in object context --INI-- opcache.enable=1 opcache.enable_cli=1 opcache..

Decoded Output download

--TEST--
$this not in object context
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--EXTENSIONS--
opcache
--FILE--
<?php
class Foo {
    private function getConst() {
        return 42;
    }
    public function test() {
        var_dump($this->getConst());
    }
}

Foo::test();
?>
--EXPECTF--
Fatal error: Uncaught Error: Non-static method Foo::test() cannot be called statically in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d

Did this file decode correctly?

Original Code

--TEST--
$this not in object context
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--EXTENSIONS--
opcache
--FILE--
<?php
class Foo {
    private function getConst() {
        return 42;
    }
    public function test() {
        var_dump($this->getConst());
    }
}

Foo::test();
?>
--EXPECTF--
Fatal error: Uncaught Error: Non-static method Foo::test() cannot be called statically in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d

Function Calls

None

Variables

None

Stats

MD5 b682e1e149520f5a756b52c24b8779aa
Eval Count 0
Decode Time 85 ms