3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
$xml = <<<XML <?xml version="1.0"?><xml_api_reply version="1"><finance module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><symbol data="FUM1V"/><pretty_symbol data="FUM1V"/><symbol_lookup_url data="/finance?client=ig&amp;q=FUM1V"/><company data="Fortum Oyj"/><exchange data="HEL"/><exchange_timezone data=""/><exchange_utc_offset data=""/><exchange_closing data=""/><divisor data="2"/><currency data="EUR"/><last data="14.68"/><high data="14.77"/><low data="14.59"/><volume data="1216170"/><avg_volume data="1607"/><market_cap data="13041.22"/><open data="14.60"/><y_close data="14.59"/><change data="+0.09"/><perc_change data="0.62"/><delay data="0"/><trade_timestamp data="7 hours ago"/><trade_date_utc data="20130617"/><trade_time_utc data="152953"/><current_date_utc data="20130617"/><current_time_utc data="223403"/><symbol_url data="/finance?client=ig&amp;q=FUM1V"/><chart_url data="/finance/chart?q=HEL:FUM1V&amp;tlf=12"/><disclaimer_url data="/help/stock_disclaimer.html"/><ecn_url data=""/><isld_last data=""/><isld_trade_date_utc data=""/><isld_trade_time_utc data=""/><brut_last data=""/><brut_trade_date_utc data=""/><brut_trade_time_utc data=""/><daylight_savings data="true"/></finance><finance module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><symbol data="KNEBV"/><pretty_symbol data="KNEBV"/><symbol_lookup_url data="/finance?client=ig&amp;q=KNEBV"/><company data="KONE Corporation"/><exchange data="HEL"/><exchange_timezone data=""/><exchange_utc_offset data=""/><exchange_closing data=""/><divisor data="2"/><currency data="EUR"/><last data="65.95"/><high data="67.00"/><low data="65.95"/><volume data="249502"/><avg_volume data="303"/><market_cap data="16911.31"/><open data="66.10"/><y_close data="66.05"/><change data="-0.10"/><perc_change data="-0.15"/><delay data="0"/><trade_timestamp data="7 hours ago"/><trade_date_utc data="20130617"/><trade_time_utc data="152952"/><current_date_utc data="20130617"/><current_time_utc data="223403"/><symbol_url data="/finance?client=ig&amp;q=KNEBV"/><chart_url data="/finance/chart?q=HEL:KNEBV&amp;tlf=12"/><disclaimer_url data="/help/stock_disclaimer.html"/><ecn_url data=""/><isld_last data=""/><isld_trade_date_utc data=""/><isld_trade_time_utc data=""/><brut_last data=""/><brut_trade_date_utc data=""/><brut_trade_time_utc data=""/><daylight_savings data="true"/></finance></xml_api_reply> XML; $sxe = new SimpleXMLElement($xml); foreach ($sxe->finance as $finance) { print_r($finance); echo "<br /><br />"; }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected 'version' (T_STRING) in /in/8sTMF on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
$xml = <<<XML <?xml version="1.0"?><xml_api_reply version="1"><finance module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><symbol data="FUM1V"/><pretty_symbol data="FUM1V"/><symbol_lookup_url data="/finance?client=ig&amp;q=FUM1V"/><company data="Fortum Oyj"/><exchange data="HEL"/><exchange_timezone data=""/><exchange_utc_offset data=""/><exchange_closing data=""/><divisor data="2"/><currency data="EUR"/><last data="14.68"/><high data="14.77"/><low data="14.59"/><volume data="1216170"/><avg_volume data="1607"/><market_cap data="13041.22"/><open data="14.60"/><y_close data="14.59"/><change data="+0.09"/><perc_change data="0.62"/><delay data="0"/><trade_timestamp data="7 hours ago"/><trade_date_utc data="20130617"/><trade_time_utc data="152953"/><current_date_utc data="20130617"/><current_time_utc data="223403"/><symbol_url data="/finance?client=ig&amp;q=FUM1V"/><chart_url data="/finance/chart?q=HEL:FUM1V&amp;tlf=12"/><disclaimer_url data="/help/stock_disclaimer.html"/><ecn_url data=""/><isld_last data=""/><isld_trade_date_utc data=""/><isld_trade_time_utc data=""/><brut_last data=""/><brut_trade_date_utc data=""/><brut_trade_time_utc data=""/><daylight_savings data="true"/></finance><finance module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><symbol data="KNEBV"/><pretty_symbol data="KNEBV"/><symbol_lookup_url data="/finance?client=ig&amp;q=KNEBV"/><company data="KONE Corporation"/><exchange data="HEL"/><exchange_timezone data=""/><exchange_utc_offset data=""/><exchange_closing data=""/><divisor data="2"/><currency data="EUR"/><last data="65.95"/><high data="67.00"/><low data="65.95"/><volume data="249502"/><avg_volume data="303"/><market_cap data="16911.31"/><open data="66.10"/><y_close data="66.05"/><change data="-0.10"/><perc_change data="-0.15"/><delay data="0"/><trade_timestamp data="7 hours ago"/><trade_date_utc data="20130617"/><trade_time_utc data="152952"/><current_date_utc data="20130617"/><current_time_utc data="223403"/><symbol_url data="/finance?client=ig&amp;q=KNEBV"/><chart_url data="/finance/chart?q=HEL:KNEBV&amp;tlf=12"/><disclaimer_url data="/help/stock_disclaimer.html"/><ecn_url data=""/><isld_last data=""/><isld_trade_date_utc data=""/><isld_trade_time_utc data=""/><brut_last data=""/><brut_trade_date_utc data=""/><brut_trade_time_utc data=""/><daylight_savings data="true"/></finance></xml_api_reply> XML; $sxe = new SimpleXMLElement($xml); foreach ($sxe->finance as $finance) { print_r($finance); echo "<br /><br />"; }