1--TEST--
2Closure in property initializer
3--FILE--
4<?php
5
6class C {
7    public Closure $d = static function () {
8        echo "called", PHP_EOL;
9    };
10}
11
12$c = new C();
13var_dump($c->d);
14($c->d)();
15
16
17?>
18--EXPECTF--
19object(Closure)#%d (3) {
20  ["name"]=>
21  string(%d) "{closure:%s:%d}"
22  ["file"]=>
23  string(%d) "%s"
24  ["line"]=>
25  int(4)
26}
27called
28