<?php class Foo { public function bar() { print 'baz'; } public static function bazz(callable $foo) { $foo(); } } ([new Foo(), 'bar'])(); Foo::bazz([new Foo(), 'bar']);
You have javascript disabled. You will not be able to edit any code.