I think that WordPress is still big enough to keep PHP alive. Furthermore, the sheer number of developer that started coding web apps with PHP in year 2000 plus minus 5 years is large enough to give PHP a critical mass for the next 20 years.

Is Automattic contributing back to PHP? I think that WordPress benefits because PHP is available, but does not significantly contribute to PHP development.

WordPress is keeping PHP alive now

But PHP wouldn't be here today if it wasn't for Meta and it's support.

WordPress is from 2003 and has been very successful since the beginning. FaceBook is from 2004. Both were PHP apps because the late 90s and early 2000s were the years of PHP CMSes and ecommerce platforms. Even if FaceBook did not happen PHP would have been one of the top 5 languages of that age. PHP was popular because of web hostings and the simplicity of apache + mod PHP. It was not big in hype because it was a really bad language until about version 7 and few people would admit to like it.

Actually, FaceBook worked against WordPress and the adoption of PHP because a number of people that could have used a WP instance to blog or to market a product started using a FB page instead. Ecommerce went from self hosted (Magento, Woocommerce, Prestashop) to hosted or to Amazon and also FB.

FB actually made PHP faster (HHVM) and contributed to it upstream with bug fixes (like they are doing with ffmpeg here)

Wordpress did nothing to help further PHP other than adoption (which is still important, but not as important)