3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { public function Bar() {} } $ref = new ReflectionClass(Foo::class); var_dump($ref->getModifiers(),Reflection::getModifierNames($ref->getModifiers()));
Output for 7.4.0 - 7.4.13, 8.0.0 - 8.0.3
int(64) array(1) { [0]=> string(8) "abstract" }
Output for 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.28
int(32) array(1) { [0]=> string(8) "abstract" }