Here you can play several questions, all of which are related to the settings in php.ini. Your script can be synchronized, since PHP by default has a maximum of 30 seconds to execute the script. Another reason (and exactly the same) is because you are pushing the script memory limit, which by default is 8 MB per script execution.
Open php.ini and search for "Resource restrictions" and make the appropriate changes.
source
share