3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<< HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expries" content="0" /> <!-- live --> <link rel="stylesheet" href="http://static.ncsoft.com/ingame/bns/character_v2/common/css/character_en.css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://static.ncsoft.com/ingame/bns/character_v2/common/js/suggest.js"></script> <title>plaync 블레이드 &amp 소울</title> <script> </script> </head> <body class="skin1"> <div id="container" class="container"> <div class="warpToolbar"> <nav class="toolbar"> <a id="goHome" class="goHome">To Home</a> <a id="goPrev" class="goPrev">Previous</a> <a id="goNext" class="goNext">Next</a> <a id="reload" class="reload">Refresh</a> </nav> <div id="schForm"> <fieldset> <legend>Character Search</legend> <div id="suggestBox"> <form id="suggestForm" method="get" name="suggest_search" action="javascript:customFn();"> <span class="icon"></span> <input id="suggestInput" type="text" value="" autocomplete="off" placeholder="Enter your character name" /> <a id="suggestClear" class="suggestClear" name="suggestClear">Clear</a> <div id="suggestWrap" class="suggest_wrap"> <div id="suggestList" class="suggest_list"></div> </div> </form> </div> </fieldset> </div> </div> <div id="contents" class="contents"> <header id="header" class="searchHeader"> <h1>My Character Information</h1> <p class="schResult">The search word <strong>"Renari,"</strong> resulted in <strong>36</strong> results.</p> </header> <div class="searchList"> <ul class="user"> <li> <dl> <dt><a href="/ingame/bs/character/profile?c=Renari&s=103">Renari</a></dt> <dd class="desc"> <ul> <li>Assassin</li> <li>Level 42</li> <li>Mushin</li> </ul> </dd> <dd class="thumb"><a href="/ingame/bs/character/profile?c=Renari&s=103"><img src="http://na-gamepic.ncsoft.com/images/0201/4/KHEBAAAAAAA=.jpg" /></a></dd> <dd class="other"> <dl> <dt><strong>Renarii</strong> other characters</dt> <!-- <dd class="thumb2"><a href="#"><img src="/654103C1-615B-43C0-B755-F5A9CA81A112/profile?type=small" /></a></dd> --> <dd class="desc2"> <ul> <li><a href="/ingame/bs/character/profile?c=Renarii&s=103">Renarii</a></li> <li><a href="/ingame/bs/character/profile?c=Suzurin&s=103">Suzurin</a></li> </ul> </dd> </dl> </dd> </dl> </li> <li> <dl> <dt><a href="/ingame/bs/character/profile?c=Renna%20Tezenari&s=109">Renna Tezenari</a></dt> <dd class="desc"> <ul> <li>Force Master</li> <li>Level 1</li> <li>Soha</li> </ul> </dd> <dd class="thumb"><a href="/ingame/bs/character/profile?c=Renna%20Tezenari&s=109"><img src="http://na-gamepic.ncsoft.com/images/0201/90/GjAQAAAAAAA=.jpg" /></a></dd> <dd class="other"> <dl> <dt><strong>Teroniz</strong> other characters</dt> <!-- <dd class="thumb2"><a href="#"><img src="/CC126B6B-3E00-4FD6-AE86-4DA0609ED766/profile?type=small" /></a></dd> --> <dd class="desc2"> <ul> </ul> </dd> </dl> </dd> </dl> </li> <li> <dl> <dt><a href="/ingame/bs/character/profile?c=MariaRenard&s=110">MariaRenard</a></dt> <dd class="desc"> <ul> <li>Destroyer</li> <li>Level 19</li> <li>Juwol</li> </ul> </dd> <dd class="thumb"><a href="/ingame/bs/character/profile?c=MariaRenard&s=110"><img src="http://na-gamepic.ncsoft.com/images/0201/40/IM8GAAAAAAA=.jpg" /></a></dd> <dd class="other"> <dl> <dt><strong>MagnusZero</strong> other characters</dt> <!-- <dd class="thumb2"><a href="#"><img src="/0BD1A552-2984-4C12-A307-B4EA4EFD4FD4/profile?type=small" /></a></dd> --> <dd class="desc2"> <ul> <li><a href="/ingame/bs/character/profile?c=Lady%20Beatrix&s=110">Lady Beatrix</a></li> </ul> </dd> </dl> </dd> </dl> </li> <li> <dl> <dt><a href="/ingame/bs/character/profile?c=Renari%20Pryderi&s=102">Renari Pryderi</a></dt> <dd class="desc"> <ul> <li>Blade Dancer</li> <li>Level 23</li> <li>Iksanun</li> <li>Memorable</li> </ul> </dd> <dd class="thumb"><a href="/ingame/bs/character/profile?c=Renari%20Pryderi&s=102"><img src="http://na-gamepic.ncsoft.com/images/0201/59/04YEAAAAAAA=.jpg" /></a></dd> <dd class="other"> <dl> <dt><strong>StrawberryDelite</strong> other characters</dt> <!-- <dd class="thumb2"><a href="#"><img src="/210F7D83-C50F-4AEE-AD69-5373E3C3542E/profile?type=small" /></a></dd> --> <dd class="desc2"> <ul> <li><a href="/ingame/bs/character/profile?c=Renara&s=102">Renara</a></li> </ul> </dd> </dl> </dd> </dl> </li> <li> <dl> <dt><a href="/ingame/bs/character/profile?c=Dairius%20Denaren&s=109">Dairius Denaren</a></dt> <dd class="desc"> <ul> <li>Force Master</li> <li>Level 10</li> <li>Soha</li> </ul> </dd> <dd class="thumb"><a href="/ingame/bs/character/profile?c=Dairius%20Denaren&s=109"><img src="http://na-gamepic.ncsoft.com/images/0201/64/lMcCAAAAAAA=.jpg" /></a></dd> <dd class="other"> <dl> <dt><strong>Dairius624</strong> other characters</dt> <!-- <dd class="thumb2"><a href="#"><img src="/A0D193DF-DA77-4A9C-97BD-957AFC4FD74F/profile?type=small" /></a></dd> --> <dd class="desc2"> <ul> <li><a href="/ingame/bs/character/profile?c=Denaren&s=109">Denaren</a></li> <li><a href="/ingame/bs/character/profile?c=Dairius%20Derevan&s=109">Dairius Derevan</a></li> <li><a href="/ingame/bs/character/profile?c=Denaeria&s=109">Denaeria</a></li> </ul> </dd> </dl> </dd> </dl> </li> </ul> <div class="paging"> <span class="current">1</span> <a href="/ingame/bs/character/search/info?c=Renari&p=2">2</a> <a href="/ingame/bs/character/search/info?c=Renari&p=3">3</a> <a href="/ingame/bs/character/search/info?c=Renari&p=4">4</a> <a href="/ingame/bs/character/search/info?c=Renari&p=5">5</a> <a href="/ingame/bs/character/search/info?c=Renari&p=6">6</a> <a href="/ingame/bs/character/search/info?c=Renari&p=7">7</a> <a href="/ingame/bs/character/search/info?c=Renari&p=8">8</a> </div> </div> <script type="text/javascript"> (function ($) { $('.thumb a img').error(function () { var ctx = $(this); ctx.attr('src', 'http://static.ncsoft.com/ingame/bns/character_v2/blank_char.gif'); }); }(jQuery)); </script> </div> </div> <script type="text/javascript"> // 검색 시 호출될 함수 function customFn() { var q = $("#suggestInput").val(); if (q.trim().length == 0) { location.href = '/ingame/bs/character/search/info?need=query'; //alert("검색어를 입력 해 주세요."); //return false; } else { schFormSubmit(); } } function schFormSubmit() { var q = $("#suggestInput").val(); location.href = '/ingame/bs/character/search/info?c=' + encodeURIComponent(q); } $('#suggestClear').click(function() { $("#suggestInput").val('').focus(); }); var marketSuggest = new ncSuggestV2({ trigger : 'suggest', url : 'http://na-search.ncsoft.com/openapi/suggest.jsp',// dev Suggest URL suggestType : 'front', // 전방/중간/후방 Defualt : 'front|mid|back' fn : customFn, color : '#64A0C2', param : { // Parameter site : 'bns', // siteFlag display : 10, collection : 'bnsusersuggest' //pos : 'main', //where : 'bnsweb^tsearch' //,callback: 'suggestKeyword' //rc, live에서는 제거(suggestCallback) } }); // After DOM Loaded $(function() { // Toolbar $( '#goPrev' ).click(function() { history.back(); }); $( '#goNext' ).click(function() { history.go(1); }); $( '#reload' ).click(function() { window.location.reload(); }); $( '#goHome' ).click(function() { location.href = '/ingame/bs/character/search/info'; }); }); </script> </body> </html> HTML; $doc = new DomDocument; $doc->validateOnParse = true; $doc->loadHTML($data); $contents = $doc->getElementById('contents'); $xml = $contents->asXml(); var_dump($xml);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 19 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 27 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): ID suggestClear already defined in Entity, line: 40 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): Tag header invalid in Entity, line: 64 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 73 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 82 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 94 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 96 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 108 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 117 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 139 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 148 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 160 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 172 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 183 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 195 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 207 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 216 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 226 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 228 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 232 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 253 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 258 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 263 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 268 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 273 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 278 in /in/cdeZD on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 283 in /in/cdeZD on line 352 Fatal error: Uncaught Error: Call to undefined method DOMElement::asXml() in /in/cdeZD:354 Stack trace: #0 {main} thrown in /in/cdeZD on line 354
Process exited with code 255.

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:
52.11 ms | 405 KiB | 8 Q