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); var_dump($doc); echo $doc->getElementById('contents')->asXML();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 19 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 27 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): ID suggestClear already defined in Entity, line: 40 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): Tag header invalid in Entity, line: 64 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 73 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 82 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 94 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 96 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 108 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 117 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 139 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 148 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 160 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 172 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 183 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 195 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 207 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 216 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 226 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 228 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 232 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 253 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 258 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 263 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 268 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 273 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 278 in /in/S6VG7 on line 352 Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 283 in /in/S6VG7 on line 352 object(DOMDocument)#1 (38) { ["config"]=> NULL ["doctype"]=> string(22) "(object value omitted)" ["implementation"]=> string(22) "(object value omitted)" ["documentElement"]=> string(22) "(object value omitted)" ["actualEncoding"]=> string(5) "utf-8" ["encoding"]=> string(5) "utf-8" ["xmlEncoding"]=> string(5) "utf-8" ["standalone"]=> bool(true) ["xmlStandalone"]=> bool(true) ["version"]=> NULL ["xmlVersion"]=> NULL ["strictErrorChecking"]=> bool(true) ["documentURI"]=> NULL ["formatOutput"]=> bool(false) ["validateOnParse"]=> bool(true) ["resolveExternals"]=> bool(false) ["preserveWhiteSpace"]=> bool(true) ["recover"]=> bool(false) ["substituteEntities"]=> bool(false) ["firstElementChild"]=> string(22) "(object value omitted)" ["lastElementChild"]=> string(22) "(object value omitted)" ["childElementCount"]=> int(1) ["nodeName"]=> string(9) "#document" ["nodeValue"]=> NULL ["nodeType"]=> int(13) ["parentNode"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> string(22) "(object value omitted)" ["lastChild"]=> string(22) "(object value omitted)" ["previousSibling"]=> NULL ["nextSibling"]=> NULL ["attributes"]=> NULL ["ownerDocument"]=> NULL ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> NULL ["baseURI"]=> NULL ["textContent"]=> string(2977) "plaync 블레이드 &amp 소울 To Home Previous Next Refresh Character Search Clear My Character Information The search word "Renari," resulted in 36 results. Renari Assassin Level 42 Mushin Renarii other characters Renarii Suzurin Renna Tezenari Force Master Level 1 Soha Teroniz other characters MariaRenard Destroyer Level 19 Juwol MagnusZero other characters Lady Beatrix Renari Pryderi Blade Dancer Level 23 Iksanun Memorable StrawberryDelite other characters Renara Dairius Denaren Force Master Level 10 Soha Dairius624 other characters Denaren Dairius Derevan Denaeria 1 2 3 4 5 6 7 8 (function ($) { $('.thumb a img').error(function () { var ctx = $(this); ctx.attr('src', 'http://static.ncsoft.com/ingame/bns/character_v2/blank_char.gif'); }); }(jQuery)); // 검색 시 호출될 함수 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'; }); }); " } Fatal error: Uncaught Error: Call to undefined method DOMElement::asXML() in /in/S6VG7:353 Stack trace: #0 {main} thrown in /in/S6VG7 on line 353
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:
53.29 ms | 409 KiB | 8 Q