#!/usr/local/bin/php coef = 2; } private $cb = [__CLASS__, 'test']; private function test($bar) { return $bar * $this->coef; } public function __invoke($baz) { return dynamize($this->cb)($baz); } } class Foo { use Wat; } function dynamize(callable $callable, $scope) { $cb = function(...$args) use ($callable) { return call_user_func_array($callable, $args); }; $cb->bindTo($scope); return $cb; } echo (new Foo)(7);