3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { private $name = 'tester'; } $class = new ReflectionClass('Test'); $methods = $class->getProperties(); var_dump($methods);
based on FI3iN
Output for 7.0.0 - 7.2.0
array(1) { [0]=> object(ReflectionProperty)#2 (2) { ["name"]=> string(4) "name" ["class"]=> string(4) "Test" } }
Output for 5.3.19 - 5.6.28
array(1) { [0]=> &object(ReflectionProperty)#2 (2) { ["name"]=> string(4) "name" ["class"]=> string(4) "Test" } }