<?php class Foo { private $callable; public function __construct() { $this->callable = function () { echo "hello world!"; }; } public function yesItDoes() { ($this->callable)(); } } (new Foo)->yesItDoes();
You have javascript disabled. You will not be able to edit any code.