3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = <<<HTML <form class="searchform" method="get" action="../search/search.php"> <input id="searchbox" type="text" name="zoom_query" size="15"> <input id="searchgo" type="submit" value="search"> </form> HTML; $doc = new DOMDocument(); $doc->loadHTML($html); echo $doc->saveHTML();
based on qs4TC
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body><form class="searchform" method="get" action="../search/search.php"> <input id="searchbox" type="text" name="zoom_query" size="15"><input id="searchgo" type="submit" value="search"></form></body></html>