xref: /PHP-8.4/Zend/tests/enum/backed-int.phpt (revision 269c8dac)
1--TEST--
2Int enum value
3--FILE--
4<?php
5
6enum Foo: int {
7    case Bar = 0;
8    case Baz = 1;
9}
10
11var_dump(Foo::Bar->value);
12var_dump(Foo::Baz->value);
13
14?>
15--EXPECT--
16int(0)
17int(1)
18