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