3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlStr = "<LaunchBox> <Game> <Name>Violet</Name> <ReleaseYear>1985</ReleaseYear> <MaxPlayers>1</MaxPlayers> <Platform>ZiNc</Platform> </Game> <Game> <Name>Wishbringer</Name> <ReleaseYear>1985</ReleaseYear> <MaxPlayers>1</MaxPlayers> <Platform>ZiNc</Platform> </Game> <Platform> <Name>3DO Interactive Multiplayer</Name> <Emulated>true</Emulated> <ReleaseDate>1993-10-04T00:00:00-07:00</ReleaseDate> <Developer>The 3DO Company</Developer> </Platform> <Platform> <Name>Commodore Amiga</Name> <Emulated>true</Emulated> <ReleaseDate>1985-07-23T00:00:00-07:00</ReleaseDate> <Developer>Commodore International</Developer> </Platform> </LaunchBox>"; $xml = simplexml_load_string($xmlStr); $games = $xml->xpath('/LaunchBox/Game'); echo count($games).' games'.PHP_EOL; foreach ($games as $game) { print_r($game); }
Output for git.master, git.master_jit, rfc.property-hooks
2 games SimpleXMLElement Object ( [Name] => Violet [ReleaseYear] => 1985 [MaxPlayers] => 1 [Platform] => ZiNc ) SimpleXMLElement Object ( [Name] => Wishbringer [ReleaseYear] => 1985 [MaxPlayers] => 1 [Platform] => ZiNc )

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