<?php
function f($str){
echo '<?php<br><br>';
echo 'function f($str){<br> '.$str.'}<br><br>';
echo 'f("'.htmlentities($str).'");<br><br>';
echo '?>';
}
f(" echo '&lt;?php<br><br>';<br> echo 'function f($str){<br> '.$str.'}<br><br>';<br> echo 'f("'.htmlentities($str).'");<br><br>';<br> echo '?>';<br>");
?>