1--TEST--
2GH-15187: Crash in hooked iterators on properties array without dynamic properties
3--FILE--
4<?php
5
6class Test {
7    public int $prop { set => $value; }
8}
9
10$test = new Test();
11var_dump($test);
12foreach ($test as $key => $value) {
13    var_dump($key, $value);
14}
15
16?>
17--EXPECTF--
18object(Test)#%d (0) {
19  ["prop"]=>
20  uninitialized(int)
21}
22