3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<html> <head> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> </head> <body> <img src="http://chart.googleapis.com/chart?chs=280x160&amp;chd=t:0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,69,90,109,233,449,376,379,525,492,571,775,828,573,533,548,874,1575,3493,4167,3814,4925,5378,5304,5757,3420,3202,2557,2765,2424,1607,1763,2846,6531,3921,4434,5906,6411,5120,7219,6526,4060,6951,7261,5942,2946,6788,7190,6827,7361,5476,6776,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&amp;cht=lc&amp;chds=0,8100&amp;chxr=0,6,20,2|1,0,8100&amp;chtt=29.03.2016+11:25:06&amp;chdlp=bv&amp;chm=B,FF0000,0,0,0&amp;chco=FF0000"> <br> <table border="0" width="280"> <tbody> <tr> <td valign="top">Tag:</td> <td align="right" valign="top">14.5</td> <td align="right" valign="top">kWh</td> <td align="right" valign="top">Monat:</td> <td align="right" valign="top">690</td> <td align="right" valign="top">kWh</td> </tr> <tr> <td valign="top">Jahr:</td> <td align="right" valign="top">1375</td> <td align="right" valign="top">kWh</td> <td align="right" valign="top">Gesamt:</td> <td align="right" valign="top">39482</td> <td align="right" valign="top">kWh</td> </tr> <tr> <td valign="top">PAC:</td> <td align="right">6776</td> <td>W</td> </tr> </tbody> </table> </body> </html> '; $doc = new DOMDocument(); $doc->loadHTML($xml); $sxml = simplexml_import_dom($doc); print_r($sxml);
Output for git.master, git.master_jit, rfc.property-hooks
SimpleXMLElement Object ( [head] => SimpleXMLElement Object ( [meta] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [http-equiv] => cache-control [content] => no-cache ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [http-equiv] => expires [content] => 0 ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [http-equiv] => Pragma [content] => no-cache ) ) ) ) [body] => SimpleXMLElement Object ( [img] => SimpleXMLElement Object ( [@attributes] => Array ( [src] => http://chart.googleapis.com/chart?chs=280x160&chd=t:0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,69,90,109,233,449,376,379,525,492,571,775,828,573,533,548,874,1575,3493,4167,3814,4925,5378,5304,5757,3420,3202,2557,2765,2424,1607,1763,2846,6531,3921,4434,5906,6411,5120,7219,6526,4060,6951,7261,5942,2946,6788,7190,6827,7361,5476,6776,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&cht=lc&chds=0,8100&chxr=0,6,20,2|1,0,8100&chtt=29.03.2016+11:25:06&chdlp=bv&chm=B,FF0000,0,0,0&chco=FF0000 ) ) [br] => SimpleXMLElement Object ( ) [table] => SimpleXMLElement Object ( [@attributes] => Array ( [border] => 0 [width] => 280 ) [tbody] => SimpleXMLElement Object ( [tr] => Array ( [0] => SimpleXMLElement Object ( [td] => Array ( [0] => Tag: [1] => 14.5 [2] => kWh [3] => Monat: [4] => 690 [5] => kWh ) ) [1] => SimpleXMLElement Object ( [td] => Array ( [0] => Jahr: [1] => 1375 [2] => kWh [3] => Gesamt: [4] => 39482 [5] => kWh ) ) [2] => SimpleXMLElement Object ( [td] => Array ( [0] => PAC: [1] => 6776 [2] => W ) ) ) ) ) ) )

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:
30.25 ms | 413 KiB | 8 Q