3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { public function go(iterable $x): void; } final class Test implements I { public function go(iterable|Generator $x): void { echo 'It\'s work!'; } } (new Test())->go([]); echo "\n"; (new Test())->go((static fn() => yield 1)());

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.5.60.0060.00716.79
8.5.30.0060.01019.52
8.5.20.0120.00618.00
8.5.10.0100.00816.43
8.5.00.0130.00920.04
8.4.180.0080.00419.52
8.4.170.0140.00822.00
8.4.160.0140.00823.90
8.4.150.0130.00417.71
8.4.140.0070.01417.48
8.4.130.0050.00418.88
8.4.120.0110.00824.16
8.4.110.0040.00418.86
8.4.100.0090.01118.93
8.4.90.0130.00720.40
8.4.80.0140.00918.92
8.4.70.0160.00718.18
8.4.60.0140.00718.81
8.4.50.0120.00820.53
8.4.40.0100.01017.73
8.4.30.0030.00518.64
8.4.20.0030.01719.50
8.4.10.0090.00919.36
8.3.300.0150.00620.52
8.3.290.0130.00720.79
8.3.280.0100.01118.45
8.3.270.0100.00916.52
8.3.260.0050.00416.67
8.3.250.0120.00618.80
8.3.240.0140.00517.37
8.3.230.0130.00716.55
8.3.220.0130.00518.90
8.3.210.0100.00816.45
8.3.200.0030.00616.46
8.3.190.0010.00717.00
8.3.180.0120.00716.41
8.3.170.0160.00318.79
8.3.160.0130.00618.23
8.3.150.0120.00618.85
8.3.140.0170.00020.56
8.3.130.0040.00418.41
8.3.120.0080.00020.87
8.3.110.0000.00818.30
8.3.100.0110.00018.13
8.3.90.0000.00826.77
8.3.80.0060.00317.97
8.3.70.0140.00318.43
8.3.60.0070.01018.09
8.3.50.0040.01416.70
8.3.40.0100.00722.19
8.3.30.0100.00321.77
8.3.20.0070.00024.18
8.3.10.0110.00324.66
8.3.00.0040.00426.16
8.2.300.0170.00518.11
8.2.290.0070.00720.39
8.2.280.0090.00618.50
8.2.270.0140.00416.48
8.2.260.0070.00017.27
8.2.250.0060.00916.56
8.2.240.0060.00318.88
8.2.230.0070.00420.94
8.2.220.0140.00724.06
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0120.00416.75
8.2.180.0100.00316.75
8.2.170.0040.01119.01
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00819.10
8.2.110.0060.00319.36
8.1.340.0120.00717.71
8.1.330.0160.00221.69
8.1.320.0090.00816.08
8.1.310.0080.00816.91
8.1.300.0090.00619.58
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0050.00324.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0040.00419.06
8.0.00.0070.00921.67

preferences:
82.45 ms | 842 KiB | 5 Q