3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<'HTML' <p>mon texte de début</p> <pre> <?php # Pour afficher un tableau PHP $var['website'] = 'domain.tld'; $var['weblink'] = 'http://www.domain.tld'; # BUG ICI echo '<pre>'.print_r($var,1).'</pre>' echo 'My domain : '.$var['website'] ?> </pre> <p>mon texte de fin.</p> HTML; libxml_use_internal_errors(true); $dom = new DOMDocument; $dom->loadHTML('<html><head><meta charset="UTF-8"/></head><body>' . $text . '</body></html>'); foreach($dom->getElementsByTagName('body')->item(0)->childNodes as $childNode) { echo $dom->saveHTML($childNode); }
Output for git.master, git.master_jit, rfc.property-hooks
<p>mon texte de début</p> <pre> <?php # Pour afficher un tableau PHP $var['website'] = 'domain.tld'; $var['weblink'] = 'http://www.domain.tld'; # BUG ICI echo '<pre>'.print_r($var,1).'</pre>' echo 'My domain : '.$var['website'] ?&gt; <p>mon texte de fin.</p>

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:
53.33 ms | 406 KiB | 5 Q