3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { abstract function test(ArrayObject $a); function testA(){ $this->test(new ArrayObject); } } trait B { function test(SplFixedArray $b){ echo "hello B"; } function testB(){ $this->test(new SplFixedArray); } } class C { use A, B; }

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.5.30.0080.00917.40
8.5.20.0090.01018.11
8.5.10.0060.01220.02
8.5.00.0150.00619.92
8.4.180.0150.00721.92
8.4.170.0120.01025.73
8.4.160.0110.01323.86
8.4.150.0060.00416.85
8.4.140.0140.00617.61
8.4.130.0150.00617.66
8.4.120.0130.00820.84
8.4.110.0140.00818.69
8.4.100.0140.00717.56
8.4.90.0100.01017.96
8.4.80.0110.01022.68
8.4.70.0120.00817.68
8.4.60.0110.01118.77
8.4.50.0150.00920.10
8.4.40.0110.01117.64
8.4.30.0200.00019.34
8.4.20.0080.00317.61
8.4.10.0070.00317.70
8.3.300.0130.00620.76
8.3.290.0110.01018.31
8.3.280.0110.00918.41
8.3.270.0130.00816.85
8.3.260.0110.00516.75
8.3.250.0120.00718.90
8.3.240.0140.00616.70
8.3.230.0140.00516.84
8.3.220.0100.00817.23
8.3.210.0110.00516.88
8.3.200.0040.00616.65
8.3.190.0100.00717.30
8.3.180.0140.00518.83
8.3.170.0110.00716.74
8.3.160.0140.00417.09
8.3.150.0070.01117.10
8.3.140.0040.00418.84
8.3.130.0090.00018.34
8.3.120.0060.00320.63
8.3.110.0030.00616.53
8.3.100.0040.00416.62
8.3.90.0110.00726.77
8.3.80.0030.00618.36
8.3.70.0040.01118.43
8.3.60.0120.00318.53
8.3.50.0120.00821.14
8.3.40.0150.00318.59
8.3.30.0070.00718.83
8.3.20.0080.00020.22
8.3.10.0000.00821.77
8.3.00.0040.00419.41
8.2.300.0150.00918.14
8.2.290.0110.00820.27
8.2.280.0120.00718.43
8.2.270.0150.00316.62
8.2.260.0120.00616.74
8.2.250.0050.00516.21
8.2.240.0130.00316.93
8.2.230.0030.00620.94
8.2.220.0000.00924.06
8.2.210.0040.00426.77
8.2.200.0090.00018.42
8.2.190.0150.00016.58
8.2.180.0150.00618.41
8.2.170.0070.00722.96
8.2.160.0060.00920.52
8.2.150.0000.00924.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0180.00321.95
8.2.100.0040.00817.66
8.2.90.0000.00819.05
8.2.80.0050.00317.97
8.2.70.0060.00617.38
8.2.60.0050.00317.92
8.2.50.0000.00918.07
8.2.40.0050.00318.16
8.2.30.0050.00318.05
8.2.20.0040.00417.66
8.2.10.0070.00018.04
8.2.00.0070.00018.04
8.1.340.0150.00619.64
8.1.330.0110.00616.59
8.1.320.0120.00717.95
8.1.310.0110.00717.94
8.1.300.0080.00015.91
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0100.00020.29
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0140.00724.03
8.1.230.0040.00719.21
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.28
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0070.00022.00
8.1.150.0040.00418.48
8.1.140.0060.00317.34
8.1.130.0000.00717.66
8.1.120.0050.00317.29
8.1.110.0000.00717.38
8.1.100.0000.00817.24
8.1.90.0080.00017.28
8.1.80.0040.00417.27
8.1.70.0050.00317.26
8.1.60.0060.00317.39
8.1.50.0000.01017.42
8.1.40.0000.00817.41
8.1.30.0000.00817.55
8.1.20.0050.00317.54
8.1.10.0030.00617.30
8.1.00.0000.00817.22
8.0.300.0070.00018.77
8.0.290.0070.00017.18
8.0.280.0040.00418.36
8.0.270.0000.00717.03
8.0.260.0000.00717.15
8.0.250.0030.00316.84
8.0.240.0000.00717.01
8.0.230.0080.00017.00
8.0.220.0040.00416.77
8.0.210.0000.00716.84
8.0.200.0030.00316.98
8.0.190.0030.00517.01
8.0.180.0000.00816.79
8.0.170.0000.00716.79
8.0.160.0070.00016.82
8.0.150.0070.00016.89
8.0.140.0000.00816.78
8.0.130.0040.00413.34
8.0.120.0050.00316.84
8.0.110.0000.00716.85
8.0.100.0040.00416.86
8.0.90.0070.00016.79
8.0.80.0080.00816.93
8.0.70.0070.00016.84
8.0.60.0030.00316.86
8.0.50.0000.00716.74
8.0.30.0090.00716.89
8.0.20.0070.01717.40
8.0.10.0050.00217.11
8.0.00.0090.01216.73
7.4.330.0050.00015.03
7.4.320.0030.00316.42
7.4.300.0000.00616.55
7.4.290.0070.00016.48
7.4.280.0090.00016.46
7.4.270.0070.00016.53
7.4.260.0070.00016.50
7.4.250.0030.00616.48
7.4.240.0050.00216.49
7.4.230.0030.00316.23
7.4.220.0040.01416.42
7.4.210.0100.01016.64
7.4.200.0070.00016.60
7.4.160.0090.00616.54
7.4.150.0260.02117.40
7.4.140.0140.00717.86
7.4.130.0100.01016.39
7.4.120.0090.01216.50
7.4.110.0090.00916.46
7.4.100.0200.00016.23
7.4.90.0040.01316.58
7.4.80.0060.01319.39
7.4.70.0080.00816.55
7.4.60.0070.01016.40
7.4.50.0080.00016.53
7.4.40.0100.00616.39
7.4.30.0090.01316.50
7.4.00.0080.00915.08
7.3.330.0050.00213.24
7.3.320.0000.00613.19
7.3.310.0000.00716.13
7.3.300.0060.00016.26
7.3.290.0140.00116.24
7.3.280.0040.01216.26
7.3.270.0120.01217.40
7.3.260.0040.01416.19
7.3.250.0060.01016.30
7.3.240.0090.00616.38
7.3.230.0100.01016.52
7.3.210.0100.00716.34
7.3.200.0080.01416.32
7.3.190.0120.00816.39
7.3.180.0120.00416.55
7.3.170.0000.01816.41
7.3.160.0060.01016.25
7.3.120.0090.00414.66
7.3.110.0150.00314.91
7.3.100.0040.01114.44
7.3.90.0030.01014.63
7.3.80.0080.00514.96
7.3.70.0030.01114.71
7.3.60.0050.01014.69
7.3.50.0100.00614.64
7.3.40.0040.00914.64
7.3.30.0090.00714.70
7.3.20.0050.01016.47
7.3.10.0060.00816.50
7.3.00.0100.00616.56
7.2.330.0060.01116.35
7.2.320.0100.00616.54
7.2.310.0140.00316.68
7.2.300.0000.01616.25
7.2.290.0040.01216.30
7.2.250.0070.01014.64
7.2.240.0050.01214.89
7.2.230.0030.01314.72
7.2.220.0060.00814.76
7.2.210.0110.00314.85
7.2.200.0060.00814.97
7.2.190.0050.01014.93
7.2.180.0060.01014.81
7.2.170.0050.01214.82
7.2.160.0060.00914.79
7.2.150.0100.00716.63
7.2.140.0110.00616.71
7.2.130.0030.01016.71
7.2.120.0070.01016.71
7.2.110.0090.00616.96
7.2.100.0040.01516.61
7.2.90.0000.01116.52
7.2.80.0030.01416.91
7.2.70.0100.00716.65
7.2.60.0000.01616.79
7.2.50.0100.00716.38
7.2.40.0030.01116.53
7.2.30.0110.00316.70
7.2.20.0060.00916.64
7.2.10.0100.00616.62
7.2.00.0030.01018.06
7.1.330.0080.00515.65
7.1.320.0050.00615.68
7.1.310.0060.00815.53
7.1.300.0030.01115.63
7.1.290.0040.01015.62
7.1.280.0070.00615.51
7.1.270.0060.00615.68
7.1.260.0070.00715.85
7.1.250.0070.00715.80
7.1.200.0100.00015.72
7.1.100.0040.01117.96
7.1.70.0000.00717.00
7.1.60.0140.00719.86
7.1.50.0100.01416.94
7.1.00.0100.07022.44
7.0.200.0070.00316.73
7.0.60.0130.07719.94
7.0.50.0070.03717.87
7.0.40.0030.04319.96
7.0.30.0500.06320.21
7.0.20.0230.05020.06
7.0.10.0070.05720.32
7.0.00.0030.09320.31
5.6.280.0030.07321.05
5.6.210.0030.04020.47
5.6.200.0100.07718.16
5.6.190.0030.05720.49
5.6.180.0170.08720.64
5.6.170.0300.08320.50
5.6.160.0030.08720.46
5.6.150.0000.06018.18
5.6.140.0100.04318.18
5.6.130.0100.08318.14
5.6.120.0100.08020.92
5.6.110.0170.07321.04
5.6.100.0170.07021.04
5.6.90.0000.07020.97
5.6.80.0030.06020.54
5.5.350.0030.07720.43
5.5.340.0000.07717.97
5.5.330.0070.04320.27
5.5.320.3270.04020.34
5.5.310.0200.03720.30
5.5.300.0030.07017.98
5.5.290.0000.09018.05
5.5.280.0030.08320.76
5.5.270.0070.04720.81
5.5.260.0030.04320.67
5.5.250.0130.07020.59
5.5.240.0030.08020.26
5.4.450.0030.06719.51
5.4.440.0070.07319.42
5.4.430.0030.06719.42
5.4.420.0030.05319.54
5.4.410.0030.07719.18
5.4.400.0100.06319.20
5.4.390.0030.06318.98
5.4.380.0030.07018.99
5.4.370.0030.07319.32
5.4.360.0070.06018.99
5.4.350.0030.08318.98
5.4.340.0030.08018.98
5.4.320.0100.04718.85
5.4.310.0030.04019.08
5.4.300.0030.07319.14
5.4.290.0030.07719.21
5.4.280.0070.07019.21
5.4.270.0030.07718.99
5.4.260.0030.04018.95
5.4.250.0100.03718.86
5.4.240.0070.07719.07
5.4.230.0030.08018.98
5.4.220.0030.08018.98
5.4.210.0070.05718.86
5.4.200.0000.07318.98
5.4.190.0100.06718.94
5.4.180.0070.04318.93
5.4.170.0070.07019.07
5.4.160.0000.08319.20
5.4.150.0070.07718.94
5.4.140.0070.07016.39
5.4.130.0030.06716.40
5.4.120.0100.04016.57
5.4.110.0030.04716.42
5.4.100.0000.07016.50
5.4.90.0030.07716.59
5.4.80.0070.04716.57
5.4.70.0070.06716.31
5.4.60.0070.07016.55
5.4.50.0030.06716.34
5.4.40.0100.06016.25
5.4.30.0000.06016.38
5.4.20.0070.06316.43
5.4.10.0030.05316.50
5.4.00.0030.06015.83
5.3.290.0070.06314.50
5.3.280.0100.04014.54
5.3.270.0070.04314.45
5.3.260.0030.07314.53
5.3.250.0030.06714.56
5.3.240.0030.08014.59
5.3.230.0070.04314.44
5.3.220.0030.06714.44
5.3.210.0000.07314.60
5.3.200.0030.04314.41
5.3.190.0000.06314.62
5.3.180.0000.05714.41
5.3.170.0070.06714.61
5.3.160.0030.06314.43
5.3.150.0100.07014.55
5.3.140.0070.07014.49
5.3.130.0100.07014.35
5.3.120.0070.07314.64
5.3.110.0030.06714.50
5.3.100.0000.04714.13
5.3.90.0030.06013.89
5.3.80.0000.07314.06
5.3.70.0000.05013.87
5.3.60.0000.04313.82
5.3.50.0030.04013.82
5.3.40.0000.07013.89
5.3.30.0000.07313.93
5.3.20.0030.06313.82
5.3.10.0030.07313.82
5.3.00.0000.04313.82
5.2.170.0030.06013.82
5.2.160.0070.06013.82
5.2.150.0000.05313.82
5.2.140.0000.06713.82
5.2.130.0070.05713.82
5.2.120.0000.05013.82
5.2.110.0030.04713.82
5.2.100.0000.04013.82
5.2.90.0000.06713.82
5.2.80.0000.06713.82
5.2.70.0030.05713.82
5.2.60.0130.02313.82
5.2.50.0030.05713.82
5.2.40.0070.05313.82
5.2.30.0030.04013.82
5.2.20.0030.06013.82
5.2.10.0030.05313.82
5.2.00.0030.06313.82
5.1.60.0030.05013.82
5.1.50.0070.04313.82
5.1.40.0070.03013.82
5.1.30.0030.03713.82
5.1.20.0000.03713.82
5.1.10.0130.02013.82
5.1.00.0000.05713.82
5.0.50.0000.04713.82
5.0.40.0000.03013.82
5.0.30.0000.06313.82
5.0.20.0030.02713.82
5.0.10.0030.03313.82
5.0.00.0000.03313.82
4.4.90.0070.01313.82
4.4.80.0000.03313.82
4.4.70.0000.02713.82
4.4.60.0000.03713.82
4.4.50.0000.03713.82
4.4.40.0030.05313.82
4.4.30.0000.03713.82
4.4.20.0000.02313.82
4.4.10.0000.04013.82
4.4.00.0030.03313.82
4.3.110.0000.03313.82
4.3.100.0030.02313.82
4.3.90.0000.03713.82
4.3.80.0000.02713.82
4.3.70.0000.03713.82
4.3.60.0000.02013.82
4.3.50.0000.01713.82
4.3.40.0000.02313.82
4.3.30.0030.01713.82
4.3.20.0030.01713.82
4.3.10.0030.01713.82
4.3.00.0000.03713.82

preferences:
49.31 ms | 2261 KiB | 5 Q