3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 ="Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs."; $str2 = "laying out print, graphic"; $regex = preg_replace('/\s+/', '\s+', $str2); echo preg_replace("/$regex/iu", '<span style="color:red">$0</span>', $str1);
Output for git.master, git.master_jit, rfc.property-hooks
Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in <span style="color:red">laying out print, graphic</span> or web designs.

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:
34.51 ms | 405 KiB | 5 Q