<?php function foo(callable $fn): void { // do something with $fn, call it maybe $fn(); } foo(static function (): void { echo 'hello world'; });
You have javascript disabled. You will not be able to edit any code.