3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class X<T>{ public function m(T $a, int $b){} } function f(?int $one, @int $two, int $three) {} echo "Testing getTypehintText() on f(): \n"; $r = new ReflectionFunction('f'); foreach ($r->getParameters() as $p) { echo "Parameter $".$p->getName().":"; var_dump($p->getTypehintText()); echo "\n"; } echo "Testing getTypehintText() on X::m(): \n"; $r = new ReflectionMethod('X::m'); foreach ($r->getParameters() as $p) { echo "Parameter $".$p->getName().":"; var_dump($p->getTypehintText()); echo "\n"; }

This is an error 404

There are `0` results


preferences:
142.79 ms | 1399 KiB | 7 Q