3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Thing { private string $state; public function __construct() { $this->state = 'foo'; } public function __set(string $property, $value) : void { $this->$property = $value; } } var_dump(new Thing());

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
160.73 ms | 2098 KiB | 9 Q