A plugin that adds that ability to insert any PHP code into a sidebar widget.
You may enter PHP code both in the title and the body.
If you want to customize it a little more using CSS. The class name is 'widget inphp'. With this you can customize it a little more.