Non usare lo short open tag.
Quando posti del codice, utilizza il tag [ PHP ]

Codice PHP:
<pre>
<?php 
$text 
"[b]vvdssadsad[/b]";

$text preg_replace("#(</?)([^>\\s]*)#e""'\\\\1'.strtolower('\\\\2')"$text);
            
print(
htmlentities($text));
?>
</pre>