3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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());
based on TpcZ0
Output for 7.0.0 - 7.2.0
array(1) { [0]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(10) "conference" } }
Output for 5.3.18 - 5.6.21
array(1) { [0]=> &object(ReflectionParameter)#3 (1) { ["name"]=> string(10) "conference" } }