3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} interface SomeInterface { public function test() : A; } class B implements SomeInterface { public function test() : A // all good! { return null; // Fatal error: Uncaught TypeError: Return value of B::test() must be an instance of A, null returned... } } ?>

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.70.0090.00918.16
8.3.60.0140.00716.75
8.3.50.0090.00921.05
8.3.40.0080.00818.72
8.3.30.0070.00718.39
8.3.20.0040.00420.35
8.3.10.0040.00423.70
8.3.00.0040.00423.66
8.2.190.0090.00916.58
8.2.180.0070.01016.32
8.2.170.0070.00722.96
8.2.160.0130.00320.27
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0000.00721.18
8.2.110.0100.00021.12
8.2.100.0040.00718.04
8.2.90.0000.01019.07
8.2.80.0000.00917.97
8.2.70.0000.00917.37
8.2.60.0040.00417.78
8.2.50.0030.00518.07
8.2.40.0090.00020.61
8.2.30.0030.00719.38
8.2.20.0060.00517.63
8.2.10.0040.00418.02
8.2.00.0040.00417.88
8.1.280.0110.00425.92
8.1.270.0100.00722.25
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0090.00022.47
8.1.230.0040.00819.16
8.1.220.0000.00817.74
8.1.210.0070.00018.77
8.1.200.0030.00617.25
8.1.190.0040.00417.00
8.1.180.0070.00418.10
8.1.170.0000.00918.64
8.1.160.0000.00720.70
8.1.150.0040.00420.65
8.1.140.0080.00019.43
8.1.130.0040.00417.55
8.1.120.0070.00017.46
8.1.110.0040.00417.45
8.1.100.0020.00517.29
8.1.90.0040.00417.39
8.1.80.0000.00817.31
8.1.70.0070.00017.36
8.1.60.0030.00617.58
8.1.50.0030.00617.42
8.1.40.0000.00817.52
8.1.30.0030.00517.50
8.1.20.0030.00517.48
8.1.10.0050.00317.42
8.1.00.0000.00817.31
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0040.00418.39
8.0.270.0000.00717.20
8.0.260.0000.00717.11
8.0.250.0000.00716.84
8.0.240.0050.00516.81
8.0.230.0000.00716.93
8.0.220.0030.00316.84
8.0.210.0040.00416.82
8.0.200.0000.00616.81
8.0.190.0000.00816.92
8.0.180.0000.00816.75
8.0.170.0040.00416.78
8.0.160.0030.00416.86
8.0.150.0020.00516.77
8.0.140.0040.00416.81
8.0.130.0000.00513.25
8.0.120.0040.00416.73
8.0.110.0040.00416.68
8.0.100.0050.00216.77
8.0.90.0030.00316.76
8.0.80.0110.00416.75
8.0.70.0040.00416.78
8.0.60.0040.00416.89
8.0.50.0040.00416.85
8.0.30.0090.00817.04
8.0.20.0140.00417.40
8.0.10.0040.00416.86
8.0.00.0110.00616.65
7.4.330.0000.00516.89
7.4.320.0030.00316.52
7.4.300.0030.00316.52
7.4.290.0040.00416.45
7.4.280.0080.00016.45
7.4.270.0000.00916.55
7.4.260.0070.00016.47
7.4.250.0040.00416.55
7.4.240.0070.00016.43
7.4.230.0030.00316.53
7.4.220.0080.00716.41
7.4.210.0110.00516.43
7.4.200.0070.00016.52
7.4.160.0150.00016.33
7.4.150.0080.01117.40
7.4.140.0070.01417.86
7.4.130.0120.00916.50
7.4.120.0020.01516.37
7.4.110.0100.00716.32
7.4.100.0160.00716.32
7.4.90.0090.00916.42
7.4.80.0200.00819.39
7.4.70.0170.00016.30
7.4.60.0120.00616.47
7.4.50.0080.00716.59
7.4.40.0060.01016.19
7.4.30.0080.01216.45
7.4.10.0080.00814.77
7.4.00.0030.01314.97
7.3.330.0040.00412.99
7.3.320.0050.00012.96
7.3.310.0070.00016.20
7.3.300.0000.00716.16
7.3.290.0040.00416.20
7.3.280.0080.01016.17
7.3.270.0110.00617.40
7.3.260.0140.00316.38
7.3.250.0090.00916.24
7.3.240.0110.00616.29
7.3.230.0100.00716.39
7.3.210.0160.00616.39
7.3.200.0130.00319.39
7.3.190.0080.00816.57
7.3.180.0150.00716.44
7.3.170.0060.01216.27
7.3.160.0090.00616.22
7.3.130.0100.01014.72
7.3.120.0070.01014.56
7.3.110.0090.00914.52
7.3.100.0100.00614.64
7.3.90.0050.00714.67
7.3.80.0030.01114.74
7.3.70.0060.00514.65
7.3.60.0070.00714.70
7.3.50.0090.00614.72
7.3.40.0050.01014.70
7.3.30.0150.00014.71
7.3.20.0040.01116.65
7.3.10.0050.00916.60
7.3.00.0080.00416.48
7.2.330.0090.00916.25
7.2.320.0130.00316.39
7.2.310.0060.01516.47
7.2.300.0040.01416.49
7.2.290.0140.00416.53
7.2.260.0090.00914.66
7.2.250.0080.00914.97
7.2.240.0060.01114.70
7.2.230.0060.00814.78
7.2.220.0070.01014.87
7.2.210.0050.00714.77
7.2.200.0020.01114.92
7.2.190.0060.00614.86
7.2.180.0080.00514.82
7.2.170.0040.00814.91
7.2.160.0050.00614.95
7.2.150.0070.00816.71
7.2.140.0060.00616.71
7.2.130.0080.00616.67
7.2.120.0120.00316.82
7.2.110.0020.01216.80
7.2.100.0080.01016.76
7.2.90.0090.00416.70
7.2.80.0020.01216.62
7.2.70.0080.00516.96
7.2.60.0050.00816.63
7.2.50.0040.00816.81
7.2.40.0080.00916.81
7.2.30.0070.00616.94
7.2.20.0020.01016.70
7.2.10.0020.01116.81
7.2.00.0060.00817.49
7.1.330.0090.00615.61
7.1.320.0050.01015.57
7.1.310.0050.00815.84
7.1.300.0120.00215.67
7.1.290.0020.01115.32
7.1.280.0080.00515.54
7.1.270.0060.00715.59
7.1.260.0020.01015.67
7.1.250.0070.00415.66
7.1.240.0080.00715.56
7.1.230.0030.00715.72
7.1.220.0040.00615.57
7.1.210.0050.01215.72
7.1.200.0040.00915.60
7.1.190.0060.00615.45
7.1.180.0010.01115.65
7.1.170.0030.01115.36
7.1.160.0030.01115.53
7.1.150.0070.00715.67
7.1.140.0040.00815.63
7.1.130.0040.01115.78
7.1.120.0060.00515.77
7.1.110.0050.00615.68
7.1.100.0050.00716.43
7.1.90.0060.00615.53
7.1.80.0090.00515.64
7.1.70.0050.00716.25
7.1.60.0050.00816.82
7.1.50.0060.01116.03
7.1.40.0000.01215.77
7.1.30.0080.00815.73
7.1.20.0080.00815.57
7.1.10.0070.00715.68
7.1.00.0060.03117.81
7.0.330.0060.00415.00
7.0.320.0090.00815.12
7.0.310.0030.00815.43
7.0.300.0040.00915.45
7.0.290.0080.00915.37
7.0.280.0090.00215.31
7.0.270.0000.01615.43
7.0.260.0090.00415.25
7.0.250.0050.00515.23
7.0.240.0090.00515.33
7.0.230.0050.00315.23
7.0.220.0040.00715.37
7.0.210.0050.00715.18
7.0.200.0090.00315.63
7.0.190.0020.01015.39
7.0.180.0050.00815.33
7.0.170.0050.00515.26
7.0.160.0100.00715.36
7.0.150.0060.00615.38
7.0.140.0030.01115.16
7.0.130.0040.00815.38
7.0.120.0060.00815.34
7.0.110.0060.00515.40
7.0.100.0020.00915.08
7.0.90.0070.00615.29
7.0.80.0080.00615.42
7.0.70.0050.00815.30
7.0.60.0040.03117.47
7.0.50.0100.01816.33
7.0.40.0070.03115.53
7.0.30.0120.03015.70
7.0.20.0160.02015.64
7.0.10.0060.01715.63
7.0.00.0100.02915.62
5.6.400.0040.00714.18
5.6.390.0000.01214.25
5.6.380.0060.00814.32
5.6.370.0060.00613.95
5.6.360.0060.00914.35
5.6.350.0070.00514.19
5.6.340.0070.00513.92
5.6.330.0030.01214.15
5.6.320.0080.00314.12
5.6.310.0100.00114.33
5.6.300.0010.01114.30
5.6.290.0090.00614.07
5.6.280.0020.03216.38
5.6.270.0080.00514.20
5.6.260.0070.00514.24
5.6.250.0060.00613.91
5.6.240.0030.00814.02
5.6.230.0050.00814.21
5.6.220.0040.00714.15
5.6.210.0050.03316.38
5.6.200.0090.03215.62
5.6.190.0050.02416.22
5.6.180.0140.02616.27
5.6.170.0160.02616.18
5.6.160.0060.02816.26
5.6.150.0060.01815.55
5.6.140.0070.03215.46
5.6.130.0090.03015.42
5.6.120.0070.02916.46
5.6.110.0040.02716.50
5.6.100.0070.03116.35
5.6.90.0070.02616.39
5.6.80.0070.03416.27
5.6.70.0080.00514.13
5.6.60.0080.00214.08
5.6.50.0050.00514.01
5.6.40.0070.00714.15
5.6.30.0030.00513.99
5.6.20.0050.00714.15
5.6.10.0060.00713.96
5.6.00.0070.00313.95
5.5.380.0050.00614.09
5.5.370.0060.00514.05
5.5.360.0020.01113.99
5.5.350.1440.01716.09
5.5.340.0080.01615.42
5.5.330.0120.02716.13
5.5.320.0130.01715.94
5.5.310.0130.01916.20
5.5.300.0030.02015.46
5.5.290.0020.02015.37
5.5.280.0080.03216.27
5.5.270.0070.03116.15
5.5.260.0020.02316.19
5.5.250.0080.03016.25
5.5.240.0090.02816.05
5.5.230.0020.00713.84
5.5.220.0090.00613.97
5.5.210.0100.00213.99
5.5.200.0030.01213.86
5.5.190.0070.00313.92
5.5.180.0050.00713.94
5.5.170.0040.00514.09
5.5.160.0040.00613.74
5.5.150.0040.00914.22
5.5.140.0080.00713.98
5.5.130.0080.00513.93
5.5.120.0050.00913.97
5.5.110.0040.00714.15
5.5.100.0050.00514.05
5.5.90.0050.00513.84
5.5.80.0050.00714.21
5.5.70.0070.00414.11
5.5.60.0070.00514.03
5.5.50.0000.01214.04
5.5.40.0030.01013.89
5.5.30.0050.00514.00
5.5.20.0050.00914.08
5.5.10.0020.01314.03
5.5.00.0000.01114.07

preferences:
47.5 ms | 401 KiB | 5 Q