3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <Photos> <Photo order="1"> <Filename>http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_2.jpg</Filename> </Photo> <Photo order="2"> <Filename>http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_3.jpg</Filename> </Photo> <Photo order="3"> <Filename>http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_4.jpg</Filename> </Photo> <Photo order="4"> <Filename>http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_5.jpg</Filename> </Photo> <Photo order="5"> <Filename>http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_6.jpg</Filename> </Photo> </Photos> XML; $xml = simplexml_load_string($x); $photos = $xml->xpath("//Photo"); foreach ($photos as $photo) echo "order: $photo[order], file: $photo->Filename<br />";
Output for git.master, git.master_jit, rfc.property-hooks
order: 1, file: http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_2.jpg<br />order: 2, file: http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_3.jpg<br />order: 3, file: http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_4.jpg<br />order: 4, file: http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_5.jpg<br />order: 5, file: http://usedcarpics.s3.amazonaws.com/514SPINELLITOYOTA2/b5092588_6.jpg<br />

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