3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<HTML <tr> Fried rice with chicken, beef, prawn or vegetable. </tr> <tr> <span class="number">78. </span>KHAO PHAD SABPAROD <span class="price">£9.95</span> </tr> HTML; echo preg_replace('/<tr>((?:(?!</tr>).|[\r\n])*<span[^>]*>(?:.|[\r\n])*?)</tr>/s', '<dt>$1</dt>', $input);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): Unknown modifier 't' in /in/a3i4W on line 13

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.9 ms | 401 KiB | 8 Q