3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i { // no promoted property function __construct(int $a); } class x implements i { // promoted property function __construct(private int $a) {} } class y extends x { // valid extension of a promoted property function __construct(int $a) {} } ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
156.38 ms | 1448 KiB | 8 Q