3v4l.org

run code in 300+ PHP versions simultaneously
<?hh namespace Hack\UserDocumentation\Async\Intro\Examples\Curl; async function curl_A(): Awaitable<string> { return await \HH\Asio\curl_exec("http://example.com/"); } async function curl_B(): Awaitable<string> { return await \HH\Asio\curl_exec("http://example.net/"); } async function async_curl(): Awaitable<void> { $start = microtime(true); list($a, $b) = await \HH\Asio\v(array(curl_A(), curl_B())); $end = microtime(true); echo "Total time taken: " . strval($end - $start) . " seconds" . PHP_EOL; var_dump($a, $b); } \HH\Asio\join(async_curl());

This is an error 404

There are `0` results


preferences:
133.56 ms | 1403 KiB | 7 Q