3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { abstract static function values(): array; } class A { use T; static function values() { return 'Worked!'; } } echo A::values(); // print: Worked! abstract class B { use T; } class C extends B { static function values() { return 'Don\'t worked'; } } echo C::values();

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.20.0130.00719.54
8.4.10.0100.01019.15
8.3.150.0030.00617.11
8.3.140.0080.00816.81
8.3.130.0070.00718.54
8.3.120.0060.00319.06
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0060.00326.77
8.3.80.0000.00916.75
8.3.70.0110.00416.58
8.3.60.0120.00916.75
8.3.50.0190.00616.57
8.3.40.0070.00718.71
8.3.30.0160.00318.67
8.3.20.0040.00420.36
8.3.10.0040.00423.65
8.3.00.0070.00023.61
8.2.260.0120.00318.68
8.2.250.0040.00416.59
8.2.240.0030.00517.31
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0110.00426.77
8.2.200.0080.00016.63
8.2.190.0140.00716.58
8.2.180.0110.00425.92
8.2.170.0140.00018.83
8.2.160.0100.00320.57
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0110.00726.16
8.2.120.0060.00320.49
8.2.110.0080.00820.53
8.2.100.0040.00817.54
8.2.90.0080.00017.50
8.2.80.0000.00718.68
8.2.70.0000.00817.38
8.2.60.0040.00817.38
8.2.50.0030.00617.55
8.2.40.0000.00920.46
8.2.30.0040.00420.97
8.2.20.0040.00418.14
8.2.10.0050.00217.88
8.2.00.0040.00417.92
8.1.310.0050.00216.68
8.1.300.0100.00718.13
8.1.290.0050.00530.84
8.1.280.0060.01025.92
8.1.270.0100.00723.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00620.70
8.1.230.0110.00022.11
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0080.00017.10
8.1.180.0080.00018.10
8.1.170.0080.00018.36
8.1.160.0050.00218.82
8.1.150.0000.00820.14
8.1.140.0070.00018.99
8.1.130.0000.00720.15
8.1.120.0030.00317.30
8.1.110.0080.00017.39
8.1.100.0000.00817.26
8.1.90.0040.00317.25
8.1.80.0040.00417.40
8.1.70.0070.00017.30
8.1.60.0050.00217.40
8.1.50.0030.00517.47
8.1.40.0000.00817.46
8.1.30.0040.00417.52
8.1.20.0030.00517.56
8.1.10.0030.00517.28
8.1.00.0020.00517.19
8.0.300.0090.00018.77
8.0.290.0000.00716.75
8.0.280.0040.00418.29
8.0.270.0030.00317.19
8.0.260.0040.00420.02
8.0.250.0030.00317.00
8.0.240.0000.00816.96
8.0.230.0000.00716.97
8.0.220.0050.00216.77
8.0.210.0070.00016.81
8.0.200.0060.00316.86
8.0.190.0000.00816.88
8.0.180.0080.00016.98
8.0.170.0000.00716.93
8.0.160.0030.00316.95
8.0.150.0000.00716.92
8.0.140.0000.01016.75
8.0.130.0030.00313.31
8.0.120.0030.00516.84
8.0.110.0000.00916.72
8.0.100.0000.00716.92
8.0.90.0040.00416.89
8.0.80.0080.00816.84
8.0.70.0040.00416.75
8.0.60.0020.00516.90
8.0.50.0050.00216.80
8.0.30.0130.00417.06
8.0.20.0110.00917.40
8.0.10.0040.00316.89
8.0.00.0100.00716.63
7.4.330.0020.00215.55
7.4.320.0030.00316.40
7.4.300.0040.00416.44
7.4.290.0060.00316.45
7.4.280.0050.00516.36
7.4.270.0030.00316.42
7.4.260.0000.00716.44
7.4.250.0000.00816.49
7.4.240.0080.00016.43
7.4.230.0070.00016.29
7.4.220.0070.01116.50
7.4.210.0060.00816.55
7.4.200.0000.00716.52
7.4.160.0080.00916.32
7.4.150.0180.00617.40
7.4.140.0090.00917.86
7.4.130.0030.01316.53
7.4.120.0090.00916.48
7.4.110.0170.00016.43
7.4.100.0080.01516.46
7.4.90.0030.01316.41
7.4.80.0100.00719.39
7.4.70.0130.01016.72
7.4.60.0040.01116.34
7.4.50.0050.00816.57
7.4.40.0060.01016.60
7.4.30.0060.01616.66
7.4.00.0100.00314.80
7.3.330.0030.00313.24
7.3.320.0060.00013.39
7.3.310.0030.00316.30
7.3.300.0030.00316.38
7.3.290.0070.00016.24
7.3.280.0080.00816.36
7.3.270.0130.00617.40
7.3.260.0170.01716.46
7.3.250.0120.00816.50
7.3.240.0060.01016.32
7.3.230.0060.00916.55
7.3.210.0040.01416.40
7.3.200.0090.00916.61
7.3.190.0080.00816.43
7.3.180.0030.01616.34
7.3.170.0120.00316.27
7.3.160.0070.01016.61
7.3.10.0080.00816.54
7.3.00.0110.00716.50
7.2.330.0120.01216.53
7.2.320.0100.00716.34
7.2.310.0080.01016.51
7.2.300.0150.00416.56
7.2.290.0110.00516.21
7.2.130.0070.00716.89
7.2.120.0060.00316.89
7.2.110.0000.01016.62
7.2.100.0070.01016.52
7.2.90.0040.01416.55
7.2.80.0240.00515.74
7.2.70.0260.00016.00
7.2.60.0430.00716.27
7.2.50.0130.00816.24
7.2.40.0190.00815.77
7.2.30.0190.01115.88
7.2.20.0200.00615.76
7.2.10.0210.00815.77
7.2.00.0210.00615.92
7.1.250.0090.00015.60
7.1.200.0040.00915.66
7.1.190.1000.00313.93
7.1.180.0400.00014.04
7.1.170.0400.00313.82
7.1.160.0290.01313.77
7.1.150.0380.00313.50
7.1.140.0360.00913.77
7.1.130.0420.01313.68
7.1.120.0360.00613.76
7.1.110.0550.00614.91
7.1.100.0430.00714.99
7.1.90.0420.00514.65
7.1.80.0730.00814.88
7.1.70.0420.01014.53
7.1.60.0570.01132.55
7.1.50.0600.00932.16
7.1.40.0610.00731.96
7.1.30.0610.00832.18
7.1.20.0560.01732.15
7.1.10.0530.00714.04
7.1.00.0440.00914.20
7.0.310.0300.00713.51
7.0.300.0330.00613.25
7.0.290.0440.01113.21
7.0.270.0460.00413.54
7.0.260.0420.00713.42
7.0.250.0620.01114.74
7.0.240.0460.00814.78
7.0.230.0430.01314.58
7.0.220.0500.00514.23
7.0.210.0460.00814.06
7.0.200.0500.00814.14
7.0.190.0540.00714.11
7.0.180.0450.00813.88
7.0.170.0570.00713.88
7.0.160.0560.01013.99
7.0.150.0480.01013.94
7.0.140.0510.00713.91
7.0.130.0490.00914.07
7.0.120.0550.00514.22
7.0.110.0480.01214.04
7.0.100.0530.00513.94
7.0.90.0530.00713.82
7.0.80.0520.00713.82
7.0.70.0480.00913.85
7.0.60.0520.00513.76
7.0.50.0850.00714.05
7.0.40.0500.01214.12
7.0.30.0520.01113.88
7.0.20.0580.00613.98
7.0.10.0510.01013.95
7.0.00.0570.00713.88

preferences:
38.36 ms | 403 KiB | 5 Q