3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xs = array(3, 4, 5, 7); $xs2 = new ArrayObject($xs); $it = $xs2->getIterator(); $it->rewind(); printf("%d\n", $it->current()); $it->next(); printf("%d\n", $it->current()); $it->next(); printf("%d\n", $it->current());

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.0090.00618.29
8.3.50.0100.01021.92
8.3.40.0030.01418.89
8.3.30.0060.00918.92
8.3.20.0040.00420.32
8.3.10.0080.00022.14
8.3.00.0040.00422.34
8.2.180.0120.00616.50
8.2.170.0100.00322.96
8.2.160.0100.00319.12
8.2.150.0050.00524.18
8.2.140.0080.00024.66
8.2.130.0140.00426.16
8.2.120.0030.00619.36
8.2.110.0040.00422.13
8.2.100.0040.00719.51
8.2.90.0050.00319.01
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0030.00617.91
8.2.50.0030.00618.07
8.2.40.0060.00319.76
8.2.30.0020.00517.99
8.2.20.0000.00717.64
8.2.10.0000.00717.56
8.2.00.0080.00017.69
8.1.280.0080.00625.92
8.1.270.0030.00622.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.88
8.1.230.0000.01219.18
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0050.00317.41
8.1.180.0000.00718.63
8.1.170.0050.00318.48
8.1.160.0000.00722.06
8.1.150.0040.00418.58
8.1.140.0030.00617.30
8.1.130.0030.00317.84
8.1.120.0030.00317.30
8.1.110.0030.00517.38
8.1.100.0050.00317.32
8.1.90.0050.00217.28
8.1.80.0040.00417.30
8.1.70.0070.00017.40
8.1.60.0060.00317.50
8.1.50.0000.00717.47
8.1.40.0040.00417.34
8.1.30.0040.00417.46
8.1.20.0060.00317.56
8.1.10.0000.00717.41
8.1.00.0020.00517.45
8.0.300.0000.00718.77
8.0.290.0070.00017.03
8.0.280.0000.00718.35
8.0.270.0000.00717.11
8.0.260.0040.00416.68
8.0.250.0030.00316.92
8.0.240.0070.00016.87
8.0.230.0030.00316.80
8.0.220.0030.00316.84
8.0.210.0000.00716.87
8.0.200.0060.00016.80
8.0.190.0040.00416.73
8.0.180.0030.00516.75
8.0.170.0070.00016.86
8.0.160.0000.00716.69
8.0.150.0040.00416.82
8.0.140.0000.00816.70
8.0.130.0000.00613.23
8.0.120.0070.00016.73
8.0.110.0040.00416.86
8.0.100.0000.00716.70
8.0.90.0070.00016.70
8.0.80.0000.01516.76
8.0.70.0000.00816.70
8.0.60.0050.00316.80
8.0.50.0070.00016.76
8.0.30.0090.01016.89
8.0.20.0060.01317.40
8.0.10.0040.00417.02
8.0.00.0110.00616.56
7.4.330.0020.00215.01
7.4.320.0000.00616.45
7.4.300.0030.00316.51
7.4.290.0000.00716.51
7.4.280.0030.00316.54
7.4.270.0030.00316.46
7.4.260.0030.00316.48
7.4.250.0040.00416.48
7.4.240.0060.00216.46
7.4.230.0040.00416.48
7.4.220.0140.00316.43
7.4.210.0090.00516.45
7.4.200.0000.00716.42
7.4.190.0050.00316.58
7.4.160.0150.00616.50
7.4.150.0070.01117.40
7.4.140.0070.01417.86
7.4.130.0070.01316.38
7.4.120.0080.01216.33
7.4.110.0110.00616.38
7.4.100.0090.01816.50
7.4.90.0070.01016.41
7.4.80.0140.00319.39
7.4.70.0090.00916.45
7.4.60.0070.01016.40
7.4.50.0000.00916.30
7.4.40.0060.00922.77
7.4.30.0140.00316.49
7.4.00.0070.01014.75
7.3.330.0020.00213.07
7.3.320.0020.00212.80
7.3.310.0070.00015.98
7.3.300.0000.00616.00
7.3.290.0110.00316.18
7.3.280.0070.01116.15
7.3.270.0080.00817.40
7.3.260.0120.00416.26
7.3.250.0130.00516.15
7.3.240.0060.01016.46
7.3.230.0080.01116.39
7.3.210.0060.01016.32
7.3.200.0000.01519.39
7.3.190.0080.00816.40
7.3.180.0060.01416.11
7.3.170.0070.01416.40
7.3.160.0100.00516.48
7.3.120.0040.01214.65
7.3.110.0130.00614.74
7.3.100.0030.01314.48
7.3.90.0050.00514.72
7.3.80.0100.00714.66
7.3.70.0040.01214.66
7.3.60.0000.01314.54
7.3.50.0090.00614.52
7.3.40.0130.00314.47
7.3.30.0040.00414.46
7.3.20.0060.00616.27
7.3.10.0070.00716.55
7.3.00.0070.00716.19
7.2.330.0140.00316.43
7.2.320.0060.01816.59
7.2.310.0070.01016.59
7.2.300.0030.01416.21
7.2.290.0110.00616.61
7.2.250.0060.01214.88
7.2.240.0100.00714.79
7.2.230.0150.00014.98
7.2.220.0050.00814.58
7.2.210.0060.00914.86
7.2.200.0060.00614.75
7.2.190.0000.01414.93
7.2.180.0060.00914.77
7.2.170.0030.01014.94
7.2.60.0000.01016.81
7.1.330.0090.00915.82
7.1.320.0080.00315.62
7.1.310.0040.01515.48
7.1.300.0040.00715.79
7.1.290.0030.01215.73
7.1.280.0000.01315.58
7.1.270.0060.00615.79
7.1.260.0070.01015.63
7.1.200.0000.00615.57
7.1.70.0050.00916.77
7.1.60.0170.00719.82
7.1.50.0100.01316.58
7.1.00.0000.08022.44
7.0.200.0040.00416.33
7.0.140.0030.06722.12
7.0.60.0030.09019.87
7.0.50.0030.05717.86
7.0.40.0000.09320.27
7.0.30.0400.07020.21
7.0.20.0170.05720.21
7.0.10.0170.04020.00
7.0.00.0130.04720.08
5.6.280.0030.06720.99
5.6.210.0070.06720.74
5.6.200.0070.05718.22
5.6.190.0100.09020.63
5.6.180.3570.04320.29
5.6.170.0430.05320.41
5.6.160.0000.04720.44
5.6.150.0030.08318.17
5.6.140.0030.04018.11
5.6.130.0000.04318.11
5.6.120.0130.08321.09
5.6.110.0030.09020.97
5.6.100.0100.06721.07
5.6.90.0100.04020.95
5.6.80.0100.03320.50
5.5.350.0030.04320.41
5.5.340.0030.08317.98
5.5.330.0070.04020.25
5.5.320.0300.08020.26
5.5.310.0200.03720.17
5.5.300.0070.07717.91
5.5.290.0130.07317.89
5.5.280.0030.07720.76
5.5.270.0100.07320.97
5.5.260.0100.03720.86
5.5.250.0170.07720.61
5.5.240.0100.03320.16
5.4.450.0570.06319.49
5.4.440.0600.05319.10
5.4.430.0530.05719.43
5.4.420.0630.06319.32
5.4.410.0270.05719.28
5.4.400.0770.00018.65
5.4.390.0730.00018.57
5.4.380.0300.04718.74
5.4.370.0170.06318.46
5.4.360.0230.05318.59
5.4.350.0370.05018.59
5.4.340.0270.05718.46
5.4.320.0080.03412.45
5.4.310.0130.04112.45
5.4.300.0030.03912.45
5.4.290.0080.03912.45
5.4.280.0060.04312.35
5.4.270.0070.03512.35
5.4.260.0130.05018.75
5.4.250.0100.05318.92
5.4.240.0170.07018.98
5.4.230.0200.06318.96
5.4.220.0100.06019.02
5.4.210.0170.06018.74
5.4.200.0100.07318.70
5.4.190.0030.06318.88
5.4.180.0100.05018.69
5.4.170.0130.06719.01
5.4.160.0170.05318.89
5.4.150.0200.04318.91
5.4.140.0070.06016.44
5.4.130.0070.05016.20
5.4.120.0130.06016.46
5.4.110.0070.05316.20
5.4.100.0100.04716.41
5.4.90.0070.07016.48
5.4.80.0070.04716.18
5.4.70.0070.05016.51
5.4.60.0000.05316.31
5.4.50.0100.05016.39
5.4.40.0030.05316.47
5.4.30.0130.05016.43
5.4.20.0100.04716.38
5.4.10.0100.08016.22
5.4.00.0070.06715.68
5.3.290.0070.04612.80
5.3.280.0070.05714.60
5.3.270.0130.07314.62
5.3.260.0030.07014.46
5.3.250.0070.05314.44
5.3.240.0000.06714.65
5.3.230.0070.07014.75
5.3.220.0030.05314.26
5.3.210.0070.05314.40
5.3.200.0100.04714.57
5.3.190.0130.04714.71
5.3.180.0130.04714.34
5.3.170.0130.07014.35
5.3.160.0130.07014.41
5.3.150.0100.05014.71
5.3.140.0100.05014.56
5.3.130.0200.05714.70
5.3.120.0130.04714.64
5.3.110.0130.05314.55
5.3.100.0100.05013.95
5.3.90.0100.05713.93
5.3.80.0070.06014.03
5.3.70.0070.06313.87
5.3.60.0100.05314.09
5.3.50.0070.07013.84
5.3.40.0100.06313.89
5.3.30.0070.05013.92
5.3.20.0130.06313.57
5.3.10.0030.05013.76
5.3.00.0100.04713.66
5.2.170.0070.04011.15
5.2.160.0030.04711.03
5.2.150.0000.06710.92
5.2.140.0100.03711.03
5.2.130.0070.03711.12
5.2.120.0100.04311.02
5.2.110.0070.03711.11
5.2.100.0000.06711.11
5.2.90.0100.05310.86
5.2.80.0030.05311.09
5.2.70.0070.04711.01
5.2.60.0100.05011.14
5.2.50.0100.03711.13
5.2.40.0100.03310.91
5.2.30.0070.04010.90
5.2.20.0030.04311.05
5.2.10.0200.03710.70
5.2.00.0070.05310.55
5.1.60.0000.04010.04
5.1.50.0130.04010.08
5.1.40.0030.0339.74
5.1.30.0070.03710.23
5.1.20.0070.04310.29
5.1.10.0100.03010.11
5.1.00.0070.03310.13
5.0.50.0070.0278.59
5.0.40.0000.0308.34
5.0.30.0000.0608.14
5.0.20.0000.0308.16
5.0.10.0000.0308.10
5.0.00.0100.0438.13
4.4.90.0000.0376.20
4.4.80.0000.0276.20
4.4.70.0000.0236.20
4.4.60.0070.0276.20
4.4.50.0000.0276.20
4.4.40.0070.0306.20
4.4.30.0100.0236.20
4.4.20.0000.0236.20
4.4.10.0070.0206.20
4.4.00.0000.0406.20
4.3.110.0070.0236.20
4.3.100.0030.0206.20
4.3.90.0070.0176.20
4.3.80.0000.0376.20
4.3.70.0070.0176.20
4.3.60.0070.0176.20
4.3.50.0030.0206.20
4.3.40.0070.0276.20
4.3.30.0000.0206.20
4.3.20.0000.0236.20
4.3.10.0030.0206.20
4.3.00.0170.0176.63

preferences:
41.42 ms | 401 KiB | 5 Q