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());

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.40.0120.00618.60
8.3.30.0140.00018.49
8.3.20.0040.00420.22
8.3.10.0040.00423.48
8.3.00.0000.00819.84
8.2.170.0120.00318.86
8.2.160.0160.00322.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0090.00019.32
8.2.120.0050.00326.35
8.2.110.0040.00819.31
8.2.100.0070.00320.44
8.2.90.0030.00519.39
8.2.80.0000.00719.41
8.2.70.0030.00517.92
8.2.60.0000.00917.80
8.2.50.0050.00318.10
8.2.40.0050.00322.20
8.2.30.0000.00820.53
8.2.20.0040.00417.59
8.2.10.0050.00217.82
8.2.00.0080.00017.98
8.1.270.0000.00820.38
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00322.11
8.1.230.0130.00019.10
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0050.00518.58
8.1.160.0070.00020.63
8.1.150.0070.00018.78
8.1.140.0030.00519.35
8.1.130.0000.00717.60
8.1.120.0000.00717.31
8.1.110.0030.00417.32
8.1.100.0040.00417.36
8.1.90.0070.00017.20
8.1.80.0000.00717.26
8.1.70.0080.00017.30
8.1.60.0020.00517.32
8.1.50.0050.00317.25
8.1.40.0070.00017.34
8.1.30.0040.00417.46
8.1.20.0040.00417.52
8.1.10.0040.00417.44
8.1.00.0000.00817.29
8.0.300.0000.00819.66
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.16
8.0.260.0030.00317.09
8.0.250.0070.00016.73
8.0.240.0000.00716.80
8.0.230.0000.00616.81
8.0.220.0000.00716.74
8.0.210.0040.00416.73
8.0.200.0000.00816.84
8.0.190.0000.00816.71
8.0.180.0000.00716.66
8.0.170.0030.00316.66
8.0.160.0080.00016.65
8.0.150.0080.00016.60
8.0.140.0070.00016.71
8.0.130.0000.00513.41
8.0.120.0000.00816.64
8.0.110.0030.00316.57
8.0.100.0030.00516.79
8.0.90.0040.00416.57
8.0.80.0120.00316.74
8.0.70.0040.00416.78
8.0.60.0000.00816.75
8.0.50.0070.00016.71
8.0.30.0080.01016.91
8.0.20.0100.01017.40
8.0.10.0070.00016.72
8.0.00.0090.00816.54
7.4.330.0000.00516.78
7.4.320.0000.00716.40
7.4.300.0000.00616.46
7.4.290.0030.00316.27
7.4.280.0030.00716.49
7.4.270.0000.00716.27
7.4.260.0000.00716.38
7.4.250.0040.00416.33
7.4.240.0000.00716.33
7.4.230.0070.00016.40
7.4.220.0130.01016.29
7.4.210.0080.00816.30
7.4.200.0000.00616.48
7.4.160.0040.01216.16
7.4.150.0110.00717.40
7.4.140.0090.00817.86
7.4.130.0130.00716.31
7.4.120.0170.00216.30
7.4.110.0070.01616.22
7.4.100.0060.01716.32
7.4.90.0030.01316.27
7.4.80.0090.00919.39
7.4.70.0100.00716.51
7.4.60.0050.01116.35
7.4.50.0110.00716.38
7.4.40.0030.01316.27
7.4.30.0060.01216.44
7.3.330.0030.00413.23
7.3.320.0020.00212.96
7.3.310.0030.00316.08
7.3.300.0070.00015.96
7.3.290.0030.00316.09
7.3.280.0070.00916.13
7.3.270.0110.00517.40
7.3.260.0100.00716.12
7.3.250.0070.01016.35
7.3.240.0110.00916.34
7.3.230.0100.00716.39
7.3.210.0090.00616.11
7.3.200.0090.00616.17
7.3.190.0100.00716.37
7.3.180.0080.00816.37
7.3.170.0110.00716.28
7.3.160.0090.00616.46
7.2.330.0130.00616.53
7.2.320.0150.00316.48
7.2.310.0050.01516.43
7.2.300.0040.01216.60
7.2.290.0130.00916.45
7.0.00.0130.08320.22
5.6.160.0000.04720.50
5.6.150.0170.04718.27
5.6.140.0100.08018.23
5.6.130.0070.04718.25
5.6.120.0130.07720.96
5.6.110.0030.04721.07
5.6.100.0030.09020.95
5.6.90.0030.07720.96
5.6.80.0100.08020.38
5.5.300.0100.07018.01
5.5.290.0030.06017.98
5.5.280.0030.06320.79
5.5.270.0000.07720.75
5.5.260.0170.07320.95
5.5.250.0100.07720.58
5.5.240.0200.07720.23

preferences:
50.93 ms | 400 KiB | 5 Q