<?php class foo { public function __invoke() {} } function bar(callable $foo) {} var_dump(is_callable(new foo)); bar(new foo);
You have javascript disabled. You will not be able to edit any code.