3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A extends \Traversable { } trait T { } class C implements A, IteratorAggregate { protected $items = []; public function getIterator() { return new \ArrayIterator($this->items); } } $c = new C();

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.40.0100.00318.66
8.3.30.0100.00318.97
8.3.20.0080.00020.22
8.3.10.0030.00523.67
8.3.00.0000.00820.65
8.2.170.0070.00722.96
8.2.160.0070.00721.96
8.2.150.0150.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00822.22
8.2.110.0060.00322.16
8.2.100.0030.00917.91
8.2.90.0080.00019.26
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0040.00418.16
8.2.30.0000.00718.08
8.2.20.0060.00317.52
8.2.10.0070.00017.55
8.2.00.0020.00517.78
8.1.270.0030.00622.14
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00023.58
8.1.230.0070.00319.22
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0040.00417.38
8.1.190.0050.00317.30
8.1.180.0050.00318.10
8.1.170.0000.00918.50
8.1.160.0050.00521.93
8.1.150.0000.00718.69
8.1.140.0030.00717.45
8.1.130.0000.00717.82
8.1.120.0070.00017.46
8.1.110.0030.00517.41
8.1.100.0000.00717.45
8.1.90.0090.00017.34
8.1.80.0080.00017.42
8.1.70.0070.00017.43
8.1.60.0060.00317.45
8.1.50.0030.00617.54
8.1.40.0030.00617.39
8.1.30.0030.00517.59
8.1.20.0050.00317.69
8.1.10.0090.00017.34
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0070.00018.48
8.0.270.0030.00317.09
8.0.260.0000.00816.75
8.0.250.0020.00516.86
8.0.240.0040.00417.00
8.0.230.0040.00416.86
8.0.220.0030.00316.89
8.0.210.0030.00316.79
8.0.200.0000.00616.84
8.0.190.0040.00416.94
8.0.180.0040.00416.88
8.0.170.0040.00416.85
8.0.160.0040.00416.90
8.0.150.0040.00416.84
8.0.140.0030.00316.89
8.0.130.0000.00513.30
8.0.120.0000.00916.95
8.0.110.0040.00416.83
8.0.100.0040.00416.82
8.0.90.0040.00416.75
8.0.80.0040.01016.91
8.0.70.0040.00416.88
8.0.60.0040.00416.75
8.0.50.0050.00216.95
8.0.30.0130.00517.07
8.0.20.0100.00917.40
8.0.10.0000.00716.85
8.0.00.0110.00916.68
7.4.330.0050.00015.20
7.4.320.0060.00016.60
7.4.300.0000.00616.56
7.4.290.0030.00316.49
7.4.280.0030.00316.47
7.4.270.0000.00616.39
7.4.260.0000.00716.49
7.4.250.0050.00316.46
7.4.240.0020.00516.49
7.4.230.0030.00316.59
7.4.220.0090.01216.62
7.4.210.0090.00616.54
7.4.200.0070.00016.68
7.4.190.0000.00716.73
7.4.160.0080.00816.34
7.4.150.0060.01217.40
7.4.140.0120.00617.86
7.4.130.0100.00716.41
7.4.120.0160.00316.54
7.4.110.0070.01016.49
7.4.100.0150.00616.53
7.4.90.0030.01416.43
7.4.80.0150.00716.59
7.4.70.0030.01316.41
7.4.60.0120.00316.34
7.4.50.0050.00316.27
7.4.40.0060.00922.77
7.4.30.0060.00916.57
7.4.00.0050.01014.77
7.3.330.0030.00313.14
7.3.320.0000.00613.09
7.3.310.0030.00316.23
7.3.300.0030.00316.11
7.3.290.0030.01216.24
7.3.280.0070.01116.23
7.3.270.0100.00717.40
7.3.260.0110.00716.26
7.3.250.0130.00616.39
7.3.240.0090.00916.34
7.3.230.0090.00616.39
7.3.210.0100.01016.37
7.3.200.0030.01319.39
7.3.190.0090.00916.36
7.3.180.0120.00416.53
7.3.170.0070.01316.30
7.3.160.0000.01616.30
7.3.120.0070.01114.72
7.3.110.0070.01014.88
7.3.100.0030.01314.77
7.3.90.0110.00414.81
7.3.80.0080.00814.66
7.3.70.0060.00714.65
7.3.60.0040.00914.68
7.3.50.0100.00314.48
7.3.40.0020.00914.69
7.3.30.0040.01014.57
7.3.20.0060.00416.43
7.3.10.0050.01016.52
7.3.00.0060.00816.51
7.2.330.0110.00716.41
7.2.320.0180.00516.37
7.2.310.0030.01316.52
7.2.300.0080.00816.65
7.2.290.0120.00416.61
7.2.250.0030.01614.65
7.2.240.0090.00914.89
7.2.230.0050.01114.79
7.2.220.0030.01114.81
7.2.210.0070.00714.70
7.2.200.0060.01114.61
7.2.190.0030.00714.63
7.2.180.0080.00514.81
7.2.170.0090.00514.90
7.2.160.0000.00914.63
7.2.150.0080.00816.71
7.2.140.0060.00916.67
7.2.130.0030.00916.57
7.2.120.0060.00916.57
7.2.110.0100.00316.79
7.2.100.0140.00316.57
7.2.90.0060.00916.38
7.2.80.0040.01116.58
7.2.70.0110.00416.77
7.2.60.0090.00616.88
7.2.50.0080.00816.82
7.2.40.0000.01416.41
7.2.30.0090.00616.58
7.2.20.0030.01016.71
7.2.10.0120.00316.77
7.2.00.0050.01018.12
7.1.330.0050.01015.69
7.1.320.0070.00615.54
7.1.310.0040.00915.58
7.1.300.0020.00915.60
7.1.290.0050.00915.50
7.1.280.0060.00615.46
7.1.270.0010.00815.73
7.1.260.0050.00915.51
7.1.250.0040.00415.67
7.1.240.0070.00715.71
7.1.230.0060.01215.78
7.1.220.0040.01315.75
7.1.210.0090.00615.65
7.1.200.0070.00715.74
7.1.190.0040.01115.44
7.1.180.0040.00715.75
7.1.170.0070.00715.81
7.1.160.0060.00615.78
7.1.150.0000.01215.81
7.1.140.0000.01315.58
7.1.130.0100.00315.75
7.1.120.0000.00815.36
7.1.110.0030.01015.52
7.1.100.0050.00516.79
7.1.90.0040.01115.73
7.1.80.0070.00715.66
7.1.70.0080.00316.24
7.1.60.0080.00717.45
7.1.50.0000.01216.18
7.1.40.0040.01115.54
7.1.30.0040.00415.57
7.1.20.0000.01615.74
7.1.10.0000.01515.48
7.1.00.0060.04119.07
7.0.330.0120.00015.09
7.0.320.0060.00815.11
7.0.310.0000.01315.25
7.0.300.0070.00315.31
7.0.290.0060.00915.31
7.0.280.0040.00415.19
7.0.270.0060.00315.15
7.0.260.0000.01115.00
7.0.250.0060.00615.14
7.0.240.0110.00315.13
7.0.230.0110.00415.25
7.0.220.0030.00915.23
7.0.210.0000.01115.28
7.0.200.0030.00715.96
7.0.190.0030.01015.04
7.0.180.0030.01015.18
7.0.170.0090.00615.45
7.0.160.0100.00315.34
7.0.150.0000.00715.29
7.0.140.0050.04118.67
7.0.130.0040.00715.29
7.0.120.0100.00315.36
7.0.110.0130.00315.32
7.0.100.0000.00915.38
7.0.90.0030.01015.16
7.0.80.0040.01115.34
7.0.70.0070.00715.21
7.0.60.0140.03717.55
7.0.50.0100.02016.64
7.0.40.0080.02316.91
7.0.30.0130.03316.85
7.0.20.0150.03616.74
7.0.10.0150.04016.78
7.0.00.0050.04716.81
5.6.400.0150.00014.46
5.6.390.0030.01014.30
5.6.380.0030.01013.98
5.6.370.0040.01114.04
5.6.360.0030.00614.14
5.6.350.0060.01113.92
5.6.340.0040.00814.11
5.6.330.0000.01514.29
5.6.320.0050.00513.72
5.6.310.0000.01814.34
5.6.300.0070.00714.04
5.6.290.0120.00313.94
5.6.280.0070.03317.54
5.6.270.0030.01314.52
5.6.260.0030.00914.47
5.6.250.0110.00414.50
5.6.240.0030.00913.90
5.6.230.0070.00714.32
5.6.220.0030.01314.16
5.6.210.0020.02817.35
5.6.200.0060.03816.12
5.6.190.0070.03717.33
5.6.180.0040.04717.25
5.6.170.0120.03017.43
5.6.160.0050.03317.31
5.6.150.0050.03716.19
5.6.140.0100.02016.21
5.6.130.0060.02516.33
5.6.120.0060.04217.63
5.6.110.0050.04617.72
5.6.100.0090.04317.51
5.6.90.0100.04217.67
5.6.80.0080.04117.19
5.6.70.1940.02517.13
5.6.60.0090.00914.04
5.6.50.0080.00813.86
5.6.40.0060.00613.85
5.6.30.0030.01013.97
5.6.20.0030.01414.37
5.6.10.0030.00614.19
5.6.00.0060.00614.09
5.5.380.0000.01613.84
5.5.370.0000.01114.04
5.5.360.0060.00914.05
5.5.350.0010.04417.09
5.5.340.0070.03316.17
5.5.330.0040.02616.96
5.5.320.0020.04417.21
5.5.310.0240.02717.17
5.5.300.0060.03516.16
5.5.290.0050.04416.05
5.5.280.0100.04017.47
5.5.270.0040.02517.39
5.5.260.0020.02617.38
5.5.250.0030.04517.26
5.5.240.0070.04217.18
5.5.230.0100.00713.78
5.5.220.0030.01014.16
5.5.210.0030.00914.20
5.5.200.0080.00314.12
5.5.190.0030.01213.82
5.5.180.0090.00313.62
5.5.170.0050.00313.84
5.5.160.0080.00813.95
5.5.150.0030.01413.80
5.5.140.0030.00613.77
5.5.130.0040.00713.83
5.5.120.0030.01013.89
5.5.110.0070.00713.85
5.5.100.0030.01013.98
5.5.90.0060.00313.56
5.5.80.0090.00314.12
5.5.70.0120.00413.93
5.5.60.0070.01013.88
5.5.50.0060.00613.98
5.5.40.0040.00713.97
5.5.30.0030.01013.91
5.5.20.0060.00913.99
5.5.10.0090.00613.63
5.5.00.0060.00613.88
5.4.450.0550.02015.15
5.4.440.0430.02515.08
5.4.430.0500.03015.22
5.4.420.0070.03015.03
5.4.410.0550.02715.05
5.4.400.0230.03314.87
5.4.390.0230.02814.75
5.4.380.0130.03814.84
5.4.370.0070.02714.84
5.4.360.0120.02614.83
5.4.350.0110.02814.71
5.4.340.0050.03114.91
5.4.330.0030.00510.89
5.4.320.0060.02211.69
5.4.310.0070.02011.71
5.4.300.0060.01911.70
5.4.290.0040.02211.70
5.4.280.0070.02011.67
5.4.270.0040.02711.64
5.4.260.0030.02411.63
5.4.250.0060.02111.70
5.4.240.0080.01911.63
5.4.230.0070.02011.63
5.4.220.0040.02011.63
5.4.210.0020.02211.63
5.4.200.0030.02211.63
5.4.190.0050.02211.63
5.4.180.0040.02211.63
5.4.170.0050.02111.63
5.4.160.0060.02011.63
5.4.150.0060.02111.63
5.4.140.0020.02311.47
5.4.130.0090.01711.46
5.4.120.0060.02211.44
5.4.110.0070.02111.44
5.4.100.0070.02111.44
5.4.90.0070.02011.44
5.4.80.0040.02211.44
5.4.70.0020.02411.44
5.4.60.0040.02211.44
5.4.50.0030.02111.44
5.4.40.0070.01811.43
5.4.30.0070.01911.43
5.4.20.0040.02111.43
5.4.10.0040.02211.46
5.4.00.0020.02111.18
5.3.290.0060.02211.85
5.3.280.0050.02311.80
5.3.270.0040.02511.81
5.3.260.0040.02811.80
5.3.250.0020.02311.80
5.3.240.0040.02311.80
5.3.230.0040.02111.80
5.3.220.0020.02711.79
5.3.210.0040.02511.79
5.3.200.0050.02211.79
5.3.190.0040.02111.79
5.3.180.0060.01911.78
5.3.170.0040.02011.78
5.3.160.0050.02211.78
5.3.150.0030.02411.78
5.3.140.0030.02211.78
5.3.130.0050.02111.78
5.3.120.0030.02411.77
5.3.110.0040.02211.77
5.3.100.0070.02111.50
5.3.90.0070.01911.49
5.3.80.0050.02211.48
5.3.70.0050.02111.48
5.3.60.0070.02111.48
5.3.50.0040.02011.45
5.3.40.0070.01811.45
5.3.30.0030.02511.42
5.3.20.0090.01811.31
5.3.10.0050.02011.29
5.3.00.0040.02211.29
5.2.170.0070.0279.17
5.2.160.0050.0289.16
5.2.150.0080.0279.17
5.2.140.0030.0319.16
5.2.130.0060.0289.13
5.2.120.0050.0289.13
5.2.110.0070.0269.14
5.2.100.0050.0279.13
5.2.90.0030.0309.13
5.2.80.0030.0319.13
5.2.70.0010.0339.12
5.2.60.0050.0289.07
5.2.50.0080.0269.05
5.2.40.0050.0279.02
5.2.30.0060.0279.00
5.2.20.0040.0298.99
5.2.10.0040.0288.90
5.2.00.0020.0318.76
5.1.60.0040.0248.04
5.1.50.0070.0218.04
5.1.40.0050.0238.02
5.1.30.0060.0268.37
5.1.20.0040.0278.40
5.1.10.0040.0268.13
5.1.00.0040.0268.11
5.0.50.0020.0226.59
5.0.40.0030.0196.45
5.0.30.0020.0356.27
5.0.20.0050.0256.24
5.0.10.0060.0256.21
5.0.00.0060.0376.20
4.4.90.0050.0204.77
4.4.80.0050.0194.76
4.4.70.0020.0224.75
4.4.60.0040.0204.75
4.4.50.0030.0214.77
4.4.40.0040.0324.70
4.4.30.0010.0214.76
4.4.20.0070.0144.84
4.4.10.0060.0134.85
4.4.00.0010.0264.76
4.3.110.0020.0174.67
4.3.100.0020.0154.66
4.3.90.0020.0164.64
4.3.80.0040.0244.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0040.0264.54
4.3.30.0020.0183.27
4.3.20.0010.0183.25
4.3.10.0030.0143.21
4.3.00.0070.02315.48

preferences:
39.16 ms | 400 KiB | 5 Q