3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Rtm = '@[ Test Career 12](career:235)@[ Testing11](business:2)@[ Username](user:1)some text'; $Rtm = preg_replace_callback('/@\[([^]]*)\]\(([a-z]+):([^)]*)\)/', function ($match) { switch($match[2]) { case 'user': return "<a href=\"/en/main/profile_page_link/$match[3]\">$match[1]</a>"; break; case 'business': return "<a href=\"/en/business/1/about\">$match[1]</a>"; break; case 'career': return "<a href=\"/en/main/2/about\">$match[1]</a>"; break; default: return ""; break; } }, $Rtm); echo $Rtm;
Output for git.master, git.master_jit, rfc.property-hooks
<a href="/en/main/2/about"> Test Career 12</a><a href="/en/business/1/about"> Testing11</a><a href="/en/main/profile_page_link/1"> Username</a>some text

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