--TEST-- Redeclare inherited private property as private. --FILE-- p . "\n"; } } class B extends A { private $p = "B::p"; function showB() { echo $this->p . "\n"; } } $a = new A; $a->showA(); $b = new B; $b->showA(); $b->showB(); ?> --EXPECTF-- A::p A::p B::p