3v4l.org

run code in 300+ PHP versions simultaneously
<?php ReflectionClass::export(ReflectionParameter::class);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
Fatal error: Uncaught Error: Call to undefined method ReflectionClass::export() in /in/2JkWA:2 Stack trace: #0 {main} thrown in /in/2JkWA on line 2
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Function ReflectionClass::export() is deprecated in /in/2JkWA on line 2 Class [ <internal:Reflection> class ReflectionParameter implements Reflector ] { - Constants [0] { } - Static properties [0] { } - Static methods [1] { Method [ <internal, deprecated:Reflection> static public method export ] { - Parameters [3] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] Parameter #2 [ <optional> $return ] } } } - Properties [1] { Property [ <default> public $name ] } - Methods [21] { Method [ <internal:Reflection> final private method __clone ] { - Parameters [0] { } } Method [ <internal:Reflection, ctor> public method __construct ] { - Parameters [2] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] } } Method [ <internal:Reflection, prototype Reflector> public method __toString ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getName ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isPassedByReference ] { - Parameters [0] { } } Method [ <internal:Reflection> public method canBePassedByValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringFunction ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method hasType ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getType ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isArray ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isCallable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method allowsNull ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getPosition ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isOptional ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueAvailable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueConstant ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValueConstantName ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isVariadic ] { - Parameters [0] { } } } }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Class [ <internal:Reflection> class ReflectionParameter implements Reflector ] { - Constants [0] { } - Static properties [0] { } - Static methods [1] { Method [ <internal:Reflection, prototype Reflector> static public method export ] { - Parameters [3] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] Parameter #2 [ <optional> $return ] } } } - Properties [1] { Property [ <default> public $name ] } - Methods [21] { Method [ <internal:Reflection> final private method __clone ] { - Parameters [0] { } } Method [ <internal:Reflection, ctor> public method __construct ] { - Parameters [2] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] } } Method [ <internal:Reflection, prototype Reflector> public method __toString ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getName ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isPassedByReference ] { - Parameters [0] { } } Method [ <internal:Reflection> public method canBePassedByValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringFunction ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method hasType ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getType ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isArray ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isCallable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method allowsNull ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getPosition ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isOptional ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueAvailable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueConstant ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValueConstantName ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isVariadic ] { - Parameters [0] { } } } }
Output for 5.6.0 - 5.6.38
Class [ <internal:Reflection> class ReflectionParameter implements Reflector ] { - Constants [0] { } - Static properties [0] { } - Static methods [1] { Method [ <internal:Reflection> static public method export ] { - Parameters [3] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] Parameter #2 [ <optional> $return ] } } } - Properties [1] { Property [ <default> public $name ] } - Methods [19] { Method [ <internal:Reflection> final private method __clone ] { - Parameters [0] { } } Method [ <internal:Reflection, ctor> public method __construct ] { - Parameters [2] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] } } Method [ <internal:Reflection> public method __toString ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getName ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isPassedByReference ] { - Parameters [0] { } } Method [ <internal:Reflection> public method canBePassedByValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringFunction ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isArray ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isCallable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method allowsNull ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getPosition ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isOptional ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueAvailable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueConstant ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValueConstantName ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isVariadic ] { - Parameters [0] { } } } }
Output for 5.5.0 - 5.5.38
Class [ <internal:Reflection> class ReflectionParameter implements Reflector ] { - Constants [0] { } - Static properties [0] { } - Static methods [1] { Method [ <internal:Reflection> static public method export ] { - Parameters [3] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] Parameter #2 [ <optional> $return ] } } } - Properties [1] { Property [ <default> public $name ] } - Methods [18] { Method [ <internal:Reflection> final private method __clone ] { - Parameters [0] { } } Method [ <internal:Reflection, ctor> public method __construct ] { - Parameters [2] { Parameter #0 [ <required> $function ] Parameter #1 [ <required> $parameter ] } } Method [ <internal:Reflection> public method __toString ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getName ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isPassedByReference ] { - Parameters [0] { } } Method [ <internal:Reflection> public method canBePassedByValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringFunction ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDeclaringClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getClass ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isArray ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isCallable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method allowsNull ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getPosition ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isOptional ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueAvailable ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValue ] { - Parameters [0] { } } Method [ <internal:Reflection> public method isDefaultValueConstant ] { - Parameters [0] { } } Method [ <internal:Reflection> public method getDefaultValueConstantName ] { - Parameters [0] { } } } }
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/2JkWA on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /in/2JkWA on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /in/2JkWA on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in /in/2JkWA on line 2
Process exited with code 255.

preferences:
132.83 ms | 428 KiB | 5 Q