3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new ArrayObject(); $r = new ReflectionObject($a); var_dump(get_class_methods($r->getConstructor()));
based on hbjIZ
Output for 7.0.0 - 7.2.0
array(43) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(8) "isPublic" [4]=> string(9) "isPrivate" [5]=> string(11) "isProtected" [6]=> string(10) "isAbstract" [7]=> string(7) "isFinal" [8]=> string(8) "isStatic" [9]=> string(13) "isConstructor" [10]=> string(12) "isDestructor" [11]=> string(10) "getClosure" [12]=> string(12) "getModifiers" [13]=> string(6) "invoke" [14]=> string(10) "invokeArgs" [15]=> string(17) "getDeclaringClass" [16]=> string(12) "getPrototype" [17]=> string(13) "setAccessible" [18]=> string(11) "inNamespace" [19]=> string(9) "isClosure" [20]=> string(12) "isDeprecated" [21]=> string(10) "isInternal" [22]=> string(13) "isUserDefined" [23]=> string(11) "isGenerator" [24]=> string(10) "isVariadic" [25]=> string(14) "getClosureThis" [26]=> string(20) "getClosureScopeClass" [27]=> string(13) "getDocComment" [28]=> string(10) "getEndLine" [29]=> string(12) "getExtension" [30]=> string(16) "getExtensionName" [31]=> string(11) "getFileName" [32]=> string(7) "getName" [33]=> string(16) "getNamespaceName" [34]=> string(21) "getNumberOfParameters" [35]=> string(29) "getNumberOfRequiredParameters" [36]=> string(13) "getParameters" [37]=> string(12) "getShortName" [38]=> string(12) "getStartLine" [39]=> string(18) "getStaticVariables" [40]=> string(16) "returnsReference" [41]=> string(13) "hasReturnType" [42]=> string(13) "getReturnType" }
Output for 5.6.8 - 5.6.28
array(41) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(8) "isPublic" [4]=> string(9) "isPrivate" [5]=> string(11) "isProtected" [6]=> string(10) "isAbstract" [7]=> string(7) "isFinal" [8]=> string(8) "isStatic" [9]=> string(13) "isConstructor" [10]=> string(12) "isDestructor" [11]=> string(10) "getClosure" [12]=> string(12) "getModifiers" [13]=> string(6) "invoke" [14]=> string(10) "invokeArgs" [15]=> string(17) "getDeclaringClass" [16]=> string(12) "getPrototype" [17]=> string(13) "setAccessible" [18]=> string(11) "inNamespace" [19]=> string(9) "isClosure" [20]=> string(12) "isDeprecated" [21]=> string(10) "isInternal" [22]=> string(13) "isUserDefined" [23]=> string(11) "isGenerator" [24]=> string(10) "isVariadic" [25]=> string(14) "getClosureThis" [26]=> string(20) "getClosureScopeClass" [27]=> string(13) "getDocComment" [28]=> string(10) "getEndLine" [29]=> string(12) "getExtension" [30]=> string(16) "getExtensionName" [31]=> string(11) "getFileName" [32]=> string(7) "getName" [33]=> string(16) "getNamespaceName" [34]=> string(21) "getNumberOfParameters" [35]=> string(29) "getNumberOfRequiredParameters" [36]=> string(13) "getParameters" [37]=> string(12) "getShortName" [38]=> string(12) "getStartLine" [39]=> string(18) "getStaticVariables" [40]=> string(16) "returnsReference" }
Output for 5.5.24 - 5.5.35
array(40) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(8) "isPublic" [4]=> string(9) "isPrivate" [5]=> string(11) "isProtected" [6]=> string(10) "isAbstract" [7]=> string(7) "isFinal" [8]=> string(8) "isStatic" [9]=> string(13) "isConstructor" [10]=> string(12) "isDestructor" [11]=> string(10) "getClosure" [12]=> string(12) "getModifiers" [13]=> string(6) "invoke" [14]=> string(10) "invokeArgs" [15]=> string(17) "getDeclaringClass" [16]=> string(12) "getPrototype" [17]=> string(13) "setAccessible" [18]=> string(11) "inNamespace" [19]=> string(9) "isClosure" [20]=> string(12) "isDeprecated" [21]=> string(10) "isInternal" [22]=> string(13) "isUserDefined" [23]=> string(11) "isGenerator" [24]=> string(14) "getClosureThis" [25]=> string(20) "getClosureScopeClass" [26]=> string(13) "getDocComment" [27]=> string(10) "getEndLine" [28]=> string(12) "getExtension" [29]=> string(16) "getExtensionName" [30]=> string(11) "getFileName" [31]=> string(7) "getName" [32]=> string(16) "getNamespaceName" [33]=> string(21) "getNumberOfParameters" [34]=> string(29) "getNumberOfRequiredParameters" [35]=> string(13) "getParameters" [36]=> string(12) "getShortName" [37]=> string(12) "getStartLine" [38]=> string(18) "getStaticVariables" [39]=> string(16) "returnsReference" }
Output for 5.4.9 - 5.4.45
array(39) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(8) "isPublic" [4]=> string(9) "isPrivate" [5]=> string(11) "isProtected" [6]=> string(10) "isAbstract" [7]=> string(7) "isFinal" [8]=> string(8) "isStatic" [9]=> string(13) "isConstructor" [10]=> string(12) "isDestructor" [11]=> string(10) "getClosure" [12]=> string(12) "getModifiers" [13]=> string(6) "invoke" [14]=> string(10) "invokeArgs" [15]=> string(17) "getDeclaringClass" [16]=> string(12) "getPrototype" [17]=> string(13) "setAccessible" [18]=> string(11) "inNamespace" [19]=> string(9) "isClosure" [20]=> string(12) "isDeprecated" [21]=> string(10) "isInternal" [22]=> string(13) "isUserDefined" [23]=> string(14) "getClosureThis" [24]=> string(20) "getClosureScopeClass" [25]=> string(13) "getDocComment" [26]=> string(10) "getEndLine" [27]=> string(12) "getExtension" [28]=> string(16) "getExtensionName" [29]=> string(11) "getFileName" [30]=> string(7) "getName" [31]=> string(16) "getNamespaceName" [32]=> string(21) "getNumberOfParameters" [33]=> string(29) "getNumberOfRequiredParameters" [34]=> string(13) "getParameters" [35]=> string(12) "getShortName" [36]=> string(12) "getStartLine" [37]=> string(18) "getStaticVariables" [38]=> string(16) "returnsReference" }
Output for 5.3.19 - 5.3.29
array(36) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(8) "isPublic" [4]=> string(9) "isPrivate" [5]=> string(11) "isProtected" [6]=> string(10) "isAbstract" [7]=> string(7) "isFinal" [8]=> string(8) "isStatic" [9]=> string(13) "isConstructor" [10]=> string(12) "isDestructor" [11]=> string(12) "getModifiers" [12]=> string(6) "invoke" [13]=> string(10) "invokeArgs" [14]=> string(17) "getDeclaringClass" [15]=> string(12) "getPrototype" [16]=> string(13) "setAccessible" [17]=> string(11) "inNamespace" [18]=> string(9) "isClosure" [19]=> string(12) "isDeprecated" [20]=> string(10) "isInternal" [21]=> string(13) "isUserDefined" [22]=> string(13) "getDocComment" [23]=> string(10) "getEndLine" [24]=> string(12) "getExtension" [25]=> string(16) "getExtensionName" [26]=> string(11) "getFileName" [27]=> string(7) "getName" [28]=> string(16) "getNamespaceName" [29]=> string(21) "getNumberOfParameters" [30]=> string(29) "getNumberOfRequiredParameters" [31]=> string(13) "getParameters" [32]=> string(12) "getShortName" [33]=> string(12) "getStartLine" [34]=> string(18) "getStaticVariables" [35]=> string(16) "returnsReference" }