3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo preg_replace('#href="http://(.*)vbulletin\.com(.*)"#', 'href="http://anonym.to/?$1vbulletin.com$2"', '<a href="http://w.vbulletin.com/tst">vB</a>'); echo preg_replace('#href="http://(.*)vbulletin\.com(.*)"#', 'href="http://anonym.to/?$1vbulletin.com$2"', '<a href="http://vbulletin.com/test">vB</a>');
Output for 4.3.0 - 7.1.0
<a href="http://anonym.to/?w.vbulletin.com/tst">vB</a><a href="http://anonym.to/?vbulletin.com/test">vB</a>