Hai provato così?

$variabile=str_replace('Contenuto','eval(
"echo $lol;")',$variabile);

ByeZ