Trying to use php to find if a channel is live

PHP uses a . to concantente, you just tied to do math and got an unexpected header

You should be using

"Authorization: Bearer " . $keys->access_token