3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ListA implements IteratorAggregate { public function getIterator() { return new ArrayIterator(['abc','def','dfgh']); } } $a = new ListA; echo $a[2];

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.0070.01016.88
8.3.50.0070.01121.28
8.3.40.0080.00618.82
8.3.30.0030.01018.67
8.3.20.0040.00420.21
8.3.10.0040.00421.77
8.3.00.0040.00423.64
8.2.180.0130.00916.50
8.2.170.0110.00422.96
8.2.160.0070.00720.47
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0030.00620.97
8.2.120.0040.00426.35
8.2.110.0090.00019.33
8.2.100.0040.00718.05
8.2.90.0000.00819.40
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0100.00218.09
8.2.40.0000.00822.31
8.2.30.0000.00819.48
8.2.20.0040.00417.80
8.2.10.0000.00718.12
8.2.00.0080.00018.11
8.1.280.0150.00625.92
8.1.270.0100.00322.24
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0040.00422.46
8.1.230.0110.00017.77
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0000.00818.70
8.1.160.0050.00220.78
8.1.150.0000.00720.59
8.1.140.0040.00419.61
8.1.130.0040.00417.63
8.1.120.0070.00017.51
8.1.110.0050.00317.32
8.1.100.0070.00017.36
8.1.90.0000.00817.34
8.1.80.0040.00617.48
8.1.70.0030.00317.41
8.1.60.0100.00017.59
8.1.50.0050.00317.39
8.1.40.0110.00317.54
8.1.30.0080.00017.55
8.1.20.0000.00717.70
8.1.10.0040.00417.62
8.1.00.0000.00817.47
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0000.00717.26
8.0.260.0060.00017.24
8.0.250.0000.00717.00
8.0.240.0040.00417.06
8.0.230.0030.00316.98
8.0.220.0040.00416.95
8.0.210.0000.00716.95
8.0.200.0000.00716.98
8.0.190.0090.00317.04
8.0.180.0050.00316.87
8.0.170.0030.00616.92
8.0.160.0030.00316.97
8.0.150.0050.00316.88
8.0.140.0030.00316.81
8.0.130.0030.00313.38
8.0.120.0040.00416.93
8.0.110.0040.00416.92
8.0.100.0000.00716.96
8.0.90.0050.00216.80
8.0.80.0030.01316.99
8.0.70.0070.00016.83
8.0.60.0040.00416.80
8.0.50.0000.00716.97
8.0.30.0020.01617.22
8.0.20.0110.00817.40
8.0.10.0040.00416.94
8.0.00.0110.00916.77
7.4.330.0000.00616.66
7.4.320.0040.00416.61
7.4.300.0000.00816.48
7.4.290.0070.00416.51
7.4.280.0000.00916.59
7.4.270.0000.00716.52
7.4.260.0030.00516.63
7.4.250.0070.00016.44
7.4.240.0030.00316.57
7.4.230.0050.00216.43
7.4.220.0090.00916.68
7.4.210.0080.00616.52
7.4.200.0030.00316.48
7.4.160.0100.00716.40
7.4.150.0130.00617.40
7.4.140.0080.01317.86
7.4.130.0020.01516.65
7.4.120.0120.00716.50
7.4.110.0030.01416.31
7.4.100.0090.01516.71
7.4.90.0140.00316.50
7.4.80.0150.00619.39
7.4.70.0110.00616.49
7.4.60.0110.00616.38
7.4.50.0060.00616.35
7.4.40.0100.00716.57
7.4.30.0090.00916.48
7.4.00.0120.00615.18
7.3.330.0000.00513.37
7.3.320.0000.00513.31
7.3.310.0030.00316.39
7.3.300.0040.00416.41
7.3.290.0090.00816.28
7.3.280.0080.00816.24
7.3.270.0120.00617.40
7.3.260.0000.01716.51
7.3.250.0140.00416.38
7.3.240.0090.01416.47
7.3.230.0140.00316.46
7.3.210.0110.00616.18
7.3.200.0070.01119.39
7.3.190.0090.00816.34
7.3.180.0040.01116.32
7.3.170.0130.00716.36
7.3.160.0100.01016.48
7.2.330.0120.00616.74
7.2.320.0150.00916.76
7.2.310.0070.01016.80
7.2.300.0120.00416.79
7.2.290.0100.01016.39
7.2.60.0100.00017.16
7.2.50.0140.00016.83
7.2.00.0090.00619.39
7.1.200.0040.00715.71
7.1.100.0040.01218.39
7.1.70.0000.00817.10
7.1.60.0070.01819.40
7.1.50.0200.01334.45
7.1.00.0000.08022.30
7.0.200.0100.00016.89
7.0.60.0200.06321.71
7.0.50.0130.04717.94
7.0.40.0030.05320.24
7.0.30.0170.04320.20
7.0.20.0270.04720.25
7.0.10.0100.03720.33
7.0.00.0030.08720.29
5.6.280.0000.07721.15
5.6.210.0170.06020.62
5.6.200.0030.04018.25
5.6.190.0030.06320.46
5.6.180.0230.04020.49
5.6.170.0230.03320.45
5.6.160.0070.08320.48
5.6.150.0070.08018.18
5.6.140.0070.08318.21
5.6.130.0030.08718.29
5.6.120.0100.07321.13
5.6.110.0100.06320.98
5.6.100.0100.07320.89
5.6.90.0070.08721.03
5.6.80.0000.08320.36
5.5.350.4270.04320.40
5.5.340.0100.07718.02
5.5.330.0200.07020.31
5.5.320.0570.07020.27
5.5.310.0270.07720.21
5.5.300.0100.07017.95
5.5.290.0170.03018.08
5.5.280.0070.03720.88
5.5.270.0070.08020.79
5.5.260.0070.07720.79
5.5.250.0070.05320.69
5.5.240.0200.07720.19

preferences:
42.02 ms | 401 KiB | 5 Q