3v4l.org

run code in 300+ PHP versions simultaneously
<?hh namespace Hack\UserDocumentation\Async\Intro\Examples\Curl; async function curl_A(): Awaitable<string> { $x = await \HH\Asio\curl_exec("http://example.com/"); return $x; } async function curl_B(): Awaitable<string> { $y = await \HH\Asio\curl_exec("http://example.net/"); return $y; } 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; } \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.60.0110.00718.55
8.3.50.0310.01321.20
8.3.40.0120.00318.80
8.3.30.0130.01018.42
8.3.20.0040.00418.61
8.3.10.0040.00420.16
8.3.00.0080.00017.68
8.2.180.0130.01016.32
8.2.170.0100.00718.64
8.2.160.0030.01219.21
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0030.00626.16
8.2.120.0000.00721.00
8.2.110.0070.00321.18
8.2.100.0030.00917.91
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0080.00017.80
8.2.50.0090.00018.10
8.2.40.0000.00820.46
8.2.30.0050.00220.43
8.2.20.0040.00417.58
8.2.10.0000.00817.90
8.2.00.0000.00817.83
8.1.280.0150.00625.92
8.1.270.0040.00423.79
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0080.00022.02
8.1.230.0110.00019.01
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0050.00317.10
8.1.180.0030.00618.10
8.1.170.0040.00418.93
8.1.160.0030.00718.97
8.1.150.0000.00718.59
8.1.140.0040.00419.42
8.1.130.0030.00317.55
8.1.120.0070.00017.30
8.1.110.0000.00917.20
8.1.100.0000.00717.27
8.1.90.0000.00817.21
8.1.80.0000.00717.32
8.1.70.0030.00517.20
8.1.60.0040.00417.33
8.1.50.0000.00817.41
8.1.40.0000.00717.27
8.1.30.0060.00317.55
8.1.20.0000.00717.48
8.1.10.0070.00017.34
8.1.00.0020.00517.43
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00818.41
8.0.270.0000.00717.21
8.0.260.0040.00417.05
8.0.250.0030.00316.80
8.0.240.0000.00716.88
8.0.230.0070.00016.83
8.0.220.0000.00816.74
8.0.210.0070.00016.63
8.0.200.0060.00016.78
8.0.190.0000.00716.89
8.0.180.0000.00716.66
8.0.170.0070.00016.74
8.0.160.0040.00416.76
8.0.150.0030.00616.68
8.0.140.0030.00316.71
8.0.130.0060.00013.40
8.0.120.0000.00716.62
8.0.110.0030.00516.75
8.0.100.0030.00316.58
8.0.90.0050.00216.58
8.0.80.0120.00916.63
8.0.70.0040.00416.62
8.0.60.0050.00216.62
8.0.50.0000.00716.65
8.0.30.0060.01317.07
8.0.20.0110.00917.40
8.0.10.0000.00716.82
8.0.00.0100.00816.72
7.4.330.0040.00015.08
7.4.320.0030.00316.29
7.4.300.0000.00716.37
7.4.290.0040.00716.34
7.4.280.0050.00516.35
7.4.270.0070.00016.38
7.4.260.0070.00016.42
7.4.250.0040.00416.43
7.4.240.0020.00516.22
7.4.230.0000.00716.39
7.4.220.0030.01316.48
7.4.210.0080.00616.43
7.4.200.0040.00416.53
7.4.150.0030.01317.40
7.4.140.0080.01117.86
7.4.130.0090.01016.39
7.4.120.0090.00916.44
7.4.110.0140.01116.54
7.4.100.0140.00716.48
7.4.90.0080.00816.20
7.4.80.0100.00919.39
7.4.70.0090.00616.30
7.4.60.0140.00016.30
7.4.50.0030.01216.34
7.4.40.0240.00016.12
7.4.30.0030.01316.36
7.3.330.0000.00513.15
7.3.320.0050.00012.97
7.3.310.0000.00716.13
7.3.300.0000.00615.93
7.3.290.0030.00316.07
7.3.280.0100.00816.14
7.3.270.0120.00617.40
7.3.260.0180.00616.37
7.3.250.0060.01416.25
7.3.240.0080.00916.36
7.3.230.0150.00316.52
7.3.210.0060.01016.08
7.3.200.0120.00416.21
7.3.190.0060.01116.11
7.3.180.0140.00716.13
7.3.170.0090.00616.25
7.3.160.0100.00616.13
7.2.330.0090.01116.21
7.2.320.0000.01816.23
7.2.310.0110.01116.49
7.2.300.0000.01616.49
7.2.290.0120.00916.59
7.1.40.0150.01234.21
7.1.30.0170.00834.22
7.1.20.0170.01034.34
7.1.10.0050.00716.21
7.1.00.0070.00516.44
7.0.180.0020.00815.88
7.0.170.0050.00715.95
7.0.160.0000.01215.83
7.0.150.0050.00715.99
7.0.140.0050.00716.13
7.0.130.0000.01216.16
7.0.120.0030.00816.11
7.0.110.0050.00716.17
7.0.100.0030.00816.01
7.0.90.0030.00816.06
7.0.80.0030.00816.21
7.0.70.0000.01016.02
7.0.60.0030.00715.84
7.0.50.0070.02617.54
7.0.40.0120.02117.66
7.0.30.0110.02317.55
7.0.20.0090.02717.59
7.0.10.0130.02817.53
7.0.00.0080.02717.56
5.6.300.0050.05820.66
5.6.290.0130.06220.65
5.6.280.0100.05820.69
5.6.270.0150.05020.80
5.6.260.0070.05520.67
5.6.250.0170.05020.76
5.6.240.0080.05820.62
5.6.230.0050.06020.84
5.6.220.0050.05820.67
5.6.210.0080.06220.68
5.6.200.0170.05720.82
5.6.190.0130.06320.84
5.6.180.0170.05120.81
5.6.170.0100.06020.82
5.6.160.0090.05920.79
5.6.150.0060.06320.85
5.6.140.0100.05820.85
5.6.130.0130.07220.76
5.6.120.0130.06320.92
5.6.110.0110.06220.83
5.6.100.0110.05820.94
5.6.90.0090.06320.86
5.6.80.0140.05320.24
5.6.70.0170.05320.19
5.6.60.0170.05220.24
5.6.50.0090.05820.25
5.6.40.0080.06320.14
5.6.30.0120.05220.22
5.6.20.0140.06020.28
5.6.10.0130.05320.16
5.6.00.0100.05920.21
5.5.380.0150.04717.35
5.5.370.0080.05217.32
5.5.360.0070.05717.38
5.5.350.0070.05317.40
5.5.340.0090.06718.82
5.5.330.0180.05718.86
5.5.320.0130.05218.91
5.5.310.0120.05418.86
5.5.300.0160.06318.87
5.5.290.0160.06218.87
5.5.280.0170.06018.89
5.5.270.0200.05918.76
5.5.260.0110.06418.86
5.5.250.0120.06118.51
5.5.240.0100.05418.17
5.5.230.0130.05418.17
5.5.220.0140.05018.26
5.5.210.0160.05418.19
5.5.200.0160.05218.09
5.5.190.0140.05818.22
5.5.180.0120.05118.14
5.5.160.0080.06218.29
5.5.150.0100.05118.25
5.5.140.0090.05418.22
5.5.130.0120.05018.16
5.5.120.0210.04818.27
5.5.110.0120.05118.30
5.5.100.0040.06118.13
5.5.90.0130.04818.07
5.5.80.0110.05218.13
5.5.70.0090.05318.17
5.5.60.0090.05718.07
5.5.50.0120.06418.00
5.5.40.0160.04918.16
5.5.30.0160.04718.12
5.5.20.0160.05418.04
5.5.10.0190.04718.06
5.5.00.0180.05218.12

preferences:
51.26 ms | 401 KiB | 5 Q