...
MailChimp does not host a PHP server so if you want to implement custom PHP code, make sure your CMS (content management system) can host a PHP server.
Mailgun offers a free-tier for emailing service if your application requires that functionality. It comes with a free dashboard to manage emails sent, opened, received, rejected, etc. It is also scalable and is built in Heroku as an add-on.