3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($in) { return $in; } $inParam = (new ReflectionParameter('foo', 'in')); echo "Param: ", $inParam, PHP_EOL, "Type: ", $inParam->getType();
based on t2V2M
Output for hhvm-3.15.4, 7.0.0 - 7.3.1
Param: Parameter #0 [ <required> $in ] Type:
Output for 5.6.0 - 5.6.30
Param: Parameter #0 [ <required> $in ] Type: Fatal error: Call to undefined method ReflectionParameter::getType() in /in/qdupZ on line 8
Process exited with code 255.