3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $r = new ReflectionFunction('trim'); var_dump($r->getParameters());
Output for 7.0.0 - 7.1.7
array(2) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(3) "str" } [1]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(14) "character_mask" } }
Output for 5.2.0 - 5.6.28
array(2) { [0]=> &object(ReflectionParameter)#2 (1) { ["name"]=> string(3) "str" } [1]=> &object(ReflectionParameter)#3 (1) { ["name"]=> string(14) "character_mask" } }
Output for 5.0.0 - 5.1.6
array(0) { }
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/YHfTo on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/YHfTo on line 2