3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <nowplaying-info-list> <nowplaying-info > <property name="track_title"><![CDATA[Song Title]]></property> <property name="track_album_name"><![CDATA[Song Album]]></property> <property name="track_artist_name"><![CDATA[Song Artist]]></property> </nowplaying-info> </nowplaying-info-list> XML; $sxml = simplexml_load_string($xml); $results = $sxml->xpath("/nowplaying-info-list/nowplaying-info/property[@name='track_artist_name']"); $artist = (string) $results[0]; echo $artist;
Output for git.master, git.master_jit, rfc.property-hooks
Song Artist

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:
130.15 ms | 405 KiB | 5 Q