3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $doc=new DOMDocument(); $doc->loadHTML("<tagthatthrowswarning>HI</tagthatthrowswarning>", LIBXML_NOWARNING); echo $doc->saveHTML();
based on vZbPc
Output for 5.4.0 - 5.6.30, 7.0.0 - 7.3.1
Warning: DOMDocument::loadHTML(): Tag tagthatthrowswarning invalid in Entity, line: 1 in /in/vZR37 on line 4 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body><tagthatthrowswarning>HI</tagthatthrowswarning></body></html>
Output for hhvm-3.10.1 - 3.11.1, hhvm-3.13.2 - 3.17.3
Warning: Tag tagthatthrowswarning invalid in Entity, line: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body><tagthatthrowswarning>HI</tagthatthrowswarning></body></html>
Output for hhvm-3.12.14

Process exited with code 137.
Output for 5.1.0 - 5.3.29
Warning: DOMDocument::loadHTML() expects exactly 1 parameter, 2 given in /in/vZR37 on line 4
Output for 5.0.0 - 5.0.5
Notice: Use of undefined constant LIBXML_NOWARNING - assumed 'LIBXML_NOWARNING' in /in/vZR37 on line 4 Warning: DOMDocument::loadHTML() expects exactly 1 parameter, 2 given in /in/vZR37 on line 4
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/vZR37 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument in /in/vZR37 on line 3