3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait MyTrait { abstract public function traitMethod($param): bool; } class ChildClass { use MyTrait; 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.4.130.0120.00818.13
8.4.120.0040.00522.10
8.4.110.0040.00422.26
8.4.100.0090.01217.82
8.4.90.0110.01017.70
8.4.80.0130.00717.70
8.4.70.0070.01017.57
8.4.60.0120.00918.58
8.4.50.0110.00917.85
8.4.40.0050.00317.79
8.4.30.0130.00720.26
8.4.20.0100.01019.84
8.4.10.0030.00620.68
8.3.260.0120.00816.97
8.3.250.0120.00819.05
8.3.240.0030.00616.57
8.3.230.0090.00216.87
8.3.220.0130.00617.38
8.3.210.0070.01116.75
8.3.200.0090.01016.85
8.3.190.0060.00218.29
8.3.180.0100.00916.78
8.3.170.0070.00716.85
8.3.160.0120.00616.52
8.3.150.0000.00817.20
8.3.140.0060.00318.53
8.3.130.0030.00618.43
8.3.120.0030.00620.57
8.3.110.0030.00620.94
8.3.100.0040.00416.73
8.3.90.0090.00026.77
8.3.80.0100.00019.36
8.3.70.0140.00416.58
8.3.60.0150.00418.68
8.3.50.0130.00623.67
8.3.40.0070.01421.82
8.3.30.0100.00718.59
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0090.00920.18
8.2.280.0050.00618.39
8.2.270.0030.01516.70
8.2.260.0140.00018.99
8.2.250.0080.00016.46
8.2.240.0000.01718.77
8.2.230.0090.00022.58
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0060.00318.16
8.2.190.0150.00018.01
8.2.180.0090.00625.92
8.2.170.0040.01118.86
8.2.160.0030.01722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0130.00326.35
8.2.110.0030.00620.11
8.2.100.0060.00619.45
8.2.90.0050.00317.63
8.2.80.0030.00618.80
8.2.70.0000.00817.38
8.2.60.0030.00617.50
8.2.50.0030.00518.05
8.2.40.0040.00418.03
8.2.30.0050.00317.89
8.2.20.0030.00617.89
8.2.10.0040.00420.96
8.2.00.0000.00819.04
8.1.330.0100.00816.64
8.1.320.0070.01215.91
8.1.310.0070.01116.73
8.1.300.0070.01016.02
8.1.290.0060.00318.88
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0040.00420.35
8.1.230.0120.00022.13
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.13
8.1.180.0000.00819.30
8.1.170.0050.00318.43
8.1.160.0000.00718.69
8.1.150.0070.00018.73
8.1.140.0050.00318.81
8.1.130.0040.00417.37
8.1.120.0030.00317.41
8.1.110.0050.00317.38
8.1.100.0050.00317.28
8.1.90.0000.00717.36
8.1.80.0030.00417.38
8.1.70.0070.00017.28
8.1.60.0080.00017.55
8.1.50.0040.00417.40
8.1.40.0040.00417.42
8.1.30.0000.00817.56
8.1.20.0040.00417.61
8.1.10.0000.00817.26
8.1.00.0040.00417.33
8.0.300.0080.00018.77
8.0.290.0060.00316.75
8.0.280.0080.00018.43
8.0.270.0030.00318.05
8.0.260.0000.00716.76
8.0.250.0060.00016.90
8.0.240.0030.00317.00
8.0.230.0070.00016.90
8.0.220.0000.00716.71
8.0.210.0000.00716.92
8.0.200.0000.00716.93
8.0.190.0000.00716.91
8.0.180.0040.00416.89
8.0.170.0040.00416.92
8.0.160.0040.00416.86
8.0.150.0000.00716.82
8.0.140.0030.00416.75
8.0.130.0030.00313.24
8.0.120.0040.00416.85
8.0.110.0040.00416.76
8.0.100.0000.00716.75
8.0.90.0000.00716.99
8.0.80.0040.01116.86
8.0.70.0000.00716.81
8.0.60.0040.00416.77
8.0.50.0000.00716.79
8.0.30.0100.00617.07
8.0.20.0130.00616.86
8.0.10.0050.00216.87
8.0.00.0090.00916.51
7.4.330.0050.00015.55
7.4.320.0060.00016.39
7.4.300.0000.00616.51
7.4.290.0040.00416.43
7.4.280.0040.00416.38
7.4.270.0030.00316.53
7.4.260.0050.00013.14
7.4.250.0070.00016.51
7.4.240.0000.00716.42
7.4.230.0030.00316.44
7.4.220.0000.00716.56
7.4.210.0060.01116.49
7.4.200.0030.00316.45
7.4.130.0130.00816.42
7.4.120.0100.01016.67
7.4.110.0120.01616.51
7.4.100.0180.00916.67
7.4.90.0220.00616.41
7.4.80.0190.01016.51
7.4.70.0250.00516.22
7.4.60.0200.01016.35
7.4.50.0290.00716.36
7.4.40.0270.00316.23
7.4.30.0160.01616.32
7.4.20.0220.01216.13
7.4.10.0110.01116.39
7.4.00.0120.00616.13
7.3.330.0030.00516.09
7.3.320.0060.00012.95
7.3.310.0000.00716.12
7.3.300.0000.00716.09
7.3.290.0080.00716.17
7.3.260.0110.00816.45
7.3.230.0280.00316.18
7.3.220.0230.00616.28
7.3.210.0210.01016.43
7.3.200.0200.01016.13
7.3.190.0210.01416.54
7.3.180.0240.01016.16
7.3.170.0250.00616.18
7.3.160.0240.01016.20
7.3.150.0150.01616.36
7.3.140.0140.00916.18
7.3.130.0110.01116.23
7.3.120.0180.00416.29
7.3.110.0130.00916.32
7.3.100.0130.00916.21
7.3.90.0120.00716.35
7.3.80.0220.00416.50
7.3.70.0120.01216.33
7.3.60.0160.01116.18
7.3.50.0210.00016.20
7.3.40.0140.00716.19
7.3.30.0090.01916.39
7.3.20.0140.01016.29
7.3.10.0090.01816.27
7.3.00.0160.01216.37
7.2.340.0140.01416.41
7.2.330.0160.01616.41
7.2.320.0150.02016.60
7.2.310.0210.00916.43
7.2.300.0220.01116.34
7.2.290.0180.01316.34
7.2.280.0250.00716.46
7.2.270.0220.00616.66
7.2.260.0180.00716.63
7.2.250.0110.01116.46
7.2.240.0180.00416.42
7.2.230.0200.00716.60
7.2.220.0080.01716.54
7.2.210.0100.01316.29
7.2.200.0220.00716.27
7.2.190.0100.01316.36
7.2.180.0150.00816.50
7.2.170.0170.00816.34
7.2.160.0140.00916.45
7.2.150.0130.01316.38
7.2.140.0150.01116.56
7.2.130.0440.00616.59
7.2.120.0120.01516.60
7.2.110.0180.01116.33
7.2.100.0180.01216.64
7.2.90.0150.01116.35
7.2.80.0180.00916.52
7.2.70.0350.01316.33
7.2.60.0130.01116.67
7.2.50.0290.01316.56
7.2.40.0160.00716.57
7.2.30.0190.00316.27
7.2.20.0180.00616.64
7.2.10.0100.01316.44
7.2.00.0120.00916.41

preferences:
30.58 ms | 403 KiB | 5 Q