3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function example(); } class A implements I { public function example(): int { } // compatible with I::example } class B extends A { public function example(): string { } // compatible with I::example }

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.0040.01118.31
8.3.50.0140.00317.93
8.3.40.0120.00618.42
8.3.30.0110.00318.46
8.3.20.0000.00721.90
8.3.10.0050.00321.63
8.3.00.0040.00419.13
8.2.180.0070.00718.11
8.2.170.0120.00622.96
8.2.160.0140.00020.39
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0060.00319.70
8.2.120.0040.00426.35
8.2.110.0100.00021.05
8.2.100.0090.00319.45
8.2.90.0080.00019.27
8.2.80.0070.00317.97
8.2.70.0030.00517.35
8.2.60.0000.00717.77
8.2.50.0000.00918.07
8.2.40.0040.00417.98
8.2.30.0000.01018.05
8.2.20.0070.00017.99
8.2.10.0030.00518.02
8.2.00.0040.00417.65
8.1.280.0110.00425.92
8.1.270.0110.00322.02
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.86
8.1.230.0000.01122.20
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0060.00318.73
8.1.150.0030.00320.13
8.1.140.0040.00419.56
8.1.130.0000.00718.90
8.1.120.0040.00417.43
8.1.110.0030.00517.28
8.1.100.0050.00317.34
8.1.90.0040.00417.36
8.1.80.0000.00717.28
8.1.70.0070.00017.43
8.1.60.0000.00917.56
8.1.50.0040.00417.41
8.1.40.0030.00617.46
8.1.30.0030.00517.62
8.1.20.0080.00017.47
8.1.10.0000.00817.39
8.1.00.0040.00417.31
8.0.300.0080.00318.77
8.0.290.0040.00916.58
8.0.280.0000.00818.37
8.0.270.0030.00317.09
8.0.260.0030.00317.25
8.0.250.0000.00716.94
8.0.240.0060.00316.93
8.0.230.0000.00716.94
8.0.220.0060.00016.92
8.0.210.0040.00416.88
8.0.200.0040.00416.95
8.0.190.0060.00316.97
8.0.180.0040.00416.83
8.0.170.0040.00416.80
8.0.160.0030.00316.84
8.0.150.0030.00316.70
8.0.140.0000.00716.71
8.0.130.0060.00013.27
8.0.120.0040.00416.75
8.0.110.0050.00216.75
8.0.100.0000.00816.88
8.0.90.0000.00816.89
8.0.80.0030.01216.91
8.0.70.0000.00716.88
8.0.60.0040.00416.82
8.0.50.0000.00816.92
8.0.30.0130.00517.13
8.0.20.0110.00817.40
8.0.10.0050.00217.07
8.0.00.0130.01016.77
7.4.330.0000.00615.55
7.4.320.0030.00316.34
7.4.300.0030.00316.44
7.4.290.0060.00316.35
7.4.280.0040.00416.27
7.4.270.0000.00916.44
7.4.260.0030.00716.49
7.4.250.0040.00416.41
7.4.240.0030.00316.45
7.4.230.0030.00316.53
7.4.220.0110.00616.38
7.4.210.0120.00316.59
7.4.200.0030.00316.55
7.4.160.0060.01016.44
7.4.150.0100.00817.40
7.4.140.0130.00717.86
7.4.130.0090.01016.48
7.4.120.0070.01316.50
7.4.110.0060.01016.43
7.4.100.0160.00716.29
7.4.90.0100.00616.53
7.4.80.0100.00719.39
7.4.70.0120.00616.45
7.4.60.0070.01016.32
7.4.50.0070.00716.06
7.4.40.0060.01116.39
7.4.30.0000.01616.43
7.4.10.0030.01415.14
7.4.00.0090.00914.86
7.3.330.0000.00513.29
7.3.320.0030.00313.13
7.3.310.0050.00216.31
7.3.300.0060.00016.35
7.3.290.0050.00916.29
7.3.280.0100.00916.27
7.3.270.0120.00517.40
7.3.260.0090.00916.34
7.3.250.0110.00516.53
7.3.240.0090.00916.44
7.3.230.0060.01216.35
7.3.210.0140.00416.22
7.3.200.0130.00416.30
7.3.190.0060.01316.43
7.3.180.0060.00916.26
7.3.170.0090.00916.60
7.3.160.0000.01716.38
7.3.130.0060.01114.87
7.3.120.0050.01314.71
7.3.110.0070.01114.86
7.3.100.0070.00714.80
7.3.90.0080.00614.79
7.3.80.0070.00514.81
7.3.70.0000.01514.79
7.3.60.0080.00814.81
7.3.50.0070.00714.60
7.3.40.0020.01314.91
7.3.30.0080.00714.84
7.3.20.0060.00616.58
7.3.10.0080.00516.38
7.3.00.0110.00716.46
7.2.330.0140.00316.37
7.2.320.0080.00816.62
7.2.310.0060.01516.29
7.2.300.0100.01416.45
7.2.290.0110.00516.17
7.2.260.0030.01314.82
7.2.250.0070.01115.01
7.2.240.0040.01214.75
7.2.230.0060.01314.83
7.2.220.0080.01014.69
7.2.210.0090.00714.66
7.2.200.0050.00914.86
7.2.190.0050.00714.78
7.2.180.0110.00514.86
7.2.170.0050.00914.62
7.2.160.0090.00615.00
7.2.150.0030.01016.95
7.2.140.0050.00816.77
7.2.130.0100.00616.42
7.2.120.0090.00516.28
7.2.110.0090.00716.64
7.2.100.0090.01116.48
7.2.90.0080.01516.55
7.2.80.0100.00816.61
7.2.70.0100.00516.50
7.2.60.0080.01216.59
7.2.50.0120.01016.73
7.2.40.0090.00816.71
7.2.30.0100.00316.61
7.2.20.0050.01416.63
7.2.10.0110.00816.23
7.2.00.0030.01216.61
7.1.330.0050.00815.51
7.1.320.0090.00715.67
7.1.310.0070.00715.75
7.1.300.0090.00715.62
7.1.290.0080.00315.64
7.1.280.0080.00415.75
7.1.270.0060.00715.56
7.1.260.0090.00515.72
7.1.250.0110.00515.45
7.1.240.0060.00615.41
7.1.230.0120.00015.53
7.1.220.0070.00315.66
7.1.210.0090.00315.52
7.1.200.0030.01115.67
7.1.190.0030.01215.57
7.1.180.0060.00815.64
7.1.170.0060.00615.50
7.1.160.0070.00715.71
7.1.150.0060.01215.40
7.1.140.0030.00915.79
7.1.130.0000.01115.63
7.1.120.0220.00816.09
7.1.110.0350.00715.99
7.1.100.0450.00915.57
7.1.90.0420.00515.80
7.1.80.0250.01215.80
7.1.70.0200.00815.95
7.1.60.0140.01422.02
7.1.50.0270.00727.73
7.1.40.0260.01024.09
7.1.30.0220.01324.02
7.1.20.0230.00624.12
7.1.10.0260.02617.46
7.1.00.0230.02617.60
7.0.330.0080.00415.27
7.0.320.0030.00615.19
7.0.310.0070.01015.13
7.0.300.0110.00414.96
7.0.290.0000.01315.35
7.0.280.0030.00915.30
7.0.270.0000.01115.23
7.0.260.0180.00815.98
7.0.250.0220.00715.49
7.0.240.0260.01015.43
7.0.230.0300.00715.42
7.0.220.0260.00915.60
7.0.210.0180.00515.06
7.0.200.0180.01115.55
7.0.190.0220.00515.06
7.0.180.0210.01014.78
7.0.170.0150.01114.68
7.0.160.0200.00614.78
7.0.150.0180.02717.03
7.0.140.0270.02517.12
7.0.130.0150.02417.24
7.0.120.0140.02617.24
7.0.110.0190.02117.24
7.0.100.0190.02017.21
7.0.90.0170.02417.17
7.0.80.0180.02117.13
7.0.70.0140.02717.12
7.0.60.0160.02517.11
7.0.50.0170.02317.32
7.0.40.0180.02416.66
7.0.30.0570.02316.57
7.0.20.0210.02116.57
7.0.10.0210.02516.57
7.0.00.0170.02516.43
5.6.400.0040.00814.38
5.6.390.0040.01214.14
5.6.380.0110.00314.50
5.6.370.0030.00614.44
5.6.360.0110.00014.36
5.6.350.0040.00813.80
5.6.340.0030.01514.16
5.6.330.0040.00414.08
5.6.320.0000.01114.34
5.6.310.0080.00413.96
5.6.300.0060.00914.19
5.6.290.0030.00614.28
5.6.280.0090.00614.21
5.6.270.0060.00914.27
5.6.260.0040.01214.06
5.6.250.0080.00414.23
5.6.240.0140.00314.30
5.6.230.0040.01114.02
5.6.220.0040.00414.02
5.6.210.0070.00314.04
5.6.200.0100.00714.17
5.6.190.0030.01014.04
5.6.180.0060.00913.93
5.6.170.0080.00314.04
5.6.160.0100.00714.20
5.6.150.0110.00414.02
5.6.140.0000.01214.11
5.6.130.0030.01014.03
5.6.120.0030.00913.88
5.6.110.0160.00014.02
5.6.100.0070.00714.01
5.6.90.0110.00313.97
5.6.80.0000.01214.00
5.6.70.0000.01214.09
5.6.60.0030.01014.03
5.6.50.0100.00314.02
5.6.40.0060.00714.11
5.6.30.0100.00713.95
5.6.20.0000.00913.95
5.6.10.0070.00714.23
5.6.00.0000.01214.02

preferences:
67.27 ms | 400 KiB | 5 Q