3v4l.org

run code in 300+ PHP versions simultaneously
<?php class parentt { public $property1; public function __construct() { $this->property1 = 1; } } class child extends parentt { public $property2; public function __construct() { $this->property2 = $this->property1; } public function showProperty(){ return $this->property2; } } $obj = new child(); echo $obj->showProperty();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
219.82 ms | 2512 KiB | 10 Q