<?php class A { function foo() { $f = static function() { return $this; }; return $f(); } } class B extends A {} $b = new B; var_dump($b->foo());
You have javascript disabled. You will not be able to edit any code.