3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar(); } echo new ReflectionClass(Foo::class);
Output for 8.4.9 - 8.4.16, 8.5.1
Interface [ <user> interface Foo ] { @@ /in/00ieG 3-5 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [1] { Method [ <user> abstract public method bar ] { @@ /in/00ieG 4 - 4 } } }

preferences:
58.54 ms | 406 KiB | 5 Q