1--TEST--
2__PROPERTY__ magic constant
3--FILE--
4<?php
5
6class Test {
7    public $prop {
8        get => __PROPERTY__;
9        set { var_dump(__PROPERTY__); }
10    }
11
12    private $privProp {
13        get => __PROPERTY__;
14    }
15
16    public function test() {
17        var_dump(__PROPERTY__);
18        var_dump($this->privProp);
19    }
20}
21
22$test = new Test;
23var_dump($test->prop);
24$test->prop = 'foo';
25$test->test();
26var_dump(__PROPERTY__);
27
28?>
29--EXPECT--
30string(4) "prop"
31string(4) "prop"
32string(0) ""
33string(8) "privProp"
34string(0) ""
35