3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public static function test($classname) { return $classname::$variable; } } class B extends A { public static $variable = 'BBB'; } echo B::test('B');

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.0150.00016.50
8.3.50.0170.00116.37
8.3.40.0090.00618.50
8.3.30.0110.00418.58
8.3.20.0000.00818.65
8.3.10.0090.00018.67
8.3.00.0060.00319.00
8.2.180.0100.00725.92
8.2.170.0130.00318.94
8.2.160.0150.00022.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.01121.03
8.2.110.0090.00020.54
8.2.100.0080.00417.91
8.2.90.0030.00517.75
8.2.80.0040.00418.77
8.2.70.0000.00817.50
8.2.60.0090.00018.05
8.2.50.0040.00418.07
8.2.40.0000.00819.23
8.2.30.0060.00317.73
8.2.20.0030.00617.49
8.2.10.0000.00717.59
8.2.00.0060.00317.71
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00418.94
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0040.00418.75
8.1.160.0000.00818.88
8.1.150.0000.00718.44
8.1.140.0040.00417.37
8.1.130.0000.00717.36
8.1.120.0040.00417.37
8.1.110.0040.00417.38
8.1.100.0040.00417.37
8.1.90.0070.00017.34
8.1.80.0000.00717.24
8.1.70.0030.00317.25
8.1.60.0000.00817.49
8.1.50.0030.00517.34
8.1.40.0060.00317.33
8.1.30.0040.00417.55
8.1.20.0050.00317.52
8.1.10.0000.00817.52
8.1.00.0000.00817.43
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.46
8.0.270.0070.00017.24
8.0.260.0040.00416.85
8.0.250.0080.00016.83
8.0.240.0030.00516.96
8.0.230.0030.00316.78
8.0.220.0070.00016.73
8.0.210.0030.00316.87
8.0.200.0060.00016.83
8.0.190.0040.00416.86
8.0.180.0070.00016.86
8.0.170.0000.00816.63
8.0.160.0030.00316.77
8.0.150.0040.00416.64
8.0.140.0080.00416.72
8.0.130.0000.00513.17
8.0.120.0000.00816.74
8.0.110.0030.00516.79
8.0.100.0030.00516.57
8.0.90.0000.00816.75
8.0.80.0080.01216.71
8.0.70.0020.00516.64
8.0.60.0030.00616.57
8.0.50.0040.00416.73
8.0.30.0120.00616.80
8.0.20.0080.01016.97
8.0.10.0070.00016.91
8.0.00.0110.00716.89
7.4.330.0050.00012.79
7.4.320.0030.00316.47
7.4.300.0030.00316.57
7.4.290.0040.00716.45
7.4.280.0040.00416.53
7.4.270.0000.00716.52
7.4.260.0030.00313.29
7.4.250.0040.00416.55
7.4.240.0040.00416.48
7.4.230.0040.00416.31
7.4.220.0030.02316.48
7.4.210.0120.00316.55
7.4.200.0060.00016.41
7.4.190.0040.00416.58
7.4.160.0040.01116.41
7.4.150.0090.01516.49
7.4.140.0080.01117.86
7.4.130.0150.00516.30
7.4.120.0040.01816.61
7.4.110.0100.00716.67
7.4.100.0100.00716.35
7.4.90.0140.00316.41
7.4.80.0060.00919.39
7.4.70.0110.00716.62
7.4.60.0070.01316.27
7.4.50.0050.00016.20
7.4.40.0150.00416.24
7.4.30.0120.00616.55
7.4.00.0070.00714.90
7.3.330.0000.00613.33
7.3.320.0030.00313.30
7.3.310.0030.00316.22
7.3.300.0040.00416.40
7.3.290.0070.00916.33
7.3.280.0060.00916.41
7.3.270.0070.01016.50
7.3.260.0150.00616.43
7.3.240.0100.00616.53
7.3.230.0140.00416.50
7.3.210.0120.00616.66
7.3.200.0070.01016.24
7.3.190.0130.01016.59
7.3.180.0060.00916.39
7.3.170.0120.00916.21
7.3.160.0040.01616.50
7.3.120.0090.00614.54
7.3.110.0040.00414.78
7.3.100.0030.01014.77
7.3.90.0000.01414.56
7.3.80.0000.01514.61
7.3.70.0030.00714.59
7.3.60.0000.01214.84
7.3.50.0070.00714.73
7.3.40.0090.00614.67
7.3.30.0120.00314.58
7.3.20.0070.01016.58
7.3.10.0030.00916.51
7.3.00.0060.00616.45
7.2.330.0140.00716.50
7.2.320.0100.00716.68
7.2.310.0030.01816.64
7.2.300.0100.01316.31
7.2.290.0100.01016.79
7.2.240.0060.00615.12
7.2.230.0000.01315.18
7.2.220.0060.00614.95
7.2.210.0080.00815.25
7.2.200.0120.00315.02
7.2.190.0030.01015.14
7.2.180.0060.01014.94
7.2.170.0000.01614.74
7.2.160.0060.01014.99
7.2.150.0070.01116.66
7.2.140.0070.00716.93
7.2.130.0070.00816.73
7.2.120.0080.00816.74
7.2.110.0050.00716.85
7.2.100.0060.00716.83
7.2.90.0070.00716.87
7.2.80.0090.00616.86
7.2.70.0030.01016.83
7.2.60.0060.00716.77
7.2.50.0040.01116.93
7.2.40.0070.00916.79
7.2.30.0080.00616.90
7.2.20.0090.00716.89
7.2.10.0070.00816.92
7.2.00.0080.00717.31
7.1.330.0030.01315.47
7.1.320.0000.01415.94
7.1.310.0080.00815.72
7.1.300.0030.00915.63
7.1.290.0100.00015.76
7.1.280.0080.00415.70
7.1.270.0000.01515.54
7.1.260.0130.00315.91
7.1.250.0040.00915.73
7.1.100.0000.01118.00
7.1.70.0030.00616.88
7.1.60.0070.01719.30
7.1.50.0030.02016.57
7.1.00.0100.02722.48
7.0.200.0030.00616.57
7.0.140.0070.07022.09
7.0.120.0000.07721.95
7.0.60.0030.07719.96
7.0.50.0130.06317.83
7.0.40.0100.05019.96
7.0.30.0270.08720.07
7.0.20.0230.04720.30
7.0.10.0100.08720.24
7.0.00.0130.07020.30
5.6.280.0000.07720.78
5.6.210.0100.07020.61
5.6.200.0000.05018.19
5.6.190.0030.08720.42
5.6.180.0270.05020.52
5.6.170.0270.06020.40
5.6.160.0130.07720.71
5.6.150.0070.08318.15
5.6.140.0130.07718.14
5.6.130.0070.05318.28
5.6.120.0070.04020.90
5.6.110.0100.08321.09
5.6.100.0100.03721.08
5.6.90.0000.04320.98
5.6.80.0170.06320.33
5.5.350.0170.06720.35
5.5.340.0130.07717.99
5.5.330.0100.08320.21
5.5.320.0230.08720.32
5.5.310.0330.05720.34
5.5.300.0030.04018.01
5.5.290.0070.08017.95
5.5.280.0070.08720.68
5.5.270.0130.05720.76
5.5.260.0170.07320.64
5.5.250.0200.06720.68
5.5.240.0030.04020.04
5.4.450.0070.05019.41
5.4.440.0070.07719.48
5.4.430.0100.07719.41
5.4.420.0170.06319.46
5.4.410.0100.07319.44
5.4.400.0030.05319.15
5.4.390.0070.03718.85
5.4.380.0030.04019.01
5.4.370.0170.06719.16
5.4.360.0030.05018.87
5.4.350.0030.05719.28
5.4.340.0130.05018.85
5.4.320.0030.04719.24
5.4.310.0030.08018.99
5.4.300.0100.06019.24
5.4.290.0100.06319.08
5.4.280.0100.03319.14
5.4.270.0070.03719.23
5.4.260.0070.05319.16
5.4.250.0030.04719.18
5.4.240.0070.06718.97
5.4.230.0030.04718.84
5.4.220.0100.04019.24
5.4.210.0100.06719.22
5.4.200.0030.07718.84
5.4.190.0300.05018.84
5.4.180.0130.03719.23
5.4.170.0170.04018.88
5.4.160.0130.07019.00
5.4.150.0070.04019.13
5.4.140.0000.08016.41
5.4.130.0030.07316.42
5.4.120.0100.03316.39
5.4.110.0130.07016.35
5.4.100.0070.04016.33
5.4.90.0100.07016.44
5.4.80.0100.08316.34
5.4.70.0000.04316.37
5.4.60.0030.05016.34
5.4.50.0170.06316.40
5.4.40.0030.08316.52
5.4.30.0070.07716.40
5.4.20.0170.04716.40
5.4.10.0130.06316.31
5.4.00.0100.05715.88
5.3.290.0100.04714.72
5.3.280.0130.07014.75
5.3.270.0000.04714.65
5.3.260.0030.05714.61
5.3.250.0000.04714.66
5.3.240.0070.05014.59
5.3.230.0070.04314.59
5.3.220.0070.06714.58
5.3.210.0030.05014.45
5.3.200.0000.05314.63
5.3.190.0000.05314.70
5.3.180.0070.05314.70
5.3.170.0030.05014.60
5.3.160.0130.06714.61
5.3.150.0130.07014.72
5.3.140.0030.05314.55
5.3.130.0030.08714.55
5.3.120.0030.07714.57
5.3.110.0100.05714.44
5.3.100.0130.07014.09
5.3.90.0030.04714.06
5.3.80.0070.06313.99
5.3.70.0070.06314.02
5.3.60.0130.04714.03
5.3.50.0100.03713.94
5.3.40.0000.06313.94
5.3.30.0100.06313.95
5.3.20.0130.06313.70
5.3.10.0100.06013.69
5.3.00.0070.07013.68
5.2.170.0030.05011.11
5.2.160.0030.06711.20
5.2.150.0030.05711.03
5.2.140.0070.03711.31
5.2.130.0030.04311.18
5.2.120.0070.04011.07
5.2.110.0070.05011.16
5.2.100.0030.06711.25
5.2.90.0030.04711.02
5.2.80.0030.03710.98
5.2.70.0130.05011.00
5.2.60.0070.06011.06
5.2.50.0100.04011.07
5.2.40.0030.06311.00
5.2.30.0070.05711.01
5.2.20.0070.06311.01
5.2.10.0030.03310.92
5.2.00.0030.06310.72
5.1.60.0100.03310.00
5.1.50.0000.03310.00
5.1.40.0070.04710.04
5.1.30.0070.05310.41
5.1.20.0030.05710.49
5.1.10.0030.05010.05
5.1.00.0070.03710.05
5.0.50.0030.0478.61
5.0.40.0030.0438.39
5.0.30.0030.0538.13
5.0.20.0000.0438.17
5.0.10.0100.0408.16
5.0.00.0030.0408.16
4.4.90.0000.0408.10
4.4.80.0100.0238.10
4.4.70.0030.0338.10
4.4.60.0000.0278.10
4.4.50.0070.0178.10
4.4.40.0000.0308.10
4.4.30.0000.0208.10
4.4.20.0070.0308.10
4.4.10.0030.0338.10
4.4.00.0100.0508.10
4.3.110.0100.0308.10
4.3.100.0030.0338.10
4.3.90.0030.0338.10
4.3.80.0070.0438.10
4.3.70.0000.0238.10
4.3.60.0000.0238.10
4.3.50.0000.0238.10
4.3.40.0030.0538.10
4.3.30.0000.0338.10
4.3.20.0030.0308.10
4.3.10.0000.0408.10
4.3.00.0030.0308.10

preferences:
56.97 ms | 400 KiB | 5 Q