<?php class SomeTheoreticalYieldExample { public $value; public function __construct() { $this->value = 'Some value'; yield 1; } } $it = new SomeTheoreticalYieldExample(); var_dump($it->value); // PHP 8.5 surprise, it is NULL ?>
You have javascript disabled. You will not be able to edit any code.