And yes, 4,5k USD/month is massively good salary for Europe.
On the other hand, I see many job offers with salaries being just a joke (idk if they find any good developers for such money)
In eastern and southern europe: that's probably good for a junior engineer, and perhaps average for a senior
In northern europe: that's probably average for a junior, below average for a senior
For example, in Berlin it seems to me that average salaries are around 70k EUR/year (6.6k USD/month) and really good salaries are well above 90k EUR/year (8.5k USD/month).
You can see more data in https://www.levels.fyi, which it is skewed to the high side, but gives you an idea about what good offers are nowadays.
I'd consider a PHP job, but only if they quarantee they don't have any of those legacy maintaining things lying around.
I see your point, but there is lots of legacy code (in any language) laying around and making shit tons of money for their owners - hence the need to maintain these systems.
PHP had no common way to do anything for a long time and you still see it from people writing PHP today.