Hocam ‘ ve ’ yerine ' kullanmayı dener misiniz.

Şu şekilde yani ;

preg_match_all('{<'.$tag.'[^>]*>(.*?)}', $content, $matches, PREG_PATTERN_ORDER);