3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1st blah blah <!-- CONTACT FORM START [CONTACT_FORM_1] -->some form goes here<!-- CONTACT FORM END 1 --> 2nd blah blah <!-- CONTACT FORM START [CONTACT_FORM_2] -->another form goes here<!-- CONTACT FORM END 2 -->'; $pattern = '/<!-- CONTACT FORM START \[CONTACT_FORM_(\d+)\] -->.*<!-- CONTACT FORM END \1 -->/'; $replace = preg_replace($pattern, '[CONTACT_FORM_$1]', $str); echo $replace;
Output for git.master, git.master_jit, rfc.property-hooks
1st blah blah [CONTACT_FORM_1] 2nd blah blah [CONTACT_FORM_2]

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:
30.37 ms | 401 KiB | 8 Q