3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((DOM\HTMLDocument::createEmpty())->relaxNgValidateSource("<p><a href=\"/foo\">Text here</p>"));
Output for git.master, git.master_jit
Warning: Dom\Document::relaxNgValidateSource(): Entity: line 1: parser error : Opening and ending tag mismatch: a line 1 and p in /in/IhHj3 on line 3 Warning: Dom\Document::relaxNgValidateSource(): <p><a href="/foo">Text here</p> in /in/IhHj3 on line 3 Warning: Dom\Document::relaxNgValidateSource(): ^ in /in/IhHj3 on line 3 Warning: Dom\Document::relaxNgValidateSource(): Entity: line 1: parser error : Premature end of data in tag p line 1 in /in/IhHj3 on line 3 Warning: Dom\Document::relaxNgValidateSource(): <p><a href="/foo">Text here</p> in /in/IhHj3 on line 3 Warning: Dom\Document::relaxNgValidateSource(): ^ in /in/IhHj3 on line 3 Warning: Dom\Document::relaxNgValidateSource(): xmlRelaxNGParse: could not parse schemas in /in/IhHj3 on line 3 Warning: Dom\Document::relaxNgValidateSource(): Invalid RelaxNG in /in/IhHj3 on line 3 bool(false)

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:
34.22 ms | 407 KiB | 5 Q