Btw, pretty much nobody uses __invoke in PHP, but it is something very common in other languages. E.g. in C++ you commonly define Functor classes:

class Hasher {
unsigned long operator()(const Obj& obj1, const Obj& obj2) {
return …;
}
}