3v4l.org

run code in 300+ 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 git.master_jit, git.master, rfc.property-hooks
<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:
77.56 ms | 405 KiB | 5 Q