3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rm = new ReflectionMethod('ArrayIterator', '__construct'); var_dump($rm->getParameters());
based on 21G5Q
Output for 7.2.0
array(2) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(5) "array" } [1]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(8) "ar_flags" } }
Output for 7.0.2 - 7.1.10
array(3) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(5) "array" } [1]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(8) "ar_flags" } [2]=> object(ReflectionParameter)#4 (1) { ["name"]=> string(14) "iterator_class" } }
Output for 7.0.0 - 7.0.1
array(1) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(5) "array" } }
Output for 5.5.0 - 5.6.28
array(1) { [0]=> &object(ReflectionParameter)#2 (1) { ["name"]=> string(5) "array" } }