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