1--TEST--
2JIT: FETCH_OBJ 004
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11#[AllowDynamicProperties]
12class C {
13    var $a = 0;
14}
15function foo() {
16    $x = new C;
17    $x->a = 1;
18    unset($x->a);
19    $x->a = 3;
20    var_dump($x);
21}
22function bar() {
23    $x = new C;
24    $x->a = 1;
25    $x->b = 2;
26    unset($x->a);
27    $x->a = 3;
28    var_dump($x);
29}
30foo();
31bar();
32?>
33--EXPECT--
34object(C)#1 (1) {
35  ["a"]=>
36  int(3)
37}
38object(C)#1 (2) {
39  ["a"]=>
40  int(3)
41  ["b"]=>
42  int(2)
43}
44