3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayObject(); $r = new ReflectionObject($a); var_dump(get_class_methods($r));
Output for git.master, git.master_jit, rfc.property-hooks
array(55) { [0]=> string(11) "__construct" [1]=> string(10) "__toString" [2]=> string(7) "getName" [3]=> string(10) "isInternal" [4]=> string(13) "isUserDefined" [5]=> string(11) "isAnonymous" [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(22) "getReflectionConstants" [22]=> string(11) "getConstant" [23]=> string(21) "getReflectionConstant" [24]=> string(13) "getInterfaces" [25]=> string(17) "getInterfaceNames" [26]=> string(11) "isInterface" [27]=> string(9) "getTraits" [28]=> string(13) "getTraitNames" [29]=> string(15) "getTraitAliases" [30]=> string(7) "isTrait" [31]=> string(6) "isEnum" [32]=> string(10) "isAbstract" [33]=> string(7) "isFinal" [34]=> string(10) "isReadOnly" [35]=> string(12) "getModifiers" [36]=> string(10) "isInstance" [37]=> string(11) "newInstance" [38]=> string(29) "newInstanceWithoutConstructor" [39]=> string(15) "newInstanceArgs" [40]=> string(14) "getParentClass" [41]=> string(12) "isSubclassOf" [42]=> string(19) "getStaticProperties" [43]=> string(22) "getStaticPropertyValue" [44]=> string(22) "setStaticPropertyValue" [45]=> string(20) "getDefaultProperties" [46]=> string(10) "isIterable" [47]=> string(13) "isIterateable" [48]=> string(19) "implementsInterface" [49]=> string(12) "getExtension" [50]=> string(16) "getExtensionName" [51]=> string(11) "inNamespace" [52]=> string(16) "getNamespaceName" [53]=> string(12) "getShortName" [54]=> string(13) "getAttributes" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
58.18 ms | 409 KiB | 8 Q