3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ((new ReflectionClass("XMLReader"))->getProperties() as $property) { var_dump($property); } foreach ((new ReflectionClass("DOMNamedNodeMap"))->getProperties() as $property) { var_dump($property); }
Output for git.master, git.master_jit, rfc.property-hooks
object(ReflectionProperty)#2 (2) { ["name"]=> string(14) "attributeCount" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#3 (2) { ["name"]=> string(7) "baseURI" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#4 (2) { ["name"]=> string(5) "depth" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#5 (2) { ["name"]=> string(13) "hasAttributes" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#6 (2) { ["name"]=> string(8) "hasValue" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#7 (2) { ["name"]=> string(9) "isDefault" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#8 (2) { ["name"]=> string(14) "isEmptyElement" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#9 (2) { ["name"]=> string(9) "localName" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#10 (2) { ["name"]=> string(4) "name" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#11 (2) { ["name"]=> string(12) "namespaceURI" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#12 (2) { ["name"]=> string(8) "nodeType" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#13 (2) { ["name"]=> string(6) "prefix" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#14 (2) { ["name"]=> string(5) "value" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#15 (2) { ["name"]=> string(7) "xmlLang" ["class"]=> string(9) "XMLReader" } object(ReflectionProperty)#13 (2) { ["name"]=> string(6) "length" ["class"]=> string(15) "DOMNamedNodeMap" }

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:
67.93 ms | 411 KiB | 5 Q