title: Perform the same procedure three times simultaneously
body: <p>I made a PHP script to fetch Google some information about games and then I return the results and make the necessary treatments and perform other functions on top of the results. </p>
  
  <p>I want to do the same search using Yahoo, Bing and 2 more search engines and need this to be done as quickly as possible, optimizing execution speed. </p>
  
  <pre><code>index.php = receives data search and call the file search.php 
  search.php = calls all search scripts (google.php, yahoo.php, bing.php, etc ...) and after everyone ends their respective executions, calls the init.php file
  init.php = has all the data of the other files, proceeds with the treatment and analysis of data
  </code></pre>
  
  <p>What is the best and fastest way to optimize perform this type of task in which I need to perform a "same procedure" (similar) and all at the same time to lower the speed of execution of the script.</p>
  
  <p>Searching on Google, I found tips of people talking about <code>popen and pclose</code>, <code>wget or curl</code>, <code>shell_exec</code>, etc...</p>
  
  <p>Not is an opinion question and yes technique about performance, if someone already has needed to do something similar that leave your answer and explain why it is the fastest way.</p>