3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo {} class A { public function foo(): Foo {} } class B extends A { public function foo(): Bar {} }

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.120.0060.00318.78
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0070.00426.77
8.3.80.0090.00016.50
8.3.70.0170.00316.74
8.3.60.0170.00318.31
8.3.50.0090.00917.38
8.3.40.0040.01118.71
8.3.30.0120.00318.47
8.3.20.0080.00020.81
8.3.10.0000.00820.29
8.3.00.0080.00020.75
8.2.240.0100.00718.91
8.2.230.0060.00322.58
8.2.220.0030.01337.54
8.2.210.0040.00426.77
8.2.200.0070.00416.38
8.2.190.0040.01316.58
8.2.180.0030.01018.41
8.2.170.0090.00622.96
8.2.160.0070.00720.58
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0100.00022.07
8.2.100.0070.00420.36
8.2.90.0000.00918.09
8.2.80.0000.00817.97
8.2.70.0030.00517.80
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0050.00319.26
8.2.30.0000.00718.99
8.2.20.0040.00417.92
8.2.10.0030.00318.99
8.2.00.0000.00718.98
8.1.300.0040.01515.91
8.1.290.0030.00718.88
8.1.280.0060.00925.92
8.1.270.0080.00322.34
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0060.00323.92
8.1.230.0040.00719.01
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0040.00420.81
8.1.160.0000.00718.93
8.1.150.0040.00418.66
8.1.140.0040.00421.96
8.1.130.0030.00319.97
8.1.120.0000.00717.18
8.1.110.0030.00817.32
8.1.100.0030.00517.22
8.1.90.0040.00317.34
8.1.80.0000.00817.35
8.1.70.0000.00717.28
8.1.60.0040.00417.49
8.1.50.0080.00017.43
8.1.40.0000.00917.39
8.1.30.0000.00817.53
8.1.20.0040.00417.46
8.1.10.0040.00417.29
8.1.00.0070.00317.33
8.0.300.0000.00719.68
8.0.290.0000.01116.63
8.0.280.0050.00318.20
8.0.270.0070.00017.23
8.0.260.0000.00619.93
8.0.250.0030.00316.73
8.0.240.0030.00316.80
8.0.230.0000.00716.80
8.0.220.0060.00316.65
8.0.210.0030.00616.65
8.0.200.0030.00616.83
8.0.190.0050.00316.84
8.0.180.0090.00016.80
8.0.170.0000.00916.81
8.0.160.0040.00416.79
8.0.150.0040.00416.75
8.0.140.0040.00416.61
8.0.130.0000.00613.27
8.0.120.0040.00416.61
8.0.110.0040.00416.77
8.0.100.0040.00416.63
8.0.90.0030.00616.80
8.0.80.0090.00916.67
8.0.70.0040.00416.66
8.0.60.0000.00716.64
8.0.50.0040.00416.82
8.0.30.0000.02116.88
8.0.20.0050.01416.91
8.0.10.0000.00816.75
8.0.00.0090.00916.75
7.4.330.0020.00215.55
7.4.320.0060.00016.36
7.4.300.0000.00616.38
7.4.290.0040.00416.41
7.4.280.0040.00416.41
7.4.270.0030.00316.38
7.4.260.0030.00413.04
7.4.250.0000.00716.32
7.4.240.0040.00316.49
7.4.230.0030.00316.53
7.4.220.0020.00516.53
7.4.210.0080.00716.44
7.4.200.0040.00416.43
7.4.130.0090.00916.32
7.4.120.0180.00316.31
7.4.110.0100.00716.26
7.4.100.0180.00516.34
7.4.90.0130.00316.22
7.4.80.0110.00719.39
7.4.70.0110.00816.37
7.4.60.0000.01616.28
7.4.50.0060.00916.30
7.4.40.0100.00716.23
7.4.10.0130.00314.80
7.4.00.0040.01414.82
7.3.330.0030.00316.05
7.3.320.0020.00313.23
7.3.310.0080.00016.21
7.3.300.0030.00316.24
7.3.290.0070.01016.20
7.3.280.0060.01216.24
7.3.260.0090.00816.22
7.3.240.0150.00416.40
7.3.230.0110.00616.38
7.3.210.0170.00016.42
7.3.200.0070.01116.34
7.3.190.0090.01216.45
7.3.180.0150.00416.41
7.3.170.0070.01016.24
7.3.160.0110.00616.24
7.3.130.0080.00814.82
7.3.120.0040.01114.67
7.3.110.0100.01014.45
7.3.100.0080.00814.44
7.3.90.0090.00814.87
7.3.80.0110.00514.56
7.3.70.0050.00914.66
7.3.60.0060.01114.65
7.3.50.0020.01414.37
7.3.40.0060.00614.64
7.3.30.0080.00614.55
7.3.20.0060.00915.54
7.3.10.0080.00615.52
7.3.00.0050.00715.64
7.2.330.0090.00916.19
7.2.320.0090.00916.20
7.2.310.0130.00316.23
7.2.300.0060.01216.52
7.2.290.0060.01116.29
7.2.260.0080.00615.04
7.2.250.0060.01215.03
7.2.240.0060.00914.42
7.2.230.0050.01214.78
7.2.220.0050.01414.57
7.2.210.0030.00914.64
7.2.200.0030.01414.58
7.2.190.0070.00814.79
7.2.180.0050.01314.73
7.2.170.0070.00714.74
7.2.160.0090.00814.62
7.2.150.0040.01015.87
7.2.140.0070.01015.59
7.2.130.0080.00715.82
7.2.120.0030.00915.68
7.2.110.0060.00615.72
7.2.100.0080.00615.81
7.2.90.0110.00415.98
7.2.80.0090.00715.89
7.2.70.0090.00615.70
7.2.60.0080.00815.70
7.2.50.0060.00615.67
7.2.40.0120.00815.83
7.2.30.0080.00815.89
7.2.20.0010.01015.81
7.2.10.0070.00915.82
7.2.00.0070.01115.83
7.1.330.0030.01015.83
7.1.320.0040.01214.51
7.1.310.0110.00614.58
7.1.300.0050.01014.68
7.1.290.0110.00714.54
7.1.280.0080.00714.55
7.1.270.0050.00914.52
7.1.260.0060.00514.49
7.1.250.0110.00214.46
7.1.240.0060.00315.58
7.1.230.0030.00715.52
7.1.220.0060.01015.76
7.1.210.0060.00615.37
7.1.200.0100.00315.67
7.1.190.0000.01515.62
7.1.180.0040.01115.66
7.1.170.0060.00815.50
7.1.160.0050.00815.30
7.1.150.0030.00615.73
7.1.140.0000.00915.33
7.1.130.0060.01015.44
7.1.120.0090.00015.46
7.1.110.0030.00915.69
7.1.100.0060.00615.70
7.1.90.0090.00615.37
7.1.80.0040.01115.57
7.1.70.0000.01515.77
7.1.60.0030.00615.80
7.1.50.0000.00915.51
7.1.40.0030.00615.66
7.1.30.0070.00715.41
7.1.20.0030.01015.63
7.1.10.0070.01015.27
7.1.00.0030.00615.64

preferences:
62.06 ms | 403 KiB | 5 Q