3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "DOM: "; var_dump(class_exists('DOMDocument')); $html = '<div><p>Hello world</p></div>'; $dom = new DOMDocument(); $dom->loadHTML($html); echo $dom->saveHTML();
Output for git.master_jit, git.master
DOM: bool(true) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><body><div><p>Hello world</p></div></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:
49.59 ms | 791 KiB | 4 Q