3v4l.org

run code in 300+ PHP versions simultaneously
<?php $I = new IteratorIterator(new ArrayIterator(array(1))); $I->rewind(); var_dump($I->current()); $I->next(); var_dump($I->current()); $I->next(); var_dump($I->current()); $I->next();

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.0040.01118.43
8.3.50.0090.01122.00
8.3.40.0070.01418.84
8.3.30.0090.00919.04
8.3.20.0070.00020.16
8.3.10.0050.00523.72
8.3.00.0040.00419.11
8.2.180.0120.00318.34
8.2.170.0120.00322.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.13
8.2.110.0050.00522.30
8.2.100.0080.00419.51
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0080.00017.35
8.2.60.0000.00817.80
8.2.50.0080.00318.07
8.2.40.0090.00019.82
8.2.30.0020.00518.10
8.2.20.0000.00717.50
8.2.10.0070.00017.98
8.2.00.0050.00317.67
8.1.280.0100.01025.92
8.1.270.0030.00623.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.48
8.1.230.0140.00019.14
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.25
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0000.00918.50
8.1.160.0070.00021.94
8.1.150.0040.00418.53
8.1.140.0040.00417.41
8.1.130.0000.00717.84
8.1.120.0000.00717.40
8.1.110.0030.00717.46
8.1.100.0040.00417.29
8.1.90.0000.00817.32
8.1.80.0040.00417.40
8.1.70.0000.00717.41
8.1.60.0000.00817.57
8.1.50.0040.00417.43
8.1.40.0080.00017.46
8.1.30.0040.00417.66
8.1.20.0030.00617.42
8.1.10.0000.00817.46
8.1.00.0000.00717.38
8.0.300.0020.00518.77
8.0.290.0080.00016.93
8.0.280.0080.00018.43
8.0.270.0020.00517.11
8.0.260.0030.00317.21
8.0.250.0040.00416.83
8.0.240.0040.00416.85
8.0.230.0050.00516.88
8.0.220.0000.00716.69
8.0.210.0030.00316.82
8.0.200.0030.00316.80
8.0.190.0050.00316.77
8.0.180.0030.00516.79
8.0.170.0040.00416.82
8.0.160.0000.00716.71
8.0.150.0040.00416.84
8.0.140.0000.00816.77
8.0.130.0000.00513.21
8.0.120.0050.00316.82
8.0.110.0070.00016.67
8.0.100.0050.00316.71
8.0.90.0000.00716.64
8.0.80.0160.00716.86
8.0.70.0000.00716.76
8.0.60.0040.00416.82
8.0.50.0000.00816.94
8.0.30.0050.01416.97
8.0.20.0110.00717.40
8.0.10.0040.00416.93
8.0.00.0160.00316.54
7.4.330.0020.00215.00
7.4.320.0030.00316.59
7.4.300.0060.00016.36
7.4.290.0040.00416.54
7.4.280.0000.00716.52
7.4.270.0000.00816.57
7.4.260.0070.00016.36
7.4.250.0040.00416.41
7.4.240.0000.00816.42
7.4.230.0070.00016.52
7.4.220.0070.02016.57
7.4.210.0060.00916.50
7.4.200.0040.00416.62
7.4.190.0030.00316.40
7.4.160.0130.00916.29
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0130.00316.37
7.4.120.0130.00816.45
7.4.110.0060.01016.36
7.4.100.0000.01816.41
7.4.90.0060.01616.27
7.4.80.0080.01119.39
7.4.70.0040.01116.43
7.4.60.0070.01016.38
7.4.50.0030.00516.21
7.4.40.0030.01316.23
7.4.30.0060.01016.41
7.4.00.0030.01214.99
7.3.330.0000.00613.06
7.3.320.0060.00012.88
7.3.310.0030.00316.22
7.3.300.0080.00016.14
7.3.290.0120.00916.18
7.3.280.0080.01016.11
7.3.270.0140.00317.40
7.3.260.0150.00316.09
7.3.250.0150.00316.40
7.3.240.0100.00616.11
7.3.230.0090.01316.39
7.3.210.0000.01716.30
7.3.200.0100.00719.39
7.3.190.0050.01216.04
7.3.180.0000.01616.17
7.3.170.0070.01316.27
7.3.160.0110.00916.51
7.3.120.0090.00614.72
7.2.330.0090.01016.20
7.2.320.0080.00816.70
7.2.310.0130.00316.61
7.2.300.0090.01616.26
7.2.290.0130.00416.35
7.2.60.0060.00916.74
7.2.00.0040.00818.81
7.1.200.0060.00615.71
7.1.100.0270.00817.41
7.1.70.0060.00616.89
7.1.60.0000.02419.46
7.1.50.0130.00616.86
7.1.00.0030.07722.36
7.0.200.0030.00716.64
7.0.140.0030.07322.09
7.0.60.0000.06319.88
7.0.50.0030.08717.80
7.0.40.0030.05720.40
7.0.30.0230.07720.18
7.0.20.0170.04319.99
7.0.10.0100.09020.16
7.0.00.0100.06720.16
5.6.280.0000.07321.14
5.6.210.0070.07320.70
5.6.200.0100.07318.19
5.6.190.0130.04020.67
5.6.180.0030.04020.27
5.6.170.0270.05720.51
5.6.160.0130.04720.46
5.6.150.0070.04718.21
5.6.140.0170.05018.18
5.6.130.0000.04718.11
5.6.120.0030.04321.02
5.6.110.0070.05320.98
5.6.100.0070.08320.96
5.6.90.0130.07321.02
5.6.80.0000.04320.38
5.5.350.4270.04020.38
5.5.340.0100.06317.92
5.5.330.0100.07720.36
5.5.320.0270.05020.41
5.5.310.0270.04320.30
5.5.300.0170.05717.91
5.5.290.0170.06717.98
5.5.280.0030.09020.87
5.5.270.0100.03720.72
5.5.260.0070.07320.84
5.5.250.0070.03720.58
5.5.240.0070.06720.28
5.4.450.0170.05319.34
5.4.440.0170.05319.32
5.4.430.0770.05019.21
5.4.420.0970.07019.43
5.4.410.0070.06019.41
5.4.400.0870.05319.16
5.4.390.1030.04319.22
5.4.380.0230.04318.60
5.4.370.0170.05318.58
5.4.360.0130.05018.50
5.4.350.0100.05718.78
5.4.340.0100.05718.59
5.4.320.0090.05112.46
5.4.310.0060.04512.45
5.4.300.0060.04612.45
5.4.290.0090.05412.45
5.4.280.0100.04512.35
5.4.270.0120.04712.35
5.4.260.0120.05312.35
5.4.250.0090.05512.35
5.4.240.0140.05412.35
5.4.230.0110.06812.34
5.4.220.0140.05012.34
5.4.210.0310.06912.34
5.4.200.0090.05512.34
5.4.190.0090.05112.34
5.4.180.0110.04912.34
5.4.170.0090.05212.35
5.4.160.0080.05212.35
5.4.150.0140.05012.34
5.4.140.0150.05112.02
5.4.130.0140.04912.02
5.4.120.0080.05711.97
5.4.110.0080.05711.97
5.4.100.0110.05011.97
5.4.90.0110.04811.97
5.4.80.0100.04811.96
5.4.70.0110.04511.96
5.4.60.0160.04311.96
5.4.50.0080.04711.96
5.4.40.0110.03711.95
5.4.30.0040.05011.95
5.4.20.0150.03511.95
5.4.10.0040.04611.95
5.4.00.0120.05211.44
5.3.290.0100.03712.80
5.3.280.0090.05212.71
5.3.270.0140.05012.72
5.3.260.0110.05612.72
5.3.250.0100.06712.72
5.3.240.0100.04712.72
5.3.230.0130.05512.71
5.3.220.0100.04512.68
5.3.210.0140.06312.68
5.3.200.0100.06512.68
5.3.190.0110.06012.68
5.3.180.0090.05512.67
5.3.170.0120.04912.67
5.3.160.0180.08012.68
5.3.150.0190.05712.67
5.3.140.0160.05412.66
5.3.130.0110.05212.66
5.3.120.0090.05512.66
5.3.110.0100.04712.66
5.3.100.0080.05312.12
5.3.90.0100.05612.08
5.3.80.0170.07212.08
5.3.70.0140.05612.07
5.3.60.0110.05112.06
5.3.50.0120.05312.00
5.3.40.0140.05312.00
5.3.30.0100.05611.94
5.3.20.0060.05511.73
5.3.10.0100.05211.69
5.3.00.0170.05711.68
5.2.170.0130.0429.17
5.2.160.0160.0399.18
5.2.150.0070.0489.18
5.2.140.0160.0379.17
5.2.130.0090.0399.13
5.2.120.0090.0329.14
5.2.110.0060.0339.14
5.2.100.0100.0379.14
5.2.90.0070.0399.14
5.2.80.0120.0359.13
5.2.70.0100.0489.13
5.2.60.0060.0499.09
5.2.50.0070.0439.05
5.2.40.0100.0389.03
5.2.30.0090.0409.01
5.2.20.0100.0429.00
5.2.10.0080.0368.92
5.2.00.0070.0378.78
5.1.60.0130.0408.06
5.1.50.0060.0328.06
5.1.40.0040.0348.04
5.1.30.0050.0308.39
5.1.20.0060.0268.41
5.1.10.0050.0278.13
5.1.00.0050.0278.14
5.0.50.0030.0216.62
5.0.40.0060.0256.48
5.0.30.0070.0386.29
5.0.20.0110.0246.26
5.0.10.0050.0286.24
5.0.00.0080.0806.23
4.4.90.0060.0384.77
4.4.80.0060.0194.75
4.4.70.0060.0234.75
4.4.60.0050.0234.75
4.4.50.0050.0244.77
4.4.40.0050.0354.71
4.4.30.0030.0224.76
4.4.20.0050.0214.85
4.4.10.0030.0244.85
4.4.00.0060.0314.76
4.3.110.0040.0234.66
4.3.100.0070.0234.67
4.3.90.0060.0234.63
4.3.80.0100.0654.58
4.3.70.0050.0204.63
4.3.60.0060.0194.63
4.3.50.0040.0214.63
4.3.40.0030.0324.54
4.3.30.0030.0223.29
4.3.20.0030.0213.26
4.3.10.0030.0213.21
4.3.00.0070.0277.70

preferences:
52.41 ms | 401 KiB | 5 Q