3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { function f($code = 1); static function sf(); const MY_CONST = 2; } class ATT { function att() {} } class BTT extends ATT implements I { const MY_CONST = 1; function f($code = 1) { // TODO: Implement f() method. } static function sf() { // TODO: Implement sf() method. } }

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.0090.00918.43
8.3.50.0160.00621.14
8.3.40.0140.00018.30
8.3.30.0080.00618.59
8.3.20.0040.00420.30
8.3.10.0040.00421.87
8.3.00.0000.00822.34
8.2.180.0110.01516.38
8.2.170.0090.00622.96
8.2.160.0070.00720.40
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0070.00321.18
8.2.100.0090.00317.64
8.2.90.0040.00420.65
8.2.80.0000.00820.47
8.2.70.0060.00317.50
8.2.60.0050.00317.80
8.2.50.0040.00418.10
8.2.40.0080.00021.01
8.2.30.0000.00717.87
8.2.20.0000.00817.62
8.2.10.0040.00417.86
8.2.00.0050.00317.94
8.1.280.0040.01125.92
8.1.270.0030.00620.25
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0150.00622.19
8.1.230.0110.00020.91
8.1.220.0040.00417.74
8.1.210.0000.00818.97
8.1.200.0000.00817.22
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0000.00918.64
8.1.160.0040.00422.00
8.1.150.0040.00418.87
8.1.140.0000.00817.38
8.1.130.0070.00017.68
8.1.120.0030.00417.39
8.1.110.0040.00417.38
8.1.100.0070.00017.30
8.1.90.0000.00717.29
8.1.80.0000.00817.38
8.1.70.0000.00717.37
8.1.60.0000.00917.50
8.1.50.0030.00617.48
8.1.40.0000.00717.35
8.1.30.0080.00017.48
8.1.20.0000.00717.58
8.1.10.0040.00417.34
8.1.00.0040.00717.23
8.0.300.0000.00719.94
8.0.290.0000.00716.63
8.0.280.0000.00718.43
8.0.270.0070.00017.23
8.0.260.0000.00717.07
8.0.250.0020.00517.01
8.0.240.0070.00016.96
8.0.230.0040.00316.84
8.0.220.0000.00716.77
8.0.210.0040.00416.77
8.0.200.0000.00616.88
8.0.190.0080.00016.84
8.0.180.0030.00316.87
8.0.170.0050.00316.85
8.0.160.0030.00416.90
8.0.150.0030.00316.70
8.0.140.0000.00816.80
8.0.130.0030.00313.24
8.0.120.0040.00416.87
8.0.110.0030.00516.78
8.0.100.0000.00716.88
8.0.90.0040.00416.81
8.0.80.0120.00316.88
8.0.70.0070.00016.78
8.0.60.0000.00716.76
8.0.50.0000.00716.89
8.0.30.0120.00717.10
8.0.20.0050.01617.40
8.0.10.0050.00217.04
8.0.00.0080.00916.71
7.4.330.0050.00015.08
7.4.320.0000.00616.40
7.4.300.0030.00316.54
7.4.290.0030.00316.55
7.4.280.0040.00416.34
7.4.270.0050.00216.42
7.4.260.0070.00016.51
7.4.250.0040.00416.48
7.4.240.0020.00516.40
7.4.230.0080.00016.27
7.4.220.0080.00816.48
7.4.210.0080.00716.51
7.4.200.0040.00416.25
7.4.160.0130.00316.62
7.4.150.0130.00617.40
7.4.140.0120.00817.86
7.4.130.0140.00616.38
7.4.120.0070.01016.43
7.4.110.0000.01616.43
7.4.100.0090.00916.46
7.4.90.0150.00316.29
7.4.80.0000.01619.39
7.4.70.0030.01416.45
7.4.60.0060.01316.38
7.4.50.0000.00816.38
7.4.40.0090.00916.20
7.4.30.0100.01016.42
7.4.00.0000.01415.19
7.3.330.0050.00013.13
7.3.320.0000.00613.27
7.3.310.0050.00316.32
7.3.300.0030.00316.16
7.3.290.0070.00016.13
7.3.280.0090.01016.29
7.3.270.0110.00717.40
7.3.260.0150.00316.20
7.3.250.0100.00716.36
7.3.240.0130.00316.40
7.3.230.0030.02016.39
7.3.210.0090.01216.59
7.3.200.0090.00619.39
7.3.190.0160.00316.24
7.3.180.0150.00016.56
7.3.170.0090.00916.59
7.3.160.0150.00316.48
7.2.330.0140.00716.62
7.2.320.0130.00316.58
7.2.310.0150.00916.29
7.2.300.0110.00616.66
7.2.290.0070.01316.38
7.2.110.0000.01216.19
7.2.100.0090.00616.45
7.2.90.0090.00016.34
7.2.80.0030.00616.32
7.2.70.0060.00916.51
7.2.60.0090.00616.88
7.2.50.0070.00716.89
7.2.40.0000.01216.61
7.2.30.0060.00616.92
7.2.20.0090.00316.78
7.2.10.0000.00816.94
7.2.00.0060.00717.99
7.1.230.0120.00015.75
7.1.220.0110.00315.79
7.1.210.0030.00715.50
7.1.200.0050.00815.71
7.1.190.0060.00615.79
7.1.180.0030.00515.68
7.1.170.0000.01015.59
7.1.160.0110.00415.61
7.1.150.0040.00415.82
7.1.140.0040.00415.72
7.1.130.0100.00315.81
7.1.120.0030.00715.71
7.1.110.0120.00015.69
7.1.100.0060.00316.72
7.1.90.0070.00315.83
7.1.80.0030.00615.88
7.1.70.0120.00416.32
7.1.60.0040.01617.89
7.1.50.0080.01016.19
7.1.40.0060.00615.62
7.1.30.0000.01215.89
7.1.20.0110.00015.79
7.1.10.0050.00515.84
7.1.00.0070.03718.94
7.0.310.0060.00615.26
7.0.300.0000.00715.21
7.0.290.0000.01215.30
7.0.280.0070.00415.25
7.0.270.0060.00315.23
7.0.260.0030.00814.96
7.0.250.0000.01315.16
7.0.240.0000.01415.10
7.0.230.0040.00815.41
7.0.220.0030.01015.27
7.0.210.0030.00915.27
7.0.200.0180.00315.16
7.0.190.0080.00615.17
7.0.180.0030.01015.27
7.0.170.0000.01015.01
7.0.160.0090.00614.95
7.0.150.0050.00515.21
7.0.140.0030.01015.24
7.0.130.0000.01015.52
7.0.120.0000.01115.47
7.0.110.0060.00615.13
7.0.100.0050.00515.10
7.0.90.0050.00515.43
7.0.80.0060.00615.04
7.0.70.0040.00815.37
7.0.60.0030.02717.37
7.0.50.0050.03816.59
7.0.40.0080.04316.72
7.0.30.0270.03516.76
7.0.20.0170.02716.85
7.0.10.0080.03816.76
7.0.00.0070.04516.91
5.6.380.0070.00414.27
5.6.370.0030.00914.06
5.6.360.0070.00314.27
5.6.350.0000.01014.47
5.6.340.0000.00613.98
5.6.330.0040.00414.18
5.6.320.0100.00314.10
5.6.310.0070.00714.22
5.6.300.0070.00314.48
5.6.290.0030.00314.29
5.6.280.0100.02917.50
5.6.270.0060.00613.96
5.6.260.0000.01014.12
5.6.250.0040.00814.27
5.6.240.0060.00013.96
5.6.230.0000.00614.18
5.6.220.0060.00614.23
5.6.210.0050.04317.36
5.6.200.0030.02716.21
5.6.190.0030.04717.42
5.6.180.0130.02817.36
5.6.170.0160.02517.34
5.6.160.0050.03917.43
5.6.150.0060.02116.16
5.6.140.0050.04416.30
5.6.130.0020.04916.27
5.6.120.0070.03917.71
5.6.110.0030.04017.51
5.6.100.0080.02117.72
5.6.90.0030.04517.71
5.6.80.0050.02817.34
5.6.70.1720.01717.33
5.6.60.0090.00313.86
5.6.50.0100.00314.20
5.6.40.0060.00314.25
5.6.30.0060.00614.14
5.6.20.0130.00014.10
5.6.10.0060.00614.20
5.6.00.0070.00413.85
5.5.380.0000.00812.79
5.5.370.0030.00712.79
5.5.360.0030.00612.79
5.5.350.0070.02816.57
5.5.340.0020.04715.37
5.5.330.0000.02916.52
5.5.320.0100.03816.58
5.5.310.0200.04116.53
5.5.300.0030.04515.36
5.5.290.0050.04515.38
5.5.280.0040.02616.78
5.5.270.0060.04416.74
5.5.260.0060.04316.88
5.5.250.0030.03816.73
5.5.240.0020.04116.53
5.5.230.0040.00412.79
5.5.220.0000.01112.79
5.5.210.0030.00612.79
5.5.200.0100.00012.79
5.5.190.0000.00612.79
5.5.180.0030.00612.79
5.5.170.0000.00813.61
5.5.160.0030.00712.79
5.5.150.0050.00012.79
5.5.140.0030.00612.79
5.5.130.0040.00012.79
5.5.120.0000.00812.79
5.5.110.0110.00012.79
5.5.100.0000.00912.79
5.5.90.0000.00512.79
5.5.80.0030.00712.79
5.5.70.0030.00612.79
5.5.60.0000.01012.79
5.5.50.0040.00712.79
5.5.40.0070.00312.79
5.5.30.0030.00312.79
5.5.20.0030.00812.79
5.5.10.0060.00012.79
5.5.00.0030.01012.79
5.4.450.0110.03016.19
5.4.440.0480.03116.13
5.4.430.0460.02716.17
5.4.420.0100.02516.18
5.4.410.0120.02316.07
5.4.400.0470.03316.03
5.4.390.0400.03016.00
5.4.380.0480.03016.09
5.4.370.0420.02216.02
5.4.360.0170.03516.04
5.4.350.0030.03216.05
5.4.340.0250.03715.82
5.4.330.0000.00912.79
5.4.320.0550.02115.83
5.4.310.0290.03216.08
5.4.300.0370.02715.96
5.4.290.0380.03315.97
5.4.280.0460.03816.01
5.4.270.0520.02516.02
5.4.260.0400.03116.00
5.4.250.0430.03015.83
5.4.240.0320.03216.08
5.4.230.0370.02915.97
5.4.220.0430.03516.03
5.4.210.0430.03315.96
5.4.200.0420.03314.95
5.4.190.0550.02715.84
5.4.180.0450.03116.04
5.4.170.0420.03816.03
5.4.160.0380.03215.98
5.4.150.0380.03315.96
5.4.140.0460.03114.63
5.4.130.0350.03314.62
5.4.120.0490.02614.68
5.4.110.0400.02514.69
5.4.100.0420.02714.58
5.4.90.0430.03314.70
5.4.80.0430.03714.71
5.4.70.0300.03514.61
5.4.60.0200.03514.51
5.4.50.0070.03514.58
5.4.40.0010.03114.56
5.4.30.0040.02514.65
5.4.20.0080.02514.64
5.4.10.0040.00412.79
5.4.00.0050.00512.79

preferences:
55.25 ms | 401 KiB | 5 Q