3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Iterative { public function rewind(){ /* ... */ } public function current(){ /* ... */ } public function key(){ /* ... */ } public function next(){ /* ... */ } public function valid(){ /* ... */ } } # Class BasicIterator should implements the interface using trait class BasicIterator implements \Iterator { use Iterative; }

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.0060.00818.68
8.3.50.0120.00821.94
8.3.40.0040.01118.81
8.3.30.0100.00319.00
8.3.20.0070.00720.25
8.3.10.0050.00320.40
8.3.00.0080.00019.26
8.2.180.0110.00418.14
8.2.170.0180.00322.96
8.2.160.0070.01022.11
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0050.00319.54
8.2.110.0030.00720.64
8.2.100.0090.00317.59
8.2.90.0030.00617.38
8.2.80.0070.00418.65
8.2.70.0000.00817.38
8.2.60.0000.00817.63
8.2.50.0040.00417.80
8.2.40.0000.00918.03
8.2.30.0000.00719.19
8.2.20.0000.01217.67
8.2.10.0040.00917.83
8.2.00.0070.00617.57
8.1.280.0140.00725.92
8.1.270.0030.00620.52
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0000.01023.90
8.1.230.0100.00024.02
8.1.220.0050.00318.56
8.1.210.0030.00518.77
8.1.200.0040.00417.13
8.1.190.0080.00017.10
8.1.180.0050.00318.10
8.1.170.0000.00717.62
8.1.160.0030.00620.61
8.1.150.0040.00418.80
8.1.140.0040.00417.43
8.1.130.0050.00717.50
8.1.120.0060.00617.43
8.1.110.0100.00417.36
8.1.100.0040.00917.41
8.1.90.0080.00517.28
8.1.80.0060.00617.41
8.1.70.0060.00617.37
8.1.60.0090.00617.57
8.1.50.0110.00217.45
8.1.40.0080.00517.51
8.1.30.0090.00517.56
8.1.20.0110.00217.56
8.1.10.0090.00417.35
8.1.00.0060.00817.38
8.0.300.0080.00019.86
8.0.290.0040.00416.63
8.0.280.0030.00518.37
8.0.270.0090.00616.74
8.0.260.0050.00616.91
8.0.250.0090.00316.83
8.0.240.0060.00616.79
8.0.230.0060.00616.81
8.0.220.0050.00716.82
8.0.210.0050.00616.74
8.0.200.0100.00216.71
8.0.190.0060.00616.79
8.0.180.0080.00416.72
8.0.170.0090.00316.80
8.0.160.0080.00416.77
8.0.150.0060.00616.71
8.0.140.0090.00216.65
8.0.130.0040.00814.93
8.0.120.0060.00616.72
8.0.110.0090.00316.75
8.0.100.0060.00316.75
8.0.90.0080.00216.61
8.0.80.0050.00916.78
8.0.70.0100.00216.77
8.0.60.0080.00516.79
8.0.50.0100.00216.65
8.0.30.0080.01016.80
8.0.20.0120.01017.20
8.0.10.0090.00416.89
8.0.00.0060.01016.83
7.4.330.0090.00115.57
7.4.320.0080.00416.36
7.4.300.0060.00616.40
7.4.290.0100.00216.51
7.4.280.0100.00216.39
7.4.270.0070.00516.40
7.4.260.0120.00016.37
7.4.250.0050.00716.37
7.4.240.0080.00316.40
7.4.230.0090.00316.40
7.4.220.0070.00916.42
7.4.210.0150.00216.42
7.4.200.0070.00316.42
7.4.190.0120.00216.38
7.4.180.0070.00716.54
7.4.160.0080.00616.45
7.4.150.0090.00716.85
7.4.140.0100.00717.36
7.4.130.0120.00616.43
7.4.120.0080.01016.42
7.4.110.0100.00716.40
7.4.100.0070.00916.41
7.4.90.0090.00816.42
7.4.80.0100.00816.30
7.4.70.0080.00916.31
7.4.60.0130.00316.23
7.4.50.0060.00616.20
7.4.40.0050.01316.22
7.4.30.0120.00416.12
7.4.20.0050.00916.32
7.4.10.0150.00016.13
7.4.00.0140.00015.37
7.3.330.0070.00414.64
7.3.320.0040.00614.62
7.3.310.0070.00316.02
7.3.300.0060.00416.11
7.3.290.0070.01016.16
7.3.280.0090.00616.10
7.3.270.0090.00916.72
7.3.260.0120.00716.19
7.3.250.0070.01116.18
7.3.240.0100.00616.21
7.3.230.0100.01016.29
7.3.220.0150.00016.04
7.3.210.0110.00516.24
7.3.200.0140.00417.72
7.3.190.0130.00316.20
7.3.180.0110.00816.11
7.3.170.0070.00916.22
7.3.160.0110.00516.17
7.3.150.0120.00416.13
7.3.140.0090.00616.11
7.3.130.0150.00016.04
7.3.120.0080.00816.11
7.3.110.0090.00916.04
7.3.100.0070.00716.04
7.3.90.0110.00316.45
7.3.80.0110.00416.04
7.3.70.0080.00816.32
7.3.60.0150.00016.30
7.3.50.0150.00016.22
7.3.40.0120.00316.31
7.3.30.0050.00916.32
7.3.20.0130.00316.29
7.3.10.0130.00216.36
7.3.00.0090.00716.35
7.2.340.0130.00416.15
7.2.330.0040.01216.30
7.2.320.0070.01116.30
7.2.310.0110.00616.43
7.2.300.0120.00416.35
7.2.290.0120.00416.28
7.2.280.0130.00316.19
7.2.270.0150.00016.16
7.2.260.0040.01116.13
7.2.250.0150.00016.22
7.2.240.0110.00416.26
7.2.230.0080.00816.09
7.2.220.0120.00416.14
7.2.210.0090.00616.07
7.2.200.0130.00316.21
7.2.190.0050.01016.27
7.2.180.0140.00216.20
7.2.170.0130.00016.26
7.2.160.0100.00416.26
7.2.150.0070.00716.24
7.2.140.0110.00416.35
7.2.130.0100.00516.44
7.2.120.0090.00616.47
7.2.110.0080.00816.61
7.2.100.0090.00516.40
7.2.90.0110.00316.54
7.2.80.0070.00616.65
7.2.70.0140.00216.41
7.2.60.0100.00716.62
7.2.50.0080.01016.57
7.2.40.0080.00616.50
7.2.30.0100.00716.68
7.2.20.0100.00617.10
7.2.10.0100.00716.97
7.2.00.0070.00917.55
7.1.330.0070.00816.04
7.1.320.0130.00216.04
7.1.310.0060.00816.04
7.1.300.0110.00316.04
7.1.290.0140.00016.04
7.1.280.0070.00716.04
7.1.270.0110.00416.04
7.1.260.0070.00816.04
7.1.250.0050.00615.83
7.1.240.0070.00716.04
7.1.230.0090.00616.04
7.1.220.0310.00016.04
7.1.210.0140.00216.04
7.1.200.0090.00415.76
7.1.190.0130.00416.04
7.1.180.0160.00016.04
7.1.170.0090.00616.04
7.1.160.0130.00316.04
7.1.150.0070.00716.04
7.1.140.0120.00716.26
7.1.130.0100.00916.39
7.1.120.0110.00916.19
7.1.110.0110.00916.11
7.1.100.0060.01016.75
7.1.90.0110.00515.72
7.1.80.0100.00516.14
7.1.70.0060.01016.09
7.1.60.0150.01022.88
7.1.50.0200.01127.88
7.1.40.0200.01324.20
7.1.30.0200.01224.23
7.1.20.0150.01324.31
7.1.10.0120.00815.28
7.1.00.0170.03417.74
7.0.330.0090.00616.04
7.0.320.0160.00316.04
7.0.310.0070.00716.04
7.0.300.0070.00716.04
7.0.290.0110.00316.04
7.0.280.0080.00616.04
7.0.270.0090.00716.17
7.0.260.0070.00916.06
7.0.250.0080.01015.88
7.0.240.0110.00615.84
7.0.230.0110.00415.77
7.0.220.0100.00615.81
7.0.210.0090.00715.45
7.0.200.0090.00515.85
7.0.190.0080.00815.31
7.0.180.0890.00515.18
7.0.170.0100.00915.12
7.0.160.0100.00515.18
7.0.150.0130.00415.12
7.0.140.0080.02917.45
7.0.130.0070.01215.33
7.0.120.0150.00615.37
7.0.110.0100.00815.28
7.0.100.0110.00715.10
7.0.90.0140.00515.20
7.0.80.0070.00915.19
7.0.70.0100.02116.76
7.0.60.0090.02916.73
7.0.50.0110.03116.95
7.0.40.0090.03416.90
7.0.30.0070.03616.86
7.0.20.0090.02716.82
7.0.10.0080.02916.87
7.0.00.0100.02416.87
5.6.400.0090.00516.04
5.6.390.0150.00016.04
5.6.380.0100.00316.04
5.6.370.0140.00016.04
5.6.360.0090.00416.04
5.6.350.0100.00416.04
5.6.340.0100.00316.04
5.6.330.0000.01416.04
5.6.320.0060.00716.04
5.6.310.0120.00316.04
5.6.300.0150.04418.37
5.6.290.0130.03018.39
5.6.280.0090.05219.30
5.6.270.0120.03118.39
5.6.260.0130.03018.42
5.6.250.0160.03818.44
5.6.240.0130.04018.45
5.6.230.0140.03918.38
5.6.220.0120.05519.19
5.6.210.0090.05719.22
5.6.200.0100.05519.29
5.6.190.0120.04919.31
5.6.180.0110.03519.24
5.6.170.0130.04519.22
5.6.160.0140.03419.29
5.6.150.0140.05119.21
5.6.140.0150.03719.33
5.6.130.0110.03619.29
5.6.120.0130.04819.23
5.6.110.0120.05719.32
5.6.100.0110.05419.27
5.6.90.0130.05319.28
5.6.80.0190.04618.87
5.6.70.0130.05118.87
5.6.60.0190.04518.90
5.6.50.0080.04018.91
5.6.40.0080.03618.95
5.6.30.0150.05018.86
5.6.20.0100.05018.80
5.6.10.0120.04318.81
5.6.00.0090.04218.80
5.5.380.0120.03216.77
5.5.370.0160.02716.84
5.5.360.0110.03818.03
5.5.350.0140.03617.98
5.5.340.0120.04218.22
5.5.330.0130.04618.30
5.5.320.0110.03418.24
5.5.310.0150.04918.30
5.5.300.0150.04418.29
5.5.290.0130.04218.30
5.5.280.0150.05518.25
5.5.270.0100.05918.33
5.5.260.0130.05618.23
5.5.250.0130.05318.18
5.5.240.0070.05617.93
5.5.230.0150.04817.77
5.5.220.0100.04617.94
5.5.210.0090.03917.88
5.5.200.0090.03817.84
5.5.190.0100.05417.78
5.5.180.0080.05517.83
5.5.170.0090.00616.04
5.5.160.0080.04717.88
5.5.150.0090.04417.88
5.5.140.0100.05517.85
5.5.130.0140.04917.91
5.5.120.0110.04717.80
5.5.110.0070.05617.84
5.5.100.0060.04917.82
5.5.90.0120.04117.76
5.5.80.0080.03617.75
5.5.70.0100.04617.83
5.5.60.0090.03417.82
5.5.50.0090.05217.68
5.5.40.0110.04617.86
5.5.30.0120.03117.81
5.5.20.0160.04617.76
5.5.10.0100.03817.80
5.5.00.0070.04817.77
5.4.450.0130.04118.23
5.4.440.0140.05418.34
5.4.430.0100.04918.17
5.4.420.0110.04818.25
5.4.410.0070.05818.21
5.4.400.0120.04918.06
5.4.390.0090.04218.03
5.4.380.0110.03418.08
5.4.370.0120.04218.07
5.4.360.0090.03418.02
5.4.350.0070.04618.00
5.4.340.0090.05218.06
5.4.330.0080.00316.04
5.4.320.0150.04218.03
5.4.310.0090.04918.04
5.4.300.0130.04318.04
5.4.290.0130.04518.11
5.4.280.0130.04218.05
5.4.270.0090.04618.07
5.4.260.0120.04918.08
5.4.250.0080.04118.03
5.4.240.0100.04618.09
5.4.230.0110.03718.05
5.4.220.0110.04918.13
5.4.210.0120.04517.94
5.4.200.0170.03918.00
5.4.190.0090.04918.05
5.4.180.0120.04218.02
5.4.170.0110.04218.03
5.4.160.0110.03817.96
5.4.150.0140.04618.09
5.4.140.0080.05116.33
5.4.130.0120.04616.34
5.4.120.0090.05216.36
5.4.110.0080.04816.36
5.4.100.0090.04116.39
5.4.90.0090.04816.30
5.4.80.0130.04316.40
5.4.70.0100.04316.38
5.4.60.0080.03816.35
5.4.50.0120.04016.35
5.4.40.0090.04716.31
5.4.30.0070.04216.33
5.4.20.0130.03716.38
5.4.10.0100.04816.35
5.4.00.0100.04015.93

preferences:
49.72 ms | 401 KiB | 5 Q