Got it:

Executing php inside smarty:

{php}
any statement
{/php}