Temporary dump all $_ENV vars.
Using a wildcard for the php version on Heroku.
Updated segment.io code to its latest version.
And moved it to the head of the page.
Issue with env vars is fixed.