3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SafeAccess { public function __set($name, $value) { throw new \Exception("Property [$name] doesn't exist for class [".get_class($this)."] so can't set it"); } public function __get($name) { throw new \Exception("Property [$name] doesn't exist for class [".get_class($this)."] so can't get it"); } public function __call($name, $arguments) { throw new \Exception("Method [$name] doesn't exist for class."); } } class foo { use SafeAccess; public function __construct() { $this->uwotm8 = true; } } new foo();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
193.17 ms | 2453 KiB | 10 Q