3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<li class="dropdown-submenu active active-child">Sonance Visual Performance Series features an award-winning <a href="http://local.sonance.com/in-wall-in-ceiling/visual-performance">Visual Performance Series</a> low-profile grille that is paintable to blend into the wall or ceiling. With three shapes and sizes, several performance levels, and a range of Sonance Landscape Series specialty /ThinLine application speakers, a consistent look can be achieved for any application in every space.</li>'; $skipDictionary = array( 'all' => array( 'Visual Performance', 'ThinLine', 'Extreme', 'Architectural Series', 'Invisible Series', 'Cinema', 'Soundbar', 'Subwoofers', 'Sonance Landscape Series', 'Satellites', 'Subwoofers', 'Systems', 'Sonarray', 'Mariners', 'Medium' ) ); $replaceArray = array_map(function($val){ return '<span class="notranslate">'.$val.'</span>'; }, $skipDictionary['all']); foreach($skipDictionary['all'] AS $idx => $search) { $text = preg_replace('@(\s|\>|^)'.$search.'(\s|$)@', '\1' . $replaceArray[$idx], $text); } echo '<div>'.$text.'</div>';
Output for git.master, git.master_jit, rfc.property-hooks
<div><li class="dropdown-submenu active active-child">Sonance <span class="notranslate">Visual Performance</span>Series features an award-winning <a href="http://local.sonance.com/in-wall-in-ceiling/visual-performance"><span class="notranslate">Visual Performance</span>Series</a> low-profile grille that is paintable to blend into the wall or ceiling. With three shapes and sizes, several performance levels, and a range of <span class="notranslate">Sonance Landscape Series</span>specialty /ThinLine application speakers, a consistent look can be achieved for any application in every space.</li></div>

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:
40.19 ms | 402 KiB | 8 Q