我的php网站在XAMPP(localhost)中工作正常,但卡在实时服务器和WAMP上

I am using a collection of APIs to get data.On XAMPP, my site is working fine but its not working on either wamp or live server. On wamp its not inserting data into db and on live server ALEXA rank Api is not working.My settings on XAMPP are

Database server

Server: 127.0.0.1 via TCP/IP
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.1.38-MariaDB - mariadb.org binary distribution
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)

Web server

Apache/2.4.38 (Win64) OpenSSL/1.0.2q PHP/5.6.40
Database client version: libmysql - mysqlnd 5.0.11-dev - 20120503 - $Id:         76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 5.6.40

While I have same setting on WAMPP/Live Server I have checked the extensions and php.ini file is same

First I run this code to get data from apis https://onlinenotepad.us/UQP8l6S6CX

Second I run this file, to call apis (alexa api does not work on live server while others work fine) https://onlinenotepad.us/Y9Rnf7tx7e

Here is the process code finalProcess.php that is run in the end to store data in db. $arguments contains the data

https://onlinenotepad.us/GTPmXN0HRb

On Live Server alexa rank api is not called. On WAMPP its not fetching data. ON XAMPP everything is perfect!