3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_variable = '[section title="This is the title"]'; $your_variable = str_replace('type="full" type="wrapper"]','type="full"]',preg_replace ( '/\[section([^\]]+)(?!type)\]/i' , '[section$1 type="wrapper"]' , $your_variable )); echo "First try (got to add the wrapper...): ".$your_variable."\n"; $your_variable = '[section title="This is the title" type="full"]'; $your_variable = str_replace('type="full" type="wrapper"]','type="full"]',preg_replace ( '/\[section([^\]]+)(?!type)\]/i' , '[section$1 type="wrapper"]' , $your_variable )); echo "Second try (leave it as is please...): ".$your_variable."\n";
Output for git.master, git.master_jit, rfc.property-hooks
First try (got to add the wrapper...): [section title="This is the title" type="wrapper"] Second try (leave it as is please...): [section title="This is the title" type="full"]

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