3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <store name="adamos_rihardos"> <date>2017-12-16 13:47:59</date> <products> <product> <id>3</id> <name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name> <manufacturer><![CDATA[SAMSON]]></manufacturer> <sku><![CDATA[550.SAM.060]]></sku> <description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered), built-in audio interface and mixer, allows simultaneous input of vocals and guitar, bass, or keyboard while also providing monitoring through an on-board headphone output. Specifications: mic and instrument/line gain control with clip LED, stereo input jacks for (3.5mm stereo-jack) instrument or line level signal, stereo headphone jack for zero latency monitoring with level control, 3-position headphone switch for stereo, mono and computer monitoring. USB bus-powered. Includes desktop microphone stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional shockmount available.]]></description_greek> <short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered)]]></short_description_greek> <price>155.00</price> <msrp>185.00</msrp> <instock>no</instock> <images total="2"> <image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 01.jpg</image_1> <image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 02.jpg</image_2> </images> </product> <product> <id>3</id> <name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name> <manufacturer><![CDATA[SAMSON]]></manufacturer> <sku><![CDATA[550.SAM.060]]></sku> <description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered), built-in audio interface and mixer, allows simultaneous input of vocals and guitar, bass, or keyboard while also providing monitoring through an on-board headphone output. Specifications: mic and instrument/line gain control with clip LED, stereo input jacks for (3.5mm stereo-jack) instrument or line level signal, stereo headphone jack for zero latency monitoring with level control, 3-position headphone switch for stereo, mono and computer monitoring. USB bus-powered. Includes desktop microphone stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional shockmount available.]]></description_greek> <short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered)]]></short_description_greek> <price>155.00</price> <msrp>185.00</msrp> <instock>no</instock> <images total="2"> <image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 01.jpg</image_1> <image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 02.jpg</image_2> </images> </product> </products> </store>'; $products = simplexml_load_string($xml); foreach( $products->xpath("*/product") as $p ) { $p->addChild("newsku", "NEW".$p->sku); } echo $products->asXML();
Output for git.master, git.master_jit, rfc.property-hooks
<?xml version="1.0" encoding="UTF-8"?> <store name="adamos_rihardos"> <date>2017-12-16 13:47:59</date> <products> <product> <id>3</id> <name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name> <manufacturer><![CDATA[SAMSON]]></manufacturer> <sku><![CDATA[550.SAM.060]]></sku> <description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered), built-in audio interface and mixer, allows simultaneous input of vocals and guitar, bass, or keyboard while also providing monitoring through an on-board headphone output. Specifications: mic and instrument/line gain control with clip LED, stereo input jacks for (3.5mm stereo-jack) instrument or line level signal, stereo headphone jack for zero latency monitoring with level control, 3-position headphone switch for stereo, mono and computer monitoring. USB bus-powered. Includes desktop microphone stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional shockmount available.]]></description_greek> <short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered)]]></short_description_greek> <price>155.00</price> <msrp>185.00</msrp> <instock>no</instock> <images total="2"> <image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 01.jpg</image_1> <image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 02.jpg</image_2> </images> <newsku>NEW550.SAM.060</newsku></product> <product> <id>3</id> <name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name> <manufacturer><![CDATA[SAMSON]]></manufacturer> <sku><![CDATA[550.SAM.060]]></sku> <description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered), built-in audio interface and mixer, allows simultaneous input of vocals and guitar, bass, or keyboard while also providing monitoring through an on-board headphone output. Specifications: mic and instrument/line gain control with clip LED, stereo input jacks for (3.5mm stereo-jack) instrument or line level signal, stereo headphone jack for zero latency monitoring with level control, 3-position headphone switch for stereo, mono and computer monitoring. USB bus-powered. Includes desktop microphone stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional shockmount available.]]></description_greek> <short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio condenser microphone (USB bus-powered)]]></short_description_greek> <price>155.00</price> <msrp>185.00</msrp> <instock>no</instock> <images total="2"> <image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 01.jpg</image_1> <image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi- 02.jpg</image_2> </images> <newsku>NEW550.SAM.060</newsku></product> </products> </store>

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:
116.7 ms | 417 KiB | 5 Q