3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $a = function (Foo $var){ // }; $function = new ReflectionFunction($a); $parameter = $function->getParameters()[0]; $parameterType = $parameter->getType(); echo $parameterType->getName();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
201.54 ms | 1994 KiB | 8 Q