3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Vivamus #tristique non elit eu iaculis. Donec nibh mauris, pulvinar et #commodo a, porta et tellus. Donec eget porta ipsum.#Mauris sed mauris ante. Donec a #pretium #augue, eget hendrerit orci. Interference of#hashtag Hash in <a>#taggytag</a> "Living my #bestlife" TEXT; echo preg_replace('/\B#([^\s<,.?!"]+)/', '<a href="tag/$1">$1</a>', $text);
Output for git.master, git.master_jit, rfc.property-hooks
Vivamus <a href="tag/tristique">tristique</a> non elit eu iaculis. Donec nibh mauris, pulvinar et <a href="tag/commodo">commodo</a> a, porta et tellus. Donec eget porta ipsum.<a href="tag/Mauris">Mauris</a> sed mauris ante. Donec a <a href="tag/pretium">pretium</a> <a href="tag/augue">augue</a>, eget hendrerit orci. Interference of#hashtag Hash in <a><a href="tag/taggytag">taggytag</a></a> "Living my <a href="tag/bestlife">bestlife</a>"

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:
27.77 ms | 406 KiB | 5 Q