3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); ?> <div> <h1>Example Domain</h1> <p>This domain is established to be used for illustrative examples in documents. You may use this domain in examples without prior coordination or asking for permission.</p> <p><a href="http://www.iana.org/domains/example">More information...</a></p> </div> <?php $c = ob_get_clean(); if( ! class_exists('DOMDocument') ) exit("DOMDocument not here"); $doc = new DOMDocument(); $doc->loadHTML("<html><body>Test<br></body></html>"); print_r( $doc->childNodes ); echo PHP_EOL.PHP_EOL; $doc->loadHTML($c); print_r( $doc->childNodes );
Output for git.master, git.master_jit, rfc.property-hooks
DOMNodeList Object ( [length] => 2 ) DOMNodeList Object ( [length] => 2 )

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:
52.61 ms | 401 KiB | 8 Q