<?php class T { public $evaluated= 0; public $a= null; public function test() { $this->evaluated++; return $this; } } $t= new T(); $t->test()->a ??= "Test"; var_dump($t);
You have javascript disabled. You will not be able to edit any code.