Download src/php/php-src/Zend/tests/enum/backed-int-const-expr.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 250 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/enum/backed-int-const-expr.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/enum/backed-int-const-expr.phpt
-
curl -L -o backed-int-const-expr.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/enum/backed-int-const-expr.phpt
250 Bytes
| --TEST-- | |
| Int enum const expr | |
| --FILE-- | |
| enum Foo: int { | |
| case Bar = 1 << 0; | |
| case Baz = 1 << 1; | |
| case Qux = 1 << 2; | |
| } | |
| var_dump(Foo::Bar->value); | |
| var_dump(Foo::Baz->value); | |
| var_dump(Foo::Qux->value); | |
| --EXPECT-- | |
| int(1) | |
| int(2) | |
| int(4) | |