Using Php Filter with Ckeditor?
Change the 'insertElement' function for 'insertHtml' function

editor.addCommand('phpcode', {
  exec : function() {
    editor.insertHtml('&lt;div id="phpcode"&gt;&lt;?php echo "hello"; ?&gt;&lt;/div&gt;');
  }
});


Hope it will be work.