<?php class test { protected $container; public function __construct() { } public function __get($name) { if ($name === 'container') { $a = new stdClass(); $a->test = random_bytes(7); return $a; } } public function __set($name, $value) { if ($name === 'container') { } } function blah() { $this->container = 'test'; } public function dump() { var_dump($this->container); } } $a =new test(); $a->dump(); $a->blah(); $a->dump(); var_dump($a->container);
You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).