3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpclass P { public function test_prop($prop) { return property_exists($this, $prop); }}class Child extends P { private $prop1;}$child = new Child();var_dump($child->test_prop('prop1')); //true, as of PHP 5.3.0
Output for 5.3.0 - 5.4.32
<?phpclass P { public function test_prop($prop) { return property_exists($this, $prop); }}class Child extends P { private $prop1;}$child = new Child();var_dump($child->test_prop('prop1')); //true, as of PHP 5.3.0