Hello. I am Andrey.
Just two day ago I finished project(PHP - Yii2 ), working with csv files.
I have seen screens and looks like script "ate" all free memory. I think you(or programmist) should impove algorithm of loading data...
I can help you for your problem.