xref: /PHP-8.1/ext/opcache/tests/preload_enum.inc (revision 8834cf01)
1<?php
2
3enum MyEnum {
4    case Foo;
5    case Bar;
6}
7var_dump(MyEnum::Bar);
8
9class Test {
10    public $x = MyEnum::Bar;
11}
12new Test;
13
14if (false) {
15    enum MyEnum2 {
16        case Foo;
17    }
18}
19