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