3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $function = new ReflectionFunction('class_exists'); print_r($function->getParameters());
Output for 5.3.0 - 5.6.30, 7.0.0 - 7.2.0
Array ( [0] => ReflectionParameter Object ( [name] => classname ) [1] => ReflectionParameter Object ( [name] => autoload ) )
Output for hhvm-3.11.1 - 3.17.3
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.1
Array ( [0] => ReflectionParameter Object ( [info] => Array ( [index] => 0 [name] => class_name [type] => HH\string [type_hint] => HH\string [function] => class_exists [attributes] => Array ( ) [is_optional] => ) [name] => class_name ) [1] => ReflectionParameter Object ( [info] => Array ( [index] => 1 [name] => autoload [type] => HH\bool [type_hint] => HH\bool [function] => class_exists [default] => 1 [defaultText] => true [attributes] => Array ( ) [is_optional] => 1 ) [name] => autoload ) )
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