<?php class Foo { public $a = 1; } static $propertyFetch = (new Foo())->a; static $nullsafePropertyFetch = (new Foo())?->a; // If you comment the next line, you'll see a fatal error on line 7 above static $arrowFunction = fn() => 1;
You have javascript disabled. You will not be able to edit any code.