3v4l.org

run code in 300+ PHP versions simultaneously
<?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;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
160.87 ms | 3348 KiB | 8 Q