3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SkipAssignInConstruct2 { /** * @var bool */ public $property; public function __construct(bool $property) { $this->property = $property; } } class Foo { use SkipAssignInConstruct2; public function __construct() { } } var_dump((new Foo())->property);

preferences:
30.01 ms | 476 KiB | 5 Q