3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Test: string { case X = 'x'; } $x = Test::X; var_dump($x instanceof BackedEnum);

preferences:
25.56 ms | 404 KiB | 5 Q