3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST["content"] = "<style> color:blue; </style> The rain in Spain lies mainly in the plain ..."; $dom = new DOMDocument; $dom->loadHTML($_POST["content"]); $style_tags = $dom->GetElementsByTagName('style'); foreach($style_tags as $style_tag) { $prent = $style_tag->parentNode; $prent->replaceChild($dom->createTextNode(''), $style_tag); } echo strip_tags($dom->saveHTML());
Output for git.master, git.master_jit, rfc.property-hooks
The rain in Spain lies mainly in the plain ...

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