3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { public function method(int $int, callable $callback, array $array, \stdClass $class) { } } $function = new ReflectionMethod('Some', 'method'); foreach ($function->getParameters() as $parameter) { var_dump($parameter->isCallable(), (string)$parameter->getType()); }

preferences:
46.16 ms | 402 KiB | 5 Q