3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new ArrayObject(); $r = new ReflectionObject($a); var_dump($r->getConstructor()->getParameters());
based on c5ukG
Output for 7.0.2 - 7.2.0
array(3) { [0]=> object(ReflectionParameter)#4 (1) { ["name"]=> string(5) "array" } [1]=> object(ReflectionParameter)#5 (1) { ["name"]=> string(8) "ar_flags" } [2]=> object(ReflectionParameter)#6 (1) { ["name"]=> string(14) "iterator_class" } }
Output for 7.0.0 - 7.0.1
array(1) { [0]=> object(ReflectionParameter)#4 (1) { ["name"]=> string(5) "array" } }
Output for 5.3.19 - 5.6.28
array(1) { [0]=> &object(ReflectionParameter)#4 (1) { ["name"]=> string(5) "array" } }