It will work with any version prior to 7. So any version of php 4,5, or 6 will work. If you give me the exact error I can tell you if it is related to the php version or not. I don't think UE would have any problems related to php7 unless of course you are getting values from the database and the database issue is the true cause.