3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = new AppendIterator(); $i->append(new NoRewindIterator((fn ()=> yield 1)())); $i->append(new NoRewindIterator((fn ()=> yield 2)())); var_dump($i); var_dump(iterator_to_array($i));

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.0.30.0060.00916.91
8.0.20.0090.01316.90
8.0.10.0110.00916.93
8.0.00.0050.01317.00
7.4.160.0060.01016.65
7.4.150.0090.00916.55
7.4.140.0110.00916.47
7.4.130.0100.00816.58
7.4.120.0060.01116.47
7.4.110.0100.00816.49
7.4.100.0090.01216.50
7.4.90.0110.00816.36
7.4.80.0130.00916.52
7.4.70.0150.00516.50
7.4.60.0080.01216.36
7.4.50.0070.00816.37
7.4.40.0060.00916.29
7.4.30.0060.01316.49
7.4.20.0110.00616.46
7.4.10.0070.01116.52
7.4.00.0100.00916.54
7.3.270.0060.01116.16
7.3.260.0070.01116.14
7.3.250.0140.00416.18
7.3.240.0080.00816.17
7.3.230.0040.01316.14
7.3.220.0100.00916.12
7.3.210.0100.00916.14
7.3.200.0060.01316.09
7.3.190.0090.01016.11
7.3.180.0070.01316.13
7.3.170.0070.00916.12
7.3.160.0060.00916.09
7.3.150.0080.00816.14
7.3.140.0100.00716.09
7.3.130.0090.01016.15
7.3.120.0140.00616.08
7.3.110.0080.00916.09
7.3.100.0090.01016.09
7.3.90.0100.01016.42
7.3.80.0060.00916.11
7.3.70.0070.00816.15
7.3.60.0060.01216.22
7.3.50.0110.00716.24
7.3.40.0080.00916.19
7.3.30.0050.01116.17
7.3.20.0070.01216.27
7.3.10.0080.01016.15
7.3.00.0060.01216.15