3v4l.org

run code in 500+ PHP versions simultaneously
<?php $gen1 = static function () { yield true => true; }; $gen2 = static function () { yield false => false; }; $ait = new AppendIterator(); $ait->append($gen1()); $ait->append($gen2()); foreach ($ait as $k => $v) { var_dump($k, $v); }

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.30.0090.00820.71
8.5.20.0110.00621.29
8.5.10.0110.00620.23
8.5.00.0080.01222.85
8.4.180.0120.01023.93
8.4.170.0130.00822.00
8.4.160.0130.00923.70
8.4.150.0060.00716.83
8.4.140.0130.00917.52
8.4.130.0080.00117.79
8.4.120.0110.00822.13
8.4.110.0110.01018.63
8.4.100.0140.00617.78
8.4.90.0140.00717.68
8.4.80.0120.00419.62
8.4.70.0110.00917.82
8.4.60.0120.00918.55
8.4.50.0100.00917.87
8.4.40.0120.00319.41
8.4.30.0130.00720.32
8.4.20.0080.00317.75
8.4.10.0130.00621.96
8.3.300.0110.00920.58
8.3.290.0140.00920.75
8.3.280.0070.00416.26
8.3.270.0110.00916.65
8.3.260.0040.00516.63
8.3.250.0120.00918.85
8.3.240.0150.00416.55
8.3.230.0050.00516.43
8.3.220.0110.00818.30
8.3.210.0100.00816.55
8.3.200.0070.00616.38
8.3.190.0080.01018.81
8.3.180.0120.00818.45
8.3.170.0110.00717.06
8.3.160.0150.00320.68
8.3.150.0070.01119.13
8.3.140.0120.00316.53
8.3.130.0030.00718.43
8.3.120.0110.00420.90
8.3.110.0100.00016.37
8.3.100.0040.00420.15
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0060.01216.63
8.3.60.0160.00618.52
8.3.50.0120.00320.12
8.3.40.0070.01021.95
8.3.30.0120.00918.41
8.3.20.0040.00424.18
8.3.10.0100.00624.66
8.3.00.0070.00026.16
8.2.300.0060.01118.10
8.2.290.0100.00918.82
8.2.280.0070.00118.23
8.2.270.0100.00720.71
8.2.260.0100.00318.89
8.2.250.0090.00018.41
8.2.240.0090.00918.25
8.2.230.0040.00420.94
8.2.220.0100.00024.06
8.2.210.0110.00726.77
8.2.200.0100.00016.50
8.2.190.0090.00616.63
8.2.180.0120.00325.92
8.2.170.0090.00618.79
8.2.160.0100.00722.96
8.2.150.0030.00625.66
8.2.140.0040.01124.66
8.2.130.0100.00326.16
8.2.120.0110.00319.77
8.2.110.0110.00022.26
8.2.100.0060.00319.28
8.1.340.0120.00917.52
8.1.330.0110.00816.24
8.1.320.0090.00916.29
8.1.310.0100.00016.50
8.1.300.0000.01518.09
8.1.290.0030.00630.84
8.1.280.0090.00925.92
8.1.270.0060.00323.99
8.1.260.0130.00326.35
8.1.250.0000.00728.09
8.1.240.0040.00422.11
8.1.230.0060.00318.62
8.1.80.0070.00417.45

preferences:
40.34 ms | 847 KiB | 5 Q