3v4l.org

run code in 300+ 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();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
171.21 ms | 3005 KiB | 10 Q