3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = <<<STR <span>Span 1</span> <div>DIV 1</div><div class="text">DIV 2</div> <span> Span 2 </span> <div class="apache">DIV 3</div> <span> Span 3 </span> <span> Span 4 </span> STR; $string = preg_replace("/<span[^>]*>.*?<\/span>/is","",$string); echo $string;
Output for rfc.property-hooks, git.master_jit, git.master
<div>DIV 1</div><div class="text">DIV 2</div> <div class="apache">DIV 3</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:
86.64 ms | 1998 KiB | 4 Q