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));
based on RYk9K
Output for 7.2.0
array(53) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(7) "getName" [4]=> string(10) "isInternal" [5]=> string(13) "isUserDefined" [6]=> string(11) "isAnonymous" [7]=> string(14) "isInstantiable" [8]=> string(11) "isCloneable" [9]=> string(11) "getFileName" [10]=> string(12) "getStartLine" [11]=> string(10) "getEndLine" [12]=> string(13) "getDocComment" [13]=> string(14) "getConstructor" [14]=> string(9) "hasMethod" [15]=> string(9) "getMethod" [16]=> string(10) "getMethods" [17]=> string(11) "hasProperty" [18]=> string(11) "getProperty" [19]=> string(13) "getProperties" [20]=> string(11) "hasConstant" [21]=> string(12) "getConstants" [22]=> string(22) "getReflectionConstants" [23]=> string(11) "getConstant" [24]=> string(21) "getReflectionConstant" [25]=> string(13) "getInterfaces" [26]=> string(17) "getInterfaceNames" [27]=> string(11) "isInterface" [28]=> string(9) "getTraits" [29]=> string(13) "getTraitNames" [30]=> string(15) "getTraitAliases" [31]=> string(7) "isTrait" [32]=> string(10) "isAbstract" [33]=> string(7) "isFinal" [34]=> string(12) "getModifiers" [35]=> string(10) "isInstance" [36]=> string(11) "newInstance" [37]=> string(29) "newInstanceWithoutConstructor" [38]=> string(15) "newInstanceArgs" [39]=> string(14) "getParentClass" [40]=> string(12) "isSubclassOf" [41]=> string(19) "getStaticProperties" [42]=> string(22) "getStaticPropertyValue" [43]=> string(22) "setStaticPropertyValue" [44]=> string(20) "getDefaultProperties" [45]=> string(10) "isIterable" [46]=> string(13) "isIterateable" [47]=> string(19) "implementsInterface" [48]=> string(12) "getExtension" [49]=> string(16) "getExtensionName" [50]=> string(11) "inNamespace" [51]=> string(16) "getNamespaceName" [52]=> string(12) "getShortName" }
Output for 7.1.0 - 7.1.10
array(52) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(7) "getName" [4]=> string(10) "isInternal" [5]=> string(13) "isUserDefined" [6]=> string(11) "isAnonymous" [7]=> string(14) "isInstantiable" [8]=> string(11) "isCloneable" [9]=> string(11) "getFileName" [10]=> string(12) "getStartLine" [11]=> string(10) "getEndLine" [12]=> string(13) "getDocComment" [13]=> string(14) "getConstructor" [14]=> string(9) "hasMethod" [15]=> string(9) "getMethod" [16]=> string(10) "getMethods" [17]=> string(11) "hasProperty" [18]=> string(11) "getProperty" [19]=> string(13) "getProperties" [20]=> string(11) "hasConstant" [21]=> string(12) "getConstants" [22]=> string(22) "getReflectionConstants" [23]=> string(11) "getConstant" [24]=> string(21) "getReflectionConstant" [25]=> string(13) "getInterfaces" [26]=> string(17) "getInterfaceNames" [27]=> string(11) "isInterface" [28]=> string(9) "getTraits" [29]=> string(13) "getTraitNames" [30]=> string(15) "getTraitAliases" [31]=> string(7) "isTrait" [32]=> string(10) "isAbstract" [33]=> string(7) "isFinal" [34]=> string(12) "getModifiers" [35]=> string(10) "isInstance" [36]=> string(11) "newInstance" [37]=> string(29) "newInstanceWithoutConstructor" [38]=> string(15) "newInstanceArgs" [39]=> string(14) "getParentClass" [40]=> string(12) "isSubclassOf" [41]=> string(19) "getStaticProperties" [42]=> string(22) "getStaticPropertyValue" [43]=> string(22) "setStaticPropertyValue" [44]=> string(20) "getDefaultProperties" [45]=> string(13) "isIterateable" [46]=> string(19) "implementsInterface" [47]=> string(12) "getExtension" [48]=> string(16) "getExtensionName" [49]=> string(11) "inNamespace" [50]=> string(16) "getNamespaceName" [51]=> string(12) "getShortName" }
Output for 7.0.0 - 7.0.20
array(50) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(7) "getName" [4]=> string(10) "isInternal" [5]=> string(13) "isUserDefined" [6]=> string(11) "isAnonymous" [7]=> string(14) "isInstantiable" [8]=> string(11) "isCloneable" [9]=> string(11) "getFileName" [10]=> string(12) "getStartLine" [11]=> string(10) "getEndLine" [12]=> string(13) "getDocComment" [13]=> string(14) "getConstructor" [14]=> string(9) "hasMethod" [15]=> string(9) "getMethod" [16]=> string(10) "getMethods" [17]=> string(11) "hasProperty" [18]=> string(11) "getProperty" [19]=> string(13) "getProperties" [20]=> string(11) "hasConstant" [21]=> string(12) "getConstants" [22]=> string(11) "getConstant" [23]=> string(13) "getInterfaces" [24]=> string(17) "getInterfaceNames" [25]=> string(11) "isInterface" [26]=> string(9) "getTraits" [27]=> string(13) "getTraitNames" [28]=> string(15) "getTraitAliases" [29]=> string(7) "isTrait" [30]=> string(10) "isAbstract" [31]=> string(7) "isFinal" [32]=> string(12) "getModifiers" [33]=> string(10) "isInstance" [34]=> string(11) "newInstance" [35]=> string(29) "newInstanceWithoutConstructor" [36]=> string(15) "newInstanceArgs" [37]=> string(14) "getParentClass" [38]=> string(12) "isSubclassOf" [39]=> string(19) "getStaticProperties" [40]=> string(22) "getStaticPropertyValue" [41]=> string(22) "setStaticPropertyValue" [42]=> string(20) "getDefaultProperties" [43]=> string(13) "isIterateable" [44]=> string(19) "implementsInterface" [45]=> string(12) "getExtension" [46]=> string(16) "getExtensionName" [47]=> string(11) "inNamespace" [48]=> string(16) "getNamespaceName" [49]=> string(12) "getShortName" }
Output for 5.4.9 - 5.6.28
array(49) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(7) "getName" [4]=> string(10) "isInternal" [5]=> string(13) "isUserDefined" [6]=> string(14) "isInstantiable" [7]=> string(11) "isCloneable" [8]=> string(11) "getFileName" [9]=> string(12) "getStartLine" [10]=> string(10) "getEndLine" [11]=> string(13) "getDocComment" [12]=> string(14) "getConstructor" [13]=> string(9) "hasMethod" [14]=> string(9) "getMethod" [15]=> string(10) "getMethods" [16]=> string(11) "hasProperty" [17]=> string(11) "getProperty" [18]=> string(13) "getProperties" [19]=> string(11) "hasConstant" [20]=> string(12) "getConstants" [21]=> string(11) "getConstant" [22]=> string(13) "getInterfaces" [23]=> string(17) "getInterfaceNames" [24]=> string(11) "isInterface" [25]=> string(9) "getTraits" [26]=> string(13) "getTraitNames" [27]=> string(15) "getTraitAliases" [28]=> string(7) "isTrait" [29]=> string(10) "isAbstract" [30]=> string(7) "isFinal" [31]=> string(12) "getModifiers" [32]=> string(10) "isInstance" [33]=> string(11) "newInstance" [34]=> string(29) "newInstanceWithoutConstructor" [35]=> string(15) "newInstanceArgs" [36]=> string(14) "getParentClass" [37]=> string(12) "isSubclassOf" [38]=> string(19) "getStaticProperties" [39]=> string(22) "getStaticPropertyValue" [40]=> string(22) "setStaticPropertyValue" [41]=> string(20) "getDefaultProperties" [42]=> string(13) "isIterateable" [43]=> string(19) "implementsInterface" [44]=> string(12) "getExtension" [45]=> string(16) "getExtensionName" [46]=> string(11) "inNamespace" [47]=> string(16) "getNamespaceName" [48]=> string(12) "getShortName" }
Output for 5.3.19 - 5.3.29
array(43) { [0]=> string(6) "export" [1]=> string(11) "__construct" [2]=> string(10) "__toString" [3]=> string(7) "getName" [4]=> string(10) "isInternal" [5]=> string(13) "isUserDefined" [6]=> string(14) "isInstantiable" [7]=> string(11) "getFileName" [8]=> string(12) "getStartLine" [9]=> string(10) "getEndLine" [10]=> string(13) "getDocComment" [11]=> string(14) "getConstructor" [12]=> string(9) "hasMethod" [13]=> string(9) "getMethod" [14]=> string(10) "getMethods" [15]=> string(11) "hasProperty" [16]=> string(11) "getProperty" [17]=> string(13) "getProperties" [18]=> string(11) "hasConstant" [19]=> string(12) "getConstants" [20]=> string(11) "getConstant" [21]=> string(13) "getInterfaces" [22]=> string(17) "getInterfaceNames" [23]=> string(11) "isInterface" [24]=> string(10) "isAbstract" [25]=> string(7) "isFinal" [26]=> string(12) "getModifiers" [27]=> string(10) "isInstance" [28]=> string(11) "newInstance" [29]=> string(15) "newInstanceArgs" [30]=> string(14) "getParentClass" [31]=> string(12) "isSubclassOf" [32]=> string(19) "getStaticProperties" [33]=> string(22) "getStaticPropertyValue" [34]=> string(22) "setStaticPropertyValue" [35]=> string(20) "getDefaultProperties" [36]=> string(13) "isIterateable" [37]=> string(19) "implementsInterface" [38]=> string(12) "getExtension" [39]=> string(16) "getExtensionName" [40]=> string(11) "inNamespace" [41]=> string(16) "getNamespaceName" [42]=> string(12) "getShortName" }