1Readonly class
2-----
3<?php
4
5readonly class A {
6}
7-----
8array(
9    0: Stmt_Class(
10        attrGroups: array(
11        )
12        flags: READONLY (64)
13        name: Identifier(
14            name: A
15        )
16        extends: null
17        implements: array(
18        )
19        stmts: array(
20        )
21    )
22)
23-----
24<?php
25
26final readonly class A {
27}
28-----
29array(
30    0: Stmt_Class(
31        attrGroups: array(
32        )
33        flags: FINAL | READONLY (96)
34        name: Identifier(
35            name: A
36        )
37        extends: null
38        implements: array(
39        )
40        stmts: array(
41        )
42    )
43)
44