I have a problem with my code!

My code-

```
<?php
$replace = 'ISO Burning Programs/Active@ ISO Burner 2.1.0.0/SPTDinst-v162-x86.exe';
$result = preg_replace_callback('/([^\/]*)(\/|$)/', function($matches){
    static $count = 0;
    $count++;
    return !empty($matches[1]) ? '
    <body onload="filetype_main(document.getElementById(\'file_type_'.$count.'\'));">
    <ul style="margin: 0px 0px 0px -20px;" type="none"><li id="file_type_li_'.$count.'">
    <form id="file_type_'.$count.'">
    <img alt="" name="file_img" class="file_img" id="file_img"/>
    <input name="file_type_ext" id="file_type_ext" name="file_type_ext" value="'.$matches[1].'" type="text" size="30"/>
    <font><?php echo "Cool";?>
    '
    .$matches[1].
    '
    </font></form></li></body>
    ' : '';
}, $replace);
echo "";
echo "Main Folder";
echo $result;
echo "";
?>

```

Now i want that my php code-

```
<?php echo "Cool"; ?>

```

To be properly shown like - Cool in my html page!
But its not happening like that it doesn't show anything and when i see my source code using CHROME it shows the code in italics!
Please help me!

Thanks Advance!