I have a PHP script which runs fine on a Raspberry Pi PHP 5.4.4, but when I run the same script on a Cubiboard2 ( about twice the power of the Pi) PHP 5.4.6 I get a long delay. In both cases there is no caching of the PHP. The problem seems to be with a file_get_contents request which is retrieving some xml from the web. Although if I enter the same information in a browser in the same system it comes back quickly enough.
Any ideas of how to track the problem down.