3v4l.org

run code in 300+ PHP versions simultaneously
<?php $simpleXml = simplexml_load_string('<pmxi_records><node> <category><![CDATA[Автоматика>Контроль, управление и питание>Блоки питания>Однофазные блоки питания]]></category> <product><![CDATA[[:ru]Блок птания однофазный 6EP1233-1AA00[:en]The power supply single phase 6EP1233-1AA00]]></product> <brand><![CDATA[Siemens]]></brand> <articles><![CDATA[6EP1233-1AA00]]></articles> <pdf><![CDATA[6EP1_233-1AA00.pdf]]></pdf> <photo><![CDATA[]]></photo> <description><![CDATA[]]></description> </node></pmxi_records>', 'SimpleXMLElement', LIBXML_NOCDATA); $rootNodes = $simpleXml->xpath('/pmxi_records/node'); $qwe = $rootNodes[0]->xpath('./*[not(self::brand)]'); print_r($qwe); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => SimpleXMLElement Object ( [0] => Автоматика>Контроль, управление и питание>Блоки питания>Однофазные блоки питания ) [1] => SimpleXMLElement Object ( [0] => [:ru]Блок птания однофазный 6EP1233-1AA00[:en]The power supply single phase 6EP1233-1AA00 ) [2] => SimpleXMLElement Object ( [0] => 6EP1233-1AA00 ) [3] => SimpleXMLElement Object ( [0] => 6EP1_233-1AA00.pdf ) [4] => SimpleXMLElement Object ( ) [5] => SimpleXMLElement Object ( ) )

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:
56.35 ms | 402 KiB | 8 Q