1Anonymous classes
2-----
3<?php
4
5new class {};
6new class extends A implements B, C {};
7new class($a) extends A {
8    private $a;
9    public function __construct($a) {
10        $this->a = $a;
11    }
12};
13new readonly class {};
14-----
15new class
16{
17};
18new class extends A implements B, C
19{
20};
21new class($a) extends A
22{
23    private $a;
24    public function __construct($a)
25    {
26        $this->a = $a;
27    }
28};
29new readonly class
30{
31};
32