How to run PHP code in Text Widget with no plugin in WP 4.4

Better to write your own widget that does precisely what you need instead of something like this.

However, if you really want to execute arbitrary PHP in a widget, use a plugin specifically designed for that task: https://wordpress.org/plugins/php-code-widget/

I maintain this plugin specifically so that people don’t resort to doing things like what you have in your post. The PHP Code Widget is basically a copy of the text widget, but which also runs PHP Code.

Nevertheless, PHP Code Widgets are a bad-idea™ and should be avoided. Make a custom widget with your static code instead.