I have been working on .Net c# this past 2 years, coming from PHP. The hardest thing for me was to remember to close my database connections. Of course when you don't close one connection, your app doesn't break, it simply consumes more memory. After a few hundred requests, your database fail and you have no clue what went wrong. (close your connections!)
In PHP, when your page is done processing, the process is killed and all the connections, file handles, or resources it had open will be closed.
The more I work with .Net, the more I get to appreciate the things in PHP I had taken for granted.
I wrote about this a year ago: https://idiallo.com/blog/php-fast-debug-time