3v4l.org

run code in 200+ PHP versions simultaneously
<?php abstract class Foo { public function Bar() {} } $ref = new ReflectionClass(Foo::class); var_dump($ref->getModifiers(),Reflection::getModifierNames($ref->getModifiers()));
based on 2Ua2s
Output for 7.4.0
int(64) array(1) { [0]=> string(8) "abstract" }
Output for 7.1.26 - 7.3.12
int(32) array(1) { [0]=> string(8) "abstract" }