3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use Selami\Foundation\App; class MyClass{ public function __construct(App::class $app) { } } $class = new ReflectionClass(MyClass::class); $constructor = $class->getConstructor(); var_dump($constructor);
Output for 7.1.7
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting variable (T_VARIABLE) in /in/B4A1m on line 7
Process exited with code 255.