3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface InterfaceWithMethod { function foo(); } trait SimpleTrait { function foo() { return __CLASS__; } } class ClassWithTraitAndInterface implements InterfaceWithMethod { use SimpleTrait; } echo ReflectionMethod::export(ClassWithTraitAndInterface::class, 'foo'); echo (new ReflectionMethod(ClassWithTraitAndInterface::class, 'foo'))->getPrototype();

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
1548.74 ms | 514 KiB | 22 Q