3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ParentClass { abstract public function parentMethod(int $param): bool; } trait MyTrait { abstract public function traitMethod($param): bool; } class ChildClass extends ParentClass { use MyTrait; // implementation of the abstract methods public function parentMethod(int $param): bool { // change parent method parameter type // implementation } public function traitMethod(int $param): bool { // change trait method parameter type // implementation } }

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.00.0150.01120.07
8.4.150.0020.00014.05
8.4.140.0110.01017.36
8.4.130.0120.00817.95
8.4.120.0080.00820.40
8.4.110.0120.00922.34
8.4.100.0120.00717.73
8.4.90.0070.00918.79
8.4.80.0040.00417.81
8.4.70.0070.00219.64
8.4.60.0030.00519.01
8.4.50.0140.00620.21
8.4.40.0160.00317.69
8.4.30.0090.00918.68
8.4.20.0080.01219.62
8.4.10.0080.00020.59
8.3.280.0020.00114.05
8.3.270.0140.00616.81
8.3.260.0090.01016.89
8.3.250.0080.00718.95
8.3.240.0120.00816.64
8.3.230.0150.00416.91
8.3.220.0140.00416.54
8.3.210.0110.00716.84
8.3.200.0060.00316.50
8.3.190.0060.00217.27
8.3.180.0110.00918.31
8.3.170.0140.00317.32
8.3.160.0040.01516.87
8.3.150.0150.00418.93
8.3.140.0060.01016.95
8.3.130.0060.00318.48
8.3.120.0100.00019.03
8.3.110.0050.00520.94
8.3.100.0050.00516.77
8.3.90.0050.00326.77
8.3.80.0030.00616.55
8.3.70.0120.00616.63
8.3.60.0070.01118.43
8.3.50.0160.00223.67
8.3.40.0110.00721.90
8.3.30.0070.00718.50
8.3.20.0080.00024.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.290.0120.00520.41
8.2.280.0110.00818.23
8.2.270.0060.00317.02
8.2.260.0080.00016.61
8.2.250.0070.00716.71
8.2.240.0040.01118.71
8.2.230.0090.00022.58
8.2.220.0040.00424.06
8.2.210.0030.00626.77
8.2.200.0070.00716.63
8.2.190.0140.00716.58
8.2.180.0150.00325.92
8.2.170.0090.01218.79
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00221.10
8.2.110.0070.00321.12
8.2.100.0040.00719.47
8.2.90.0060.00618.84
8.2.80.0050.00320.46
8.2.70.0060.00317.68
8.2.60.0030.00618.09
8.2.50.0060.00318.10
8.2.40.0050.00319.36
8.2.30.0080.00418.40
8.2.20.0040.00518.66
8.2.10.0110.00318.38
8.2.00.0090.00318.39
8.1.330.0150.00520.20
8.1.320.0130.00815.95
8.1.310.0150.00416.64
8.1.300.0100.01020.04
8.1.290.0000.00930.84
8.1.280.0180.00725.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00022.25
8.1.230.0070.00320.98
8.1.220.0080.00417.74
8.1.210.0040.00418.96
8.1.200.0060.00317.13
8.1.190.0030.00617.13
8.1.180.0050.00318.10
8.1.170.0040.00418.54
8.1.160.0080.00418.28
8.1.150.0090.00318.17
8.1.140.0070.00518.22
8.1.130.0060.00618.86
8.1.120.0060.00617.51
8.1.110.0090.00417.51
8.1.100.0080.00417.46
8.1.90.0030.00917.49
8.1.80.0140.00017.51
8.1.70.0090.00317.50
8.1.60.0100.00417.54
8.1.50.0110.00417.47
8.1.40.0090.00417.52
8.1.30.0050.00817.63
8.1.20.0110.00217.60
8.1.10.0080.00517.50
8.1.00.0100.00317.44
8.0.300.0040.00420.16
8.0.290.0070.00316.63
8.0.280.0100.00217.94
8.0.270.0080.00517.19
8.0.260.0100.00118.00
8.0.250.0070.00417.29
8.0.240.0100.00217.29
8.0.230.0040.00717.27
8.0.220.0070.00517.25
8.0.210.0100.00217.27
8.0.200.0060.00517.21
8.0.190.0040.00717.27
8.0.180.0020.00917.26
8.0.170.0120.00317.21
8.0.160.0100.00317.28
8.0.150.0050.00717.24
8.0.140.0100.00217.25
8.0.130.0100.00115.44
8.0.120.0040.00817.26
8.0.110.0050.00717.18
8.0.100.0070.00417.20
8.0.90.0090.00317.20
8.0.80.0100.00717.05
8.0.70.0130.00917.23
8.0.60.0120.01017.22
8.0.50.0140.00717.20
8.0.30.0160.00217.16
8.0.20.0080.01017.10
8.0.10.0110.00517.34
8.0.00.0080.01017.19
7.4.330.0030.00516.58
7.4.320.0050.00717.06
7.4.300.0120.00017.06
7.4.290.0060.00517.06
7.4.280.0060.00717.06
7.4.270.0080.00417.07
7.4.260.0070.00415.42
7.4.250.0090.00317.01
7.4.240.0060.00516.99
7.4.230.0100.00216.94
7.4.220.0080.00317.12
7.4.210.0070.00816.70
7.4.200.0110.00317.08
7.4.190.0120.00917.14
7.4.180.0060.01417.08
7.4.160.0130.00217.04
7.4.150.0110.00617.08
7.4.140.0110.00817.03
7.4.130.0130.00716.69
7.4.120.0110.01016.83
7.4.110.0100.00916.72
7.4.100.0120.00916.80
7.4.90.0100.00716.82
7.4.80.0090.00716.71
7.4.70.0080.00816.84
7.4.60.0100.00716.79
7.4.50.0100.00616.67
7.4.40.0080.00816.76
7.4.30.0130.00716.74
7.4.20.0090.00916.77
7.4.10.0100.00616.77
7.4.00.0100.00616.84
7.3.330.0000.01216.87
7.3.320.0050.00615.35
7.3.310.0060.00516.94
7.3.300.0040.00716.92
7.3.290.0040.01016.96
7.3.280.0090.00916.94
7.3.270.0110.00416.93
7.3.260.0080.01116.73
7.3.250.0080.01016.92
7.3.240.0060.00916.91
7.3.230.0080.00716.73
7.3.220.0120.00716.66
7.3.210.0080.01116.62
7.3.200.0100.00416.69
7.3.190.0090.00816.77
7.3.180.0090.00816.66
7.3.170.0140.00216.71
7.3.160.0120.00816.66
7.3.150.0140.00516.65
7.3.140.0080.00916.74
7.3.130.0100.00716.75
7.3.120.0100.00616.73
7.3.110.0090.00816.60
7.3.100.0100.00516.66
7.3.90.0070.00916.81
7.3.80.0090.00716.61
7.3.70.0080.01016.73
7.3.60.0090.00716.70
7.3.50.0090.00916.78
7.3.40.0100.00816.73
7.3.30.0100.00616.70
7.3.20.0130.01116.80
7.3.10.0090.00916.85
7.3.00.0100.00716.76
7.2.340.0170.00716.77
7.2.330.0240.00616.78
7.2.320.0150.00516.74
7.2.310.0160.00816.78
7.2.300.0160.00516.78
7.2.290.0180.00716.73
7.2.280.0160.00816.74
7.2.270.0130.01316.78
7.2.260.0200.00116.78
7.2.250.0160.00616.73
7.2.240.0230.00716.75
7.2.230.0140.00716.71
7.2.220.0130.00916.71
7.2.210.0150.00616.69
7.2.200.0170.00716.76
7.2.190.0160.00816.83
7.2.180.0160.00616.80
7.2.170.0130.00816.80
7.2.160.0150.00516.83
7.2.150.0200.00316.91
7.2.140.0150.00817.04
7.2.130.0160.00817.03
7.2.120.0170.00816.94
7.2.110.0180.00617.06
7.2.100.0100.01116.98
7.2.90.0290.00416.96
7.2.80.0180.00616.92
7.2.70.0140.00917.03
7.2.60.0200.00416.94
7.2.50.0190.00916.90
7.2.40.0200.00717.05
7.2.30.0170.00617.08
7.2.20.0180.00816.96
7.2.10.0130.00916.98
7.2.00.0180.00816.97

preferences:
131.55 ms | 403 KiB | 5 Q