<?hh namespace Hack\UserDocumentation\Async\Intro\Examples\NonAsyncCurl; function curl_A(): mixed { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://example.com/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); return curl_exec($ch); } function curl_B(): mixed { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://example.net/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); return curl_exec($ch); } function main(): void { $start = microtime(true); $a = curl_A(); $b = curl_B(); $end = microtime(true); echo "Total time taken: " . strval($end - $start) . " seconds" . PHP_EOL; } main();
You have javascript disabled. You will not be able to edit any code.
There are `0` results