Although PHP doesn’t support delegates (as in C#) the possibility to define the __invoke magic method allows us to write code as if we were using delegates in C#. The following video clip shows that.

My Talk about Decorators in PyCon IL 2025
PyCon IL 2025 took place on September 9, 2025. It was a marvelous celebration for Python developers in the Israeli community.