3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>test</p> </body> </html>'; echo LIBXML_DOTTED_VERSION . PHP_EOL . PHP_EOL; $dom = new DOMDocument(); $dom->formatOutput = false; $dom->loadHTML($html); echo $dom->saveHTML($dom->documentElement) . PHP_EOL . PHP_EOL; echo $dom->saveHTML() . PHP_EOL . PHP_EOL; $dom = new DOMDocument(); $dom->formatOutput = false; $dom->loadHTML($html, LIBXML_PARSEHUGE); echo $dom->saveHTML($dom->documentElement) . PHP_EOL . PHP_EOL; echo $dom->saveHTML() . PHP_EOL . PHP_EOL;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.4 ms | 2342 KiB | 8 Q