3v4l.org

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