1--TEST--
2Test typed properties with integer keys
3--FILE--
4<?php
5
6#[AllowDynamicProperties]
7class T {
8    // Class must have at least one property. Property must have a type.
9    // Empty class or untyped property removes segfault
10    public int $i;
11}
12
13$t = new T;
14// $x must be undefined or a non-string type
15$x = 1;
16$t->$x = 2;
17$t->$x--;
18
19var_dump($t);
20
21?>
22--EXPECT--
23object(T)#1 (1) {
24  ["i"]=>
25  uninitialized(int)
26  ["1"]=>
27  int(1)
28}
29