3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = simplexml_load_string(<<<XML <rows> <row id="1_2"> <col1>Adilabad</col1> <col2>Andhra Pradesh</col2> <col3>30-Apr-2014</col3> <col4>http://en.wikipedia.org/wiki/Adilabad_(Lok_Sabha_constituency)</col4> <col5>http://www.elections.in/andhra-pradesh/parliamentary-constituencies/adilabad.html</col5> </row> <row id="1_3"> <col1>Peddapalli</col1> <col2>Andhra Pradesh</col2> <col3>30-Apr-2014</col3> <col4>http://en.wikipedia.org/wiki/Peddapalli_(Lok_Sabha_constituency)</col4> <col5>http://www.elections.in/andhra-pradesh/parliamentary-constituencies/peddapalli.html</col5> </row> </rows> XML ); foreach ($rows->row as $row) { echo $row->col1.' , '.$row->col2."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Adilabad , Andhra Pradesh Peddapalli , Andhra Pradesh

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:
34.49 ms | 401 KiB | 8 Q