<?php class C { public function __construct(private int $y) {} public function do(int $x) { return $this->y + $x; } } $c = new C(2); $fn = $c->do(...); print $fn(3);
You have javascript disabled. You will not be able to edit any code.