3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum TestEnum: string { case X = 'x'; } var_dump(\is_a(TestEnum::class, \StringBackedEnum::class, true)); var_dump(\is_a(TestEnum::class, \BackedEnum::class, true));
Output for 8.1.17 - 8.1.30, 8.2.4 - 8.2.25, 8.3.5 - 8.3.13
bool(false) bool(true)

preferences:
47.46 ms | 406 KiB | 5 Q