3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PhpNw15Conference { } /** * Class Controller */ class Controller { /** * @return array */ public function __construct(PhpNw15Conference $conference) { $this->conference = $conference; } } /** Controller Resolver **/ $controller = 'Controller'; // Retrieved from URL + YAML config $action = 'speakersAction'; // Retrieved from URL + Yaml config $params = array(); // Retrieved from GET / POST parameters $reflector = new \ReflectionClass('Controller'); var_dump($reflector->getConstructor()->getParameters());

preferences:
43.93 ms | 402 KiB | 5 Q