<?php class A { function __invoke($i) { return $i *2; } } $a = new A(); function test(\Closure $b) { var_dump($b(5)); } test($a);
You have javascript disabled. You will not be able to edit any code.