Youtube have been increasing their anti-adblock efforts dramatically in the last few weeks, changing the scripts multiple times a day. The ublock origin team is very quick in updating the filters though. They have a post on their subreddit with some details.
It has also improved a lot in the last years. PHP5 and especially versions older than that weren’t very good and deserved a lot of the criticism. PHP7 and onward are much better languages and don’t deserve the hate.