3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "**link(http://google.com)*{Google}**"; preg_match("/(?<=\\*\\*link)\\((.*)\\)/", $str, $match1); preg_match('/(?<=\*\*link)\((.*)\)/', $str, $match2); echo "{$match1[1]}\n{$match2[1]}\n";

preferences:
25.12 ms | 404 KiB | 5 Q