3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $function = new ReflectionFunction('class_exists'); print_r($function->getParameters());
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Array ( [0] => ReflectionParameter Object ( [name] => classname ) [1] => ReflectionParameter Object ( [name] => autoload ) )
Output for hhvm-3.12.0
Array ( [0] => ReflectionParameter Object ( [info] => Array ( [index] => 0 [name] => class_name [type] => HH\string [type_hint] => HH\string [type_hint_builtin] => 1 [function] => class_exists [type_hint_nullable] => [attributes] => Array ( ) [is_optional] => ) [name] => class_name [paramTypeInfo] => Array ( [name] => HH\string [nullable] => [builtin] => 1 ) ) [1] => ReflectionParameter Object ( [info] => Array ( [index] => 1 [name] => autoload [type] => HH\bool [type_hint] => HH\bool [type_hint_builtin] => 1 [function] => class_exists [type_hint_nullable] => [default] => 1 [defaultText] => true [attributes] => Array ( ) [is_optional] => 1 ) [name] => autoload [paramTypeInfo] => Array ( [name] => HH\bool [nullable] => [builtin] => 1 ) ) )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.17
Array ( )
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/UFcGq on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/UFcGq on line 3