3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php Reflection::export(new ReflectionClass('Reflection'));
based on 49v7A
Output for 5.2.3 - 5.6.21, 7.0.0 - 7.1.0
Class [ <internal:Reflection> class Reflection ] { - Constants [0] { } - Static properties [0] { } - Static methods [2] { Method [ <internal:Reflection> static public method getModifierNames ] { - Parameters [1] { Parameter #0 [ <required> $modifiers ] } } Method [ <internal:Reflection> static public method export ] { - Parameters [2] { Parameter #0 [ <required> Reflector $reflector ] Parameter #1 [ <optional> $return ] } } } - Properties [0] { } - Methods [0] { } }
Output for hhvm-3.12.0
Class [ <internal:> class Reflection ] { - Constants [0] { } - Static properties [0] { } - Static methods [2] { Method [ <internal> static public method export ] { - Parameters [2] { Parameter #0 [ <required> Reflector $refl ] Parameter #1 [ <optional> $return = false ] } } Method [ <internal> static public method getModifierNames ] { - Parameters [1] { Parameter #0 [ <required> $modifiers ] } } } - Properties [0] { } - Methods [0] { } }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.0 - 5.2.2
Class [ <internal:Reflection> class Reflection ] { - Constants [0] { } - Static properties [0] { } - Static methods [2] { Method [ <internal> static public method getModifierNames ] { - Parameters [1] { Parameter #0 [ <required> $modifiers ] } } Method [ <internal> static public method export ] { - Parameters [2] { Parameter #0 [ <required> Reflector $reflector ] Parameter #1 [ <optional> $return ] } } } - Properties [0] { } - Methods [0] { } }
Output for 5.1.2 - 5.1.6
Class [ <internal:Reflection> class Reflection ] { - Constants [0] { } - Static properties [0] { } - Static methods [2] { Method [ <internal> static public method getModifierNames ] { } Method [ <internal> static public method export ] { } } - Properties [0] { } - Methods [0] { } }
Output for 5.0.0 - 5.1.1
Class [ <internal> class Reflection ] { - Constants [0] { } - Static properties [0] { } - Static methods [2] { Method [ <internal> static public method getModifierNames ] { } Method [ <internal> static public method export ] { } } - Properties [0] { } - Methods [0] { } }
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'reflection' in /in/UvnaU on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'reflection' in /in/UvnaU on line 2