Sometimes, it becomes necessary to run a PHP code in your wordpress posts or pages to display a plugin output or for other reasons to make use of wordpress as a powerful CMS. There are virtually countless plugins which allow you to run PHP in wordpress.
“WordPress PHP exec” is a plugin that lets you execute dynamic PHP code in posts. It masks PHP code before balanceTags, and unmask them afterwards, so it should be safe to use PHP code that has literal HTML tags in it, for example: code which print out HTML.
For example, you can put you PHP codes like
echo “Current date and time: “;
echo date(“l dS of F Y h:i:s A”);
and get your output inside your page/post.