3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { function test(): int; } class A implements I { function test(): int {} } class B extends A { function test(): string {} } ?>

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.60.0060.01616.73
8.3.50.0110.00418.14
8.3.40.0100.00618.72
8.3.30.0140.00018.45
8.3.20.0040.00423.66
8.3.10.0040.01121.91
8.3.00.0040.00419.26
8.2.180.0070.00718.06
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00021.04
8.2.110.0000.00921.04
8.2.100.0090.00317.78
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0090.00022.27
8.2.30.0070.00019.05
8.2.20.0040.00417.85
8.2.10.0030.00618.04
8.2.00.0040.00417.52
8.1.280.0120.00925.92
8.1.270.0070.00020.25
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00619.05
8.1.230.0070.00421.10
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0030.00717.10
8.1.180.0040.00418.10
8.1.170.0070.00018.89
8.1.160.0070.00018.80
8.1.150.0000.00820.26
8.1.140.0080.00019.46
8.1.130.0000.00719.00
8.1.120.0050.00317.32
8.1.110.0040.00417.27
8.1.100.0040.00417.39
8.1.90.0040.00417.39
8.1.80.0000.00717.27
8.1.70.0050.00217.27
8.1.60.0050.00217.49
8.1.50.0080.00017.43
8.1.40.0000.00717.35
8.1.30.0040.00417.48
8.1.20.0050.00217.57
8.1.10.0070.00017.37
8.1.00.0050.00217.23
8.0.300.0000.00718.90
8.0.290.0080.00016.75
8.0.280.0000.00718.38
8.0.270.0070.00017.23
8.0.260.0030.00317.20
8.0.250.0000.00616.83
8.0.240.0000.00716.93
8.0.230.0040.00416.86
8.0.220.0000.00716.84
8.0.210.0000.00716.79
8.0.200.0030.00316.87
8.0.190.0050.00216.92
8.0.180.0070.00016.79
8.0.170.0070.00016.96
8.0.160.0030.00316.77
8.0.150.0040.00416.87
8.0.140.0050.00316.74
8.0.130.0060.00013.26
8.0.120.0040.00416.90
8.0.110.0000.00716.66
8.0.100.0000.00816.77
8.0.90.0040.00416.83
8.0.80.0000.01516.91
8.0.70.0040.00416.77
8.0.60.0000.00716.95
8.0.50.0000.00716.86
8.0.30.0080.01217.14
8.0.20.0130.02017.40
8.0.10.0080.00016.90
8.0.00.0100.00716.46
7.4.330.0040.00015.55
7.4.320.0000.00616.42
7.4.300.0060.00016.55
7.4.290.0030.00316.52
7.4.280.0130.00016.46
7.4.270.0030.00316.34
7.4.260.0000.00716.35
7.4.250.0040.00416.49
7.4.240.0080.00016.46
7.4.230.0030.00316.43
7.4.220.0070.01016.52
7.4.210.0030.01116.39
7.4.200.0080.00016.59
7.4.160.0080.00816.44
7.4.150.0190.00617.40
7.4.140.0110.00717.86
7.4.130.0110.00716.37
7.4.120.0110.00816.51
7.4.110.0100.00716.43
7.4.100.0170.00316.52
7.4.90.0070.01016.45
7.4.80.0200.00319.39
7.4.70.0070.01716.44
7.4.60.0090.00616.58
7.4.50.0040.01416.41
7.4.40.0060.01116.34
7.4.30.0110.00616.47
7.4.00.0040.01514.70
7.3.330.0000.00613.12
7.3.320.0000.00613.11
7.3.310.0030.00316.34
7.3.300.0030.00316.34
7.3.290.0090.00816.31
7.3.280.0070.01016.30
7.3.270.0110.00817.40
7.3.260.0100.00716.25
7.3.250.0090.00816.26
7.3.240.0130.00616.46
7.3.230.0140.00316.21
7.3.210.0130.00316.23
7.3.200.0060.01016.59
7.3.190.0150.00316.37
7.3.180.0100.00716.52
7.3.170.0060.00916.25
7.3.160.0140.00316.41
7.2.330.0120.00416.55
7.2.320.0090.01516.25
7.2.310.0130.00316.60
7.2.300.0090.01316.18
7.2.290.0070.01416.56
7.2.60.0000.00916.71
7.2.00.0000.01219.25
7.1.200.0030.00915.50
7.1.100.0000.01217.96
7.1.70.0000.00716.93
7.1.60.0080.00417.05
7.1.50.0110.01116.79
7.1.10.0100.06022.21
7.1.00.0200.05022.33
7.0.200.0150.00016.60
7.0.150.0170.05721.86
7.0.140.0030.08721.85
7.0.130.0070.06021.91
7.0.120.0130.06721.84
7.0.110.0030.06721.85
7.0.100.0070.05721.90
7.0.90.0130.08021.90
7.0.80.0030.06022.02
7.0.70.0030.06021.93
7.0.60.0070.05721.78
7.0.50.0030.06021.95
7.0.40.0100.05321.92
7.0.30.0100.05321.88
7.0.20.0070.05721.89
7.0.10.0100.05321.84
7.0.00.0030.06021.84

preferences:
49.4 ms | 401 KiB | 5 Q