3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IBreakThings { private $mine; public function __set(string $property, $value) : void { $this->$property = $value; } } class IExtendBrokenThings extends IBreakThings { private $actuallyMine; } $instance = new IExtendBrokenThings(); $instance->mine = 'yep'; $instance->actuallyMine = 'ha!';

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
150.95 ms | 2250 KiB | 10 Q