3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh class X{} function f(asdada $x, X $two, ?X $three, @X four) {} $r = new ReflectionFunction('f'); foreach ($r->getParameters() as $p) { var_dump($p->getTypehintText(), $p->getTypeText()); echo "\n\n"; }
based on ANAES
Output for 5.4.0 - 5.4.35
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/tSA8b on line 2
Process exited with code 255.