1--TEST--
2$field in different assignments
3--FILE--
4<?php
5
6class Test {
7    public $prop {
8        set {
9            $field ??= 42;
10            var_dump($field);
11            $field += 1;
12            var_dump($field);
13            $field -= 2;
14            var_dump($field);
15            $field *= 3;
16            var_dump($field);
17            $field++;
18            var_dump($field);
19            --$field;
20            var_dump($field);
21        }
22    }
23}
24
25$test = new Test;
26$test->prop = null;
27
28?>
29--EXPECT--
30int(42)
31int(43)
32int(41)
33int(123)
34int(124)
35int(123)
36