3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = DOM\HTMLDocument::createFromString('<body><h1>Test</h1></body>', LIBXML_NOERROR); echo $dom->body->innerHTML, "\n"; // Output: <h1>Test</h1> $dom->body->innerHTML = '<p>Something new</p>'; echo $dom->saveHTML(); // Output: <html><head></head><body><p>Something new</p></body></html>
Output for git.master_jit, git.master
<h1>Test</h1> <html><head></head><body><p>Something new</p></body></html>

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:
32.68 ms | 405 KiB | 5 Q