3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textarea = '<div class="dotted-highlight">The cover letter should include: <div class="dotted-highlight"><ul>'; $replacing_to = '((<div class="dotted-highlight">)([^<\n]*)\s?).*?\2.*?<ul>'; $replacing_with = '$3<ul>'; $textarea = preg_replace('#'.$replacing_to.'#', $replacing_with, $textarea); var_dump($textarea);
Output for git.master, git.master_jit, rfc.property-hooks
string(37) "The cover letter should include: <ul>"

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