<?php class X{ protected $a; public function __construct(){ $this->bar(); $this->a = 42; } public function bar(){ var_dump($a); } } $x = new X();
You have javascript disabled. You will not be able to edit any code.