3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(array("Apples", "Bananas", "Cherries")); iterator_apply($it, function(Iterator $iterator) { echo strtoupper($iterator->current()) . "\n"; return TRUE; }, array($it));

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.0100.01018.31
8.3.50.0130.00921.98
8.3.40.0110.00418.69
8.3.30.0080.00620.17
8.3.20.0040.00420.21
8.3.10.0080.00021.97
8.3.00.0040.00422.54
8.2.180.0060.01216.50
8.2.170.0070.00722.96
8.2.160.0130.00020.41
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.01126.16
8.2.120.0050.00319.66
8.2.110.0070.00322.25
8.2.100.0000.01218.03
8.2.90.0050.00319.30
8.2.80.0070.00019.18
8.2.70.0030.00617.63
8.2.60.0080.00017.93
8.2.50.0060.00318.07
8.2.40.0070.00018.16
8.2.30.0050.00318.01
8.2.20.0000.00817.62
8.2.10.0080.00017.69
8.2.00.0000.01017.69
8.1.280.0060.00925.92
8.1.270.0000.00724.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0080.00419.14
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00917.53
8.1.180.0000.00819.13
8.1.170.0040.00418.68
8.1.160.0000.00822.14
8.1.150.0040.00418.64
8.1.140.0040.00417.37
8.1.130.0070.00017.84
8.1.120.0040.00417.46
8.1.110.0040.00417.45
8.1.100.0000.00717.45
8.1.90.0030.00417.35
8.1.80.0000.00717.46
8.1.70.0030.00317.32
8.1.60.0040.00417.63
8.1.50.0000.00717.54
8.1.40.0030.00517.59
8.1.30.0060.00317.59
8.1.20.0040.00417.68
8.1.10.0050.00217.64
8.1.00.0030.00617.54
8.0.300.0070.00018.77
8.0.290.0050.00217.18
8.0.280.0040.00418.34
8.0.270.0000.00717.29
8.0.260.0060.00016.86
8.0.250.0030.00316.90
8.0.240.0000.01017.02
8.0.230.0030.00316.98
8.0.220.0020.00516.96
8.0.210.0030.00316.99
8.0.200.0000.00617.04
8.0.190.0030.00317.08
8.0.180.0030.00316.83
8.0.170.0040.00417.02
8.0.160.0040.00417.01
8.0.150.0000.00716.95
8.0.140.0040.00416.79
8.0.130.0030.00313.39
8.0.120.0000.00716.93
8.0.110.0040.00417.02
8.0.100.0030.00517.06
8.0.90.0040.00416.88
8.0.80.0180.00416.99
8.0.70.0040.00416.75
8.0.60.0070.00016.92
8.0.50.0040.00417.01
8.0.30.0090.00817.12
8.0.20.0080.01017.40
8.0.10.0000.00717.13
8.0.00.0080.00916.66
7.4.330.0050.00015.00
7.4.320.0000.00716.58
7.4.300.0060.00016.58
7.4.290.0040.00416.61
7.4.280.0070.00016.49
7.4.270.0000.00616.52
7.4.260.0030.00316.47
7.4.250.0000.00716.56
7.4.240.0040.00416.50
7.4.230.0000.00716.62
7.4.220.0070.01116.61
7.4.210.0090.00816.51
7.4.200.0030.00316.49
7.4.190.0040.00416.46
7.4.160.0060.00916.54
7.4.150.0090.00917.40
7.4.140.0060.01417.86
7.4.130.0120.00616.60
7.4.120.0100.00616.48
7.4.110.0080.01216.43
7.4.100.0170.00316.43
7.4.90.0120.00616.39
7.4.80.0160.00619.39
7.4.70.0120.00616.58
7.4.60.0030.01316.32
7.4.50.0050.00316.28
7.4.40.0070.01022.77
7.4.30.0060.01516.37
7.4.00.0100.00714.86
7.3.330.0060.00013.25
7.3.320.0060.00013.25
7.3.310.0000.00716.39
7.3.300.0070.00016.25
7.3.290.0130.00016.26
7.3.280.0100.00816.30
7.3.270.0170.00717.40
7.3.260.0100.01016.23
7.3.250.0110.00916.44
7.3.240.0080.01216.43
7.3.230.0190.00016.39
7.3.210.0040.01316.46
7.3.200.0150.00619.39
7.3.190.0130.00916.41
7.3.180.0000.01616.57
7.3.170.0130.00316.27
7.3.160.0060.00916.49
7.3.120.0030.01414.83
7.2.330.0120.01216.76
7.2.320.0110.01116.47
7.2.310.0070.01416.37
7.2.300.0090.01216.51
7.2.290.0060.00916.45
7.2.60.0360.00616.70
7.2.00.0060.00919.38
7.1.200.0060.00615.70
7.1.100.0090.00317.93
7.1.70.0000.00817.20
7.1.60.0090.01519.43
7.1.50.0030.01916.71
7.1.00.0030.03322.31
7.0.200.0050.00216.86
7.0.140.0030.07721.92
7.0.60.0030.04019.91
7.0.50.0070.04717.79
7.0.40.0100.07320.10
7.0.30.0530.06320.26
7.0.20.0270.05020.17
7.0.10.0130.07720.15
7.0.00.0070.04720.22
5.6.280.0000.07721.12
5.6.210.0030.07720.57
5.6.200.0000.04318.16
5.6.190.0070.04720.39
5.6.180.0370.06320.33
5.6.170.0330.05020.54
5.6.160.0100.08020.44
5.6.150.0100.07318.28
5.6.140.0030.06018.14
5.6.130.0030.04018.25
5.6.120.0100.06721.12
5.6.110.0070.08021.02
5.6.100.0000.08021.13
5.6.90.0100.06721.02
5.6.80.0230.06320.44
5.6.70.4500.04020.37
5.5.350.0130.07720.39
5.5.340.0000.04017.97
5.5.330.0000.07020.19
5.5.320.0200.05320.28
5.5.310.0230.03320.39
5.5.300.0070.03717.95
5.5.290.0070.03717.98
5.5.280.0030.04020.75
5.5.270.0030.04020.89
5.5.260.0170.07320.68
5.5.250.0100.04020.61
5.5.240.0030.06320.29
5.4.450.0770.05019.59
5.4.440.0200.05719.34
5.4.430.0200.05019.59
5.4.420.0270.05319.47
5.4.410.0970.04319.21
5.4.400.0530.06718.77
5.4.390.0300.06718.80
5.4.380.0270.05018.75
5.4.370.0370.05718.57
5.4.360.0300.06318.51
5.4.350.0040.03612.02
5.4.340.0070.03712.02
5.4.320.0050.03812.50
5.4.310.0040.04112.50
5.4.300.0040.03912.51
5.4.290.0060.04712.49
5.4.280.0050.03612.39
5.4.270.0060.03812.39
5.4.260.0040.03912.39
5.4.250.0100.04718.81
5.4.240.0000.05718.93
5.4.230.0030.05719.02
5.4.220.0030.06018.74
5.4.210.0070.05018.85
5.4.200.0070.05318.81
5.4.190.0100.05018.75
5.4.180.0030.05718.95
5.4.170.0070.05018.93
5.4.160.0000.06018.98
5.4.150.0000.06318.79
5.4.140.0100.05016.57
5.4.130.0070.05016.39
5.4.120.0170.05716.46
5.4.110.0070.05016.54
5.4.100.0130.04316.36
5.4.90.0070.05016.43
5.4.80.0100.05716.51
5.4.70.0070.04716.43
5.4.60.0070.05016.52
5.4.50.0030.05016.41
5.4.40.0100.04316.43
5.4.30.0100.04716.49
5.4.20.0070.05016.53
5.4.10.0070.05316.36
5.4.00.0100.04315.99
5.3.290.0070.04712.80
5.3.280.0100.04714.63
5.3.270.0130.04714.70
5.3.260.0070.05314.77
5.3.250.0100.04714.69
5.3.240.0100.04714.69
5.3.230.0070.05014.50
5.3.220.0130.05014.71
5.3.210.0100.06314.63
5.3.200.0130.04314.66
5.3.190.0070.05014.47
5.3.180.0000.05714.54
5.3.170.0000.05314.64
5.3.160.0030.06014.79
5.3.150.0070.05014.63
5.3.140.0100.04314.64
5.3.130.0030.05314.63
5.3.120.0130.04314.63
5.3.110.0070.05014.77
5.3.100.0030.05714.01
5.3.90.0030.05014.23
5.3.80.0030.05313.84
5.3.70.0000.05314.00
5.3.60.0030.06014.18
5.3.50.0030.05313.78
5.3.40.0100.04313.97
5.3.30.0130.04013.89
5.3.20.0030.05013.87
5.3.10.0070.04713.71
5.3.00.0100.04313.72
5.2.170.0070.03710.98
5.2.160.0070.04311.09
5.2.150.0030.04310.98
5.2.140.0070.03711.14
5.2.130.0130.03011.10
5.2.120.0100.03011.02
5.2.110.0030.04011.12
5.2.100.0100.03011.02
5.2.90.0070.03711.00
5.2.80.0070.04011.10
5.2.70.0100.04011.18
5.2.60.0030.04310.81
5.2.50.0070.04011.05
5.2.40.0070.03710.88
5.2.30.0130.03310.89
5.2.20.0070.03710.97
5.2.10.0000.04010.75
5.2.00.0100.03310.88
5.1.60.0030.03310.19
5.1.50.0000.0379.93
5.1.40.0000.03710.07
5.1.30.0000.03710.50
5.1.20.0030.03710.56
5.1.10.0030.03310.30
5.1.00.0030.0379.84
5.0.50.0070.0308.60
5.0.40.0000.0278.47
5.0.30.0030.0438.07
5.0.20.0000.0308.34
5.0.10.0100.0208.23
5.0.00.0000.0438.20
4.4.90.0000.0237.21
4.4.80.0000.0237.21
4.4.70.0000.0237.21
4.4.60.0000.0307.21
4.4.50.0000.0237.21
4.4.40.0100.0277.21
4.4.30.0100.0137.21
4.4.20.0030.0207.21
4.4.10.0070.0177.21
4.4.00.0100.0277.21
4.3.110.0000.0237.21
4.3.100.0030.0207.21
4.3.90.0000.0237.21
4.3.80.0100.0237.21
4.3.70.0070.0177.21
4.3.60.0000.0207.21
4.3.50.0070.0177.21
4.3.40.0030.0307.21
4.3.30.0000.0237.21
4.3.20.0000.0237.21
4.3.10.0030.0207.21
4.3.00.0130.0236.68

preferences:
37.1 ms | 401 KiB | 5 Q