3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'An aim is a goal or objective Hotel in Canada to achieve in life. In order to succeed in life, one must have Hotel in, Canada a goal. My aim in life is to be a teacher. Teaching is a noble and responsible profession. I have come City Hotels to know that the ever-increasing misery and distress, are City, Hotels due to the ignorance and illiteracy City. Hotels of the people of our country. So I have decided to spread education among the masses Hotel. in Canada as much as possible within my humble power. As a teacher, I shall try my best to impart man-making education.'; $keywords = ['City Hotels', 'Hotel in Canada']; foreach ($keywords as $keyword) { $regex = preg_replace('/ +/', '[.,\s]+', preg_quote($keyword, '/')); $string = preg_replace("/\b$regex\b/iu", '**$0**', $string); } var_export($string);
Output for git.master, git.master_jit, rfc.property-hooks
'An aim is a goal or objective **Hotel in Canada** to achieve in life. In order to succeed in life, one must have **Hotel in, Canada** a goal. My aim in life is to be a teacher. Teaching is a noble and responsible profession. I have come **City Hotels** to know that the ever-increasing misery and distress, are **City, Hotels** due to the ignorance and illiteracy **City. Hotels** of the people of our country. So I have decided to spread education among the masses **Hotel. in Canada** as much as possible within my humble power. As a teacher, I shall try my best to impart man-making education.'

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:
156.77 ms | 407 KiB | 5 Q