3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayObject(); $it[] = 'Foo'; $it[] = 'Bar'; reset($it); do { echo current($it), "\n"; echo key($it), "\n"; } while (next($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.4.20.0150.00618.03
8.4.10.0060.01217.74
8.3.150.0070.01118.97
8.3.140.0040.01120.71
8.3.130.0050.00318.31
8.3.120.0060.00318.93
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0030.00617.97
8.3.70.0090.00918.27
8.3.60.0110.00416.63
8.3.50.0120.00922.05
8.3.40.0090.00618.71
8.3.30.0100.00319.17
8.3.20.0030.00620.03
8.3.10.0050.00221.90
8.3.00.0040.00422.39
8.2.270.0150.00416.86
8.2.260.0120.00317.19
8.2.250.0150.00016.78
8.2.240.0040.00417.18
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0160.00326.77
8.2.200.0000.01116.88
8.2.190.0040.01218.66
8.2.180.0090.00618.54
8.2.170.0040.01122.96
8.2.160.0060.00922.04
8.2.150.0090.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0090.00017.75
8.2.110.0090.00021.18
8.2.100.0040.00817.85
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00518.05
8.2.50.0000.00918.07
8.2.40.0030.00621.07
8.2.30.0040.00418.05
8.2.20.0020.00517.81
8.2.10.0070.00018.05
8.2.00.0030.00518.07
8.1.310.0000.00716.75
8.1.300.0060.00317.76
8.1.290.0060.00330.84
8.1.280.0000.01425.92
8.1.270.0110.00420.43
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.20
8.1.230.0060.00622.63
8.1.220.0050.00317.74
8.1.210.0060.00319.90
8.1.200.0030.00617.23
8.1.190.0000.00817.13
8.1.180.0000.00918.10
8.1.170.0030.00618.48
8.1.160.0000.00721.86
8.1.150.0040.00418.83
8.1.140.0060.00317.37
8.1.130.0040.00417.55
8.1.120.0000.00717.45
8.1.110.0040.00417.36
8.1.100.0000.00717.43
8.1.90.0030.00517.36
8.1.80.0050.00217.43
8.1.70.0000.00717.35
8.1.60.0050.00317.49
8.1.50.0000.00817.44
8.1.40.0040.00417.39
8.1.30.0040.00417.51
8.1.20.0000.00817.41
8.1.10.0080.00017.55
8.1.00.0050.00317.48
8.0.300.0070.00020.08
8.0.290.0040.00416.88
8.0.280.0030.00318.43
8.0.270.0000.00817.25
8.0.260.0000.00817.17
8.0.250.0000.00716.96
8.0.240.0000.00716.88
8.0.230.0030.00316.88
8.0.220.0000.00716.83
8.0.210.0000.00716.72
8.0.200.0000.00616.82
8.0.190.0040.00416.93
8.0.180.0040.00416.86
8.0.170.0000.00816.81
8.0.160.0080.00016.81
8.0.150.0030.00316.84
8.0.140.0070.00016.68
8.0.130.0050.00013.20
8.0.120.0000.00716.84
8.0.110.0020.00516.78
8.0.100.0000.00716.86
8.0.90.0040.00416.89
8.0.80.0170.00916.86
8.0.70.0080.00016.78
8.0.60.0000.00716.73
8.0.50.0030.00516.63
8.0.30.0110.00816.94
8.0.20.0100.01017.40
8.0.10.0040.00416.98
8.0.00.0080.00916.70
7.4.330.0000.00515.08
7.4.320.0030.00316.33
7.4.300.0000.00616.34
7.4.290.0030.00316.52
7.4.280.0000.00816.41
7.4.270.0030.00316.50
7.4.260.0000.00716.51
7.4.250.0070.00016.49
7.4.240.0030.00416.39
7.4.230.0030.00316.61
7.4.220.0060.00916.61
7.4.210.0090.00816.39
7.4.200.0000.00716.41
7.4.160.0170.00016.45
7.4.150.0140.00717.40
7.4.140.0100.01217.86
7.4.130.0120.00716.48
7.4.120.0130.00616.45
7.4.110.0180.00316.49
7.4.100.0130.00616.50
7.4.90.0100.01316.52
7.4.80.0160.00619.39
7.4.70.0110.00716.47
7.4.60.0070.01516.57
7.4.50.0040.00416.20
7.4.40.0150.00816.28
7.4.30.0120.01216.36
7.4.00.0090.00314.84
7.3.330.0060.00013.12
7.3.320.0030.00313.11
7.3.310.0000.00716.23
7.3.300.0030.00316.19
7.3.290.0090.00916.23
7.3.280.0140.00716.18
7.3.270.0070.01017.40
7.3.260.0000.01616.23
7.3.250.0110.00816.34
7.3.240.0070.01016.50
7.3.230.0120.00916.40
7.3.210.0120.00616.32
7.3.200.0100.00719.39
7.3.190.0080.00816.13
7.3.180.0070.00716.32
7.3.170.0100.00716.53
7.3.160.0090.01216.21
7.2.330.0140.00316.44
7.2.320.0030.01416.71
7.2.310.0100.00616.64
7.2.300.0070.01116.38
7.2.290.0130.00416.68
7.2.60.0000.01516.63
7.2.00.0120.00619.42
7.1.200.0080.00315.80
7.1.100.0090.00618.18
7.1.70.0000.01117.10
7.1.60.0070.01119.12
7.1.50.0100.01316.84
7.1.00.0030.07322.29
7.0.200.0000.00716.83
7.0.60.0000.05319.97
7.0.50.0030.04717.86
7.0.40.0030.05720.04
7.0.30.0270.08320.16
7.0.20.0370.07320.41
7.0.10.0100.06720.13
7.0.00.0030.04720.33
5.6.280.0070.06321.12
5.6.210.0000.09020.47
5.6.200.0070.03718.21
5.6.190.0100.08320.59
5.6.180.0100.04020.57
5.6.170.0300.07720.51
5.6.160.0070.07720.52
5.6.150.0000.04318.13
5.6.140.0030.06018.20
5.6.130.0030.04318.11
5.6.120.0070.04020.98
5.6.110.0070.04020.98
5.6.100.0070.08320.97
5.6.90.0030.05721.09
5.6.80.0100.08020.39
5.6.70.0300.07020.39
5.5.350.0300.08720.43
5.5.340.0000.08717.96
5.5.330.0100.04720.57
5.5.320.0430.07320.20
5.5.310.0270.08020.41
5.5.300.0070.04017.91
5.5.290.0070.07317.91
5.5.280.0100.05020.87
5.5.270.0130.07720.72
5.5.260.0030.08320.68
5.5.250.0070.08720.66
5.5.240.0370.06720.03
5.4.450.0830.05719.48
5.4.440.0900.06319.45
5.4.430.0900.06319.32
5.4.420.0870.04719.30
5.4.410.0800.05019.30
5.4.400.0800.05319.15
5.4.390.0730.06718.95
5.4.380.0800.05319.18
5.4.370.0970.04719.16
5.4.360.1030.04718.75
5.4.350.1130.04018.93
5.4.340.1070.04319.01
5.4.320.1030.04719.12
5.4.310.0930.05719.02
5.4.300.0930.05319.18
5.4.290.1070.04019.04
5.4.280.1030.06018.74
5.4.270.0930.05718.75
5.4.260.0970.05019.15
5.4.250.0830.04318.96
5.4.240.0830.05319.06
5.4.230.0800.05019.17
5.4.220.0930.04019.02
5.4.210.0700.06019.00
5.4.200.1000.04716.63
5.4.190.0800.05018.94
5.4.180.0770.05719.05
5.4.170.0970.06018.75
5.4.160.0870.05719.20
5.4.150.1030.04319.04
5.4.140.0970.06016.34
5.4.130.0830.06016.46
5.4.120.0700.06316.60
5.4.110.0370.04316.50
5.4.100.0130.04716.30
5.4.90.0500.05016.32
5.4.80.1000.05716.53
5.4.70.1030.04716.43
5.4.60.0730.05316.31
5.4.50.0100.04716.27
5.4.40.0400.06016.27
5.4.30.0870.05016.24
5.4.20.0470.04716.22
5.4.10.0100.04716.20
5.4.00.0100.05015.94
5.3.290.0870.05314.51
5.3.280.0730.05714.69
5.3.270.0970.04314.46
5.3.260.0830.05714.45
5.3.250.0700.07014.69
5.3.240.1000.05314.46
5.3.230.0970.05714.45
5.3.220.1270.07014.55
5.3.210.0900.07014.36
5.3.200.1200.05014.50
5.3.190.0830.04714.55
5.3.180.1130.05014.39
5.3.170.1130.05014.51
5.3.160.0930.04714.41
5.3.150.1130.04314.65
5.3.140.0970.07014.50
5.3.130.0930.05714.53
5.3.120.0870.06014.52
5.3.110.0870.05314.56
5.3.100.1000.06013.89
5.3.90.0030.05713.81
5.3.80.0400.04313.86
5.3.70.0930.05013.86
5.3.60.0970.04313.84
5.3.50.0970.04713.73
5.3.40.0770.06013.76
5.3.30.0930.05313.75
5.3.20.0730.05313.53
5.3.10.1170.04313.43
5.3.00.0930.06013.48
5.2.170.0900.04011.13
5.2.160.0800.04310.99
5.2.150.0670.04311.02
5.2.140.0930.04010.98
5.2.130.0800.04011.26
5.2.120.0800.04710.96
5.2.110.0530.04711.04
5.2.100.0800.03710.95
5.2.90.0800.04310.96
5.2.80.0870.04711.03
5.2.70.0870.04310.93
5.2.60.0870.03310.89
5.2.50.0830.04710.86
5.2.40.0630.04010.99
5.2.30.0730.03311.13
5.2.20.0830.04710.78
5.2.10.0570.04310.77
5.2.00.0570.04010.76
5.1.60.0700.04310.06
5.1.50.0670.0339.96
5.1.40.0600.0339.97
5.1.30.0400.04310.26
5.1.20.0430.04310.25
5.1.10.0800.03010.12
5.1.00.0670.0339.94
5.0.50.0300.0378.62
5.0.40.0300.0338.28
5.0.30.0300.0438.11
5.0.20.0400.0378.25
5.0.10.0400.0378.13
5.0.00.0230.0508.12
4.4.90.0270.0235.78
4.4.80.0330.0235.83
4.4.70.0300.0305.79
4.4.60.0200.0235.86
4.4.50.0300.0175.85
4.4.40.0300.0375.79
4.4.30.0400.0305.79
4.4.20.0200.0375.88
4.4.10.0430.0275.89
4.4.00.0430.0435.86
4.3.110.0330.0235.73
4.3.100.0430.0175.77
4.3.90.0270.0235.74
4.3.80.0300.0375.77
4.3.70.0170.0275.73
4.3.60.0200.0235.83
4.3.50.0300.0305.76
4.3.40.0370.0335.62
4.3.30.0130.0234.50
4.3.20.0170.0234.58
4.3.10.0130.0204.43
4.3.00.0130.02310.84

preferences:
37.07 ms | 403 KiB | 5 Q