samer wroteRegarding studying abroad as a gateway to residence, you'd have to do more research, but my understanding is that if you can get admitted to a public German university, the tuition would be (almost) free. After graduating, you'll be given 12-18 months to find a job, which would be way easier than trying to apply from Beirut.
My understanding is that US offers a similar pathway, but with less time to find a job. I believe Canada would offers something similar.
Germany is a good suggestion, the quality of education should be good and the student life is good. You would have to learn German (unless there are public universities in english, I am not sure) which is no easy task by any standard, but would be worth it.
I know at least one person who studied in London and then found work there and stayed. The advantage of the UK is the low language barrier and generally it is welcoming for foreign students, of which there are many. However the big negative is that you have to pay a fortune in student fees and living expenses.