3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(<table id="table-[0-9]+">[\s]+<tbody>[\s]+<tr><td><p>\{\{Phrase (1|2)\}\}<\/p><\/td><\/tr>[\s]+<\/tbody>[\s]+<\/table>)/'; $html = '<table id="table-1"> <tbody> <tr><td><p>{{Phrase 1}}</p></td></tr> </tbody> </table> <table id="table-2"> <tbody> <tr><td><p>Sample text 1 goes here..</p></td></tr> </tbody> </table> <table id="table-3"> <tbody> <tr><td><p>{{Phrase 2}}</p></td></tr> </tbody> </table> <table id="table-4"> <tbody> <tr><td><p>Sample text 2 goes here..</p></td></tr> </tbody> </table>'; $clean = preg_replace($regex, '', $html); echo $clean;
Output for git.master, git.master_jit, rfc.property-hooks
<table id="table-2"> <tbody> <tr><td><p>Sample text 1 goes here..</p></td></tr> </tbody> </table> <table id="table-4"> <tbody> <tr><td><p>Sample text 2 goes here..</p></td></tr> </tbody> </table>

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:
161.67 ms | 406 KiB | 5 Q