3v4l.org

run code in 500+ 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 rfc.property-hooks, git.master, git.master_jit
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:
50.1 ms | 1606 KiB | 4 Q