<?php error_reporting(-1); class A { function foo() { static::bar(); $this->bar(); } function bar() { var_dump($this); } } $a = new A; $a->foo();
You have javascript disabled. You will not be able to edit any code.