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-- ReflectionObject::__toString() : very basic test with dynamic properties --FILE--..

Decoded Output download

--TEST--
ReflectionObject::__toString() : very basic test with dynamic properties
--FILE--
<?php

class Foo  {
    public $bar = 1;
}
$f = new foo;
$f->dynProp = 'hello';
$f->dynProp2 = 'hello again';
echo new ReflectionObject($f);

?>
--EXPECTF--
Object of class [ <user> class Foo ] {
  @@ %s 3-5

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [1] {
    Property [ public $bar = 1 ]
  }

  - Dynamic properties [2] {
    Property [ <dynamic> public $dynProp ]
    Property [ <dynamic> public $dynProp2 ]
  }

  - Methods [0] {
  }
}

Did this file decode correctly?

Original Code

--TEST--
ReflectionObject::__toString() : very basic test with dynamic properties
--FILE--
<?php

class Foo  {
    public $bar = 1;
}
$f = new foo;
$f->dynProp = 'hello';
$f->dynProp2 = 'hello again';
echo new ReflectionObject($f);

?>
--EXPECTF--
Object of class [ <user> class Foo ] {
  @@ %s 3-5

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [1] {
    Property [ public $bar = 1 ]
  }

  - Dynamic properties [2] {
    Property [ <dynamic> public $dynProp ]
    Property [ <dynamic> public $dynProp2 ]
  }

  - Methods [0] {
  }
}

Function Calls

None

Variables

None

Stats

MD5 d8f4706ac96b943d37c6027eef514a9d
Eval Count 0
Decode Time 76 ms