3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); echo $doc->getElementById('contents')->asXML();
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant data - assumed 'data' (this will throw an Error in a future version of PHP) in /in/MYnl4 on line 352 Fatal error: Uncaught Error: Call to a member function asXML() on null in /in/MYnl4:353 Stack trace: #0 {main} thrown in /in/MYnl4 on line 353
Process exited with code 255.
Output for 7.0.0 - 7.1.20
Notice: Use of undefined constant data - assumed 'data' in /in/MYnl4 on line 352 Fatal error: Uncaught Error: Call to a member function asXML() on null in /in/MYnl4:353 Stack trace: #0 {main} thrown in /in/MYnl4 on line 353
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Use of undefined constant data - assumed 'data' in /in/MYnl4 on line 352 Fatal error: Call to a member function asXML() on null in /in/MYnl4 on line 353
Process exited with code 255.
Output for 5.3.22 - 5.5.35
Notice: Use of undefined constant data - assumed 'data' in /in/MYnl4 on line 352 Fatal error: Call to a member function asXML() on a non-object in /in/MYnl4 on line 353
Process exited with code 255.