<?php class Foo { readonly int $y; public function test(&$x) { $x = 4; } public function init() { $this->test($this->y); } } $a = new Foo(); $a->init(); var_dump($a);
You have javascript disabled. You will not be able to edit any code.