3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ '<p>test:</p>', '<p>test: foo</p>', '<p>foo:</p>', '<p>: foo</p>', '<p>test </p><p>:</p>', ]; foreach ($input as $val) { echo(preg_replace('/(<p>)([^<]+?:)(.*)/', '$1<strong>$2</strong>$3', $val)); echo("\n"); }
Output for rfc.property-hooks, git.master, git.master_jit
<p><strong>test:</strong></p> <p><strong>test:</strong> foo</p> <p><strong>foo:</strong></p> <p>: foo</p> <p>test </p><p>:</p>

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:
56.83 ms | 2687 KiB | 4 Q