Swank, В самое начало process_code:
$php = substr($php, 0, 2) != "<?" ? "<?php\n" . $php . "\n?>" : $php;