<?php #[Attribute] readonly class Foo { public function __construct(public Closure $callable) {} } // Allowed #[Foo(static function () {})] class Example {} // Not allowed #[Foo(static fn () => null)] class Example2 {}
You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).