<?php class Test{ public $value = 123; public function __construct($a) { $this->value = (yield $a); } } $obj = new Test(456); var_dump($obj);
You have javascript disabled. You will not be able to edit any code.