3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument(); $doc->loadHTML("<html><body class=\"<!--invalid-->class\">>Test<!--valid--><br<!--invalid2-->></body></html<!--invalid3-->>"); var_dump($doc->saveHTML());
Output for git.master_jit, git.master, rfc.property-hooks
Warning: DOMDocument::loadHTML(): error parsing attribute name in Entity, line: 1 in /in/K3ZFk on line 4 Warning: DOMDocument::loadHTML(): End tag : expected '>' in Entity, line: 1 in /in/K3ZFk on line 4 string(229) "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body class="<!--invalid-->class">&gt;Test<!--valid--><br>&gt;</body><html><p>&gt;</p></html></html><!--invalid3--> "

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:
65.71 ms | 402 KiB | 8 Q