3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements IteratorAggregate { public function getIterator() { return new ArrayIterator(['foo', 'bar', 'baz']); } } foreach (new Foo as $foo) { var_dump($foo); }

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.40.0140.00018.79
8.3.30.0130.00020.38
8.3.20.0030.00620.27
8.3.10.0080.00022.09
8.3.00.0040.00422.44
8.2.170.0090.00622.96
8.2.160.0140.00720.25
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0080.00020.75
8.2.110.0080.00322.29
8.2.100.0110.00017.78
8.2.90.0080.00019.22
8.2.80.0040.00419.40
8.2.70.0040.00417.50
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0040.00418.21
8.2.30.0000.00719.30
8.2.20.0040.00417.65
8.2.10.0000.00717.56
8.2.00.0030.00617.73
8.1.270.0000.00823.99
8.1.260.0140.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00723.65
8.1.230.0080.00320.89
8.1.220.0000.00818.61
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0040.00417.52
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0050.00218.80
8.1.150.0000.00918.63
8.1.140.0040.00417.49
8.1.130.0030.00317.88
8.1.120.0000.00717.45
8.1.110.0070.00017.44
8.1.100.0000.00717.52
8.1.90.0000.00717.46
8.1.80.0040.00417.42
8.1.70.0000.00817.42
8.1.60.0030.00717.46
8.1.50.0090.00017.55
8.1.40.0080.00317.54
8.1.30.0050.00217.45
8.1.20.0080.00017.55
8.1.10.0030.00517.60
8.1.00.0030.00717.39
8.0.300.0000.00718.77
8.0.290.0030.00417.05
8.0.280.0040.00418.39
8.0.270.0030.00317.23
8.0.260.0040.00416.77
8.0.250.0070.00016.83
8.0.240.0110.00016.84
8.0.230.0040.00716.92
8.0.220.0000.00716.81
8.0.210.0030.00316.85
8.0.200.0030.00316.96
8.0.190.0030.00316.96
8.0.180.0040.00416.80
8.0.170.0000.00816.81
8.0.160.0070.00016.76
8.0.150.0000.00816.83
8.0.140.0000.01116.80
8.0.130.0000.00513.27
8.0.120.0040.00416.80
8.0.110.0000.00716.89
8.0.100.0040.00416.77
8.0.90.0050.00216.83
8.0.80.0080.00816.91
8.0.70.0040.00416.88
8.0.60.0000.00816.68
8.0.50.0000.00716.83
8.0.30.0140.00517.13
8.0.20.0080.01217.40
8.0.10.0000.00716.89
8.0.00.0070.01116.71
7.4.330.0050.00015.05
7.4.320.0030.00316.41
7.4.300.0000.00616.33
7.4.290.0060.00016.53
7.4.280.0030.00316.47
7.4.270.0070.00016.48
7.4.260.0030.00313.13
7.4.250.0080.00016.40
7.4.240.0040.00316.51
7.4.230.0030.00316.18
7.4.220.0160.00916.45
7.4.210.0070.00916.49
7.4.200.0050.00216.41
7.4.190.0040.00416.70
7.4.160.0150.00916.32
7.4.150.0140.00417.40
7.4.140.0060.01117.86
7.4.130.0080.00816.44
7.4.120.0050.01116.38
7.4.110.0120.00616.63
7.4.100.0070.01016.66
7.4.90.0180.00716.34
7.4.80.0080.00819.39
7.4.70.0030.01316.32
7.4.60.0070.01016.30
7.4.50.0050.00316.46
7.4.40.0070.00722.77
7.4.30.0030.01216.29
7.4.00.0000.01515.14
7.3.330.0000.00513.11
7.3.320.0000.00513.23
7.3.310.0000.00716.09
7.3.300.0000.00616.18
7.3.290.0100.00716.34
7.3.280.0110.00816.32
7.3.270.0100.00717.40
7.3.260.0070.01016.34
7.3.250.0130.00816.18
7.3.240.0120.00416.55
7.3.230.0160.00616.44
7.3.210.0130.00316.23
7.3.200.0100.00719.39
7.3.190.0080.01316.53
7.3.180.0130.00316.11
7.3.170.0120.00316.55
7.3.160.0070.01016.64
7.3.120.0070.01014.80
7.2.330.0090.00916.62
7.2.320.0150.00316.43
7.2.310.0070.01416.56
7.2.300.0170.00416.73
7.2.290.0100.00616.58
7.2.00.0090.00619.66
7.1.200.0070.00715.74
7.1.100.0040.01118.09
7.1.70.0000.00716.96
7.1.60.0070.01119.17
7.1.50.0030.02016.84
7.1.00.0000.03722.36
7.0.200.0030.00616.72
7.0.140.0000.07721.99
7.0.60.0300.07719.91
7.0.50.0030.04717.85
7.0.40.0170.08320.21
7.0.30.0300.03320.12
7.0.20.0270.08020.19
7.0.10.0000.08320.15
7.0.00.0100.04720.16
5.6.210.0100.06320.57
5.6.200.0100.08318.29
5.6.190.0130.07320.50
5.6.180.0200.08320.48
5.6.170.0270.05720.56
5.6.160.0070.05320.48
5.6.150.0070.07318.30
5.6.140.0070.08018.26
5.6.130.0070.03718.23
5.6.120.0000.05021.05
5.6.110.0030.04321.03
5.6.100.0000.04321.04
5.6.90.0030.07020.97
5.6.80.0030.08320.42
5.5.350.0270.07720.32
5.5.340.0070.08318.08
5.5.330.0070.08020.23
5.5.320.0300.07020.30
5.5.310.0200.07020.27
5.5.300.0130.07017.95
5.5.290.0070.06317.97
5.5.280.0100.08020.80
5.5.270.0030.05720.76
5.5.260.0100.08020.87
5.5.250.0030.04020.69
5.5.240.0030.03020.32
5.4.450.4400.03319.54
5.4.440.0100.06319.47
5.4.430.1300.05019.53
5.4.420.3830.03319.43
5.4.410.3530.04019.32
5.4.400.3970.03719.22
5.4.390.3930.03319.07
5.4.380.3770.03319.15
5.4.370.3600.03719.14
5.4.360.3600.03719.24
5.4.350.2300.04719.13
5.4.340.2800.03319.24
5.4.320.3600.03319.21
5.4.310.3700.04318.99
5.4.300.4100.03319.12
5.4.290.4430.04319.21
5.4.280.4370.03719.23
5.4.270.4030.03719.12
5.4.260.4000.03319.12
5.4.250.3800.04319.05
5.4.240.4170.03019.17
5.4.230.3970.03719.14
5.4.220.3800.03718.99
5.4.210.3600.03719.14
5.4.200.3800.03719.00
5.4.190.3670.03718.98
5.4.180.3570.03319.09
5.4.170.5700.03719.14
5.4.160.4500.04318.93
5.4.150.4500.04318.98
5.4.140.3730.03716.36
5.4.130.3830.03316.35
5.4.120.3900.03016.25
5.4.110.0000.04016.45
5.4.100.0130.02716.21
5.4.90.3000.04016.30
5.4.80.3630.03316.25
5.4.70.3500.03716.46
5.4.60.3470.04016.43
5.4.50.4200.03316.48
5.4.40.3830.03716.45
5.4.30.3900.03016.18
5.4.20.3870.04016.32
5.4.10.4700.03316.53
5.4.00.3870.03315.90
5.3.290.3400.04014.74
5.3.280.3730.04014.59
5.3.270.4500.04014.62
5.3.260.4530.03714.75
5.3.250.4500.03314.60
5.3.240.4200.04314.60
5.3.230.3700.04314.61
5.3.220.4000.04714.64
5.3.210.2130.04314.56
5.3.200.0000.05014.45
5.3.190.3530.04014.56
5.3.180.3800.03714.56
5.3.170.3800.03714.72
5.3.160.3830.04014.61
5.3.150.3570.04014.57
5.3.140.3830.03014.55
5.3.130.3600.04014.57
5.3.120.4130.04014.61
5.3.110.3870.03014.58
5.3.100.3630.03713.95
5.3.90.0070.03314.04
5.3.80.0070.04014.02
5.3.70.0130.06714.17
5.3.60.2030.05014.00
5.3.50.3670.04013.95
5.3.40.3500.03314.00
5.3.30.3270.03013.96
5.3.20.3530.03313.61
5.3.10.4500.04013.66
5.3.00.4300.03713.65
5.2.170.3200.03011.09
5.2.160.3400.03011.20
5.2.150.3370.03011.07
5.2.140.3230.03011.13
5.2.130.3670.02711.05
5.2.120.3530.02711.05
5.2.110.3200.03011.15
5.2.100.3800.03010.99
5.2.90.3570.02711.14
5.2.80.3830.02711.10
5.2.70.3830.03010.98
5.2.60.3570.02310.97
5.2.50.3330.03310.93
5.2.40.2600.03310.96
5.2.30.2630.03010.86
5.2.20.2500.03310.84
5.2.10.2570.03310.93
5.2.00.2670.02710.76
5.1.60.2800.02310.01
5.1.50.2670.02310.00
5.1.40.2700.0279.99
5.1.30.3070.02710.41
5.1.20.3170.02310.36
5.1.10.3000.01710.04
5.1.00.3230.02010.11
5.0.50.1330.0238.56
5.0.40.1770.0208.39
5.0.30.1670.0338.36
5.0.20.1700.0238.25
5.0.10.1370.0238.18
5.0.00.1470.0308.14
4.4.90.1470.0176.23
4.4.80.1500.0176.23
4.4.70.1230.0136.23
4.4.60.1500.0136.23
4.4.50.1470.0176.23
4.4.40.1400.0276.23
4.4.30.1400.0176.23
4.4.20.1600.0176.23
4.4.10.1970.0176.23
4.4.00.1400.0276.23
4.3.110.1800.0176.23
4.3.100.1800.0136.23
4.3.90.1600.0136.23
4.3.80.1470.0276.23
4.3.70.1300.0136.23
4.3.60.0970.0136.23
4.3.50.0930.0176.23
4.3.40.1230.0236.23
4.3.30.0630.0136.23
4.3.20.0600.0176.23
4.3.10.0630.0176.23
4.3.00.0770.0176.23

preferences:
45.72 ms | 400 KiB | 5 Q