3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Abs { const PREFIX = 'Abstract'; } class Concrete extends Abs { public function getPrefix() { echo "self: " . self::PREFIX . "\n"; echo "static: " . static::PREFIX . "\n"; } } $concrete = new Concrete(); $concrete->getPrefix();

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.0070.00718.28
8.3.50.0100.00821.93
8.3.40.0000.01518.79
8.3.30.0170.00019.01
8.3.20.0000.00820.16
8.3.10.0080.00020.45
8.3.00.0080.00019.25
8.2.180.0070.00718.16
8.2.170.0080.00622.96
8.2.160.0070.00719.07
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.22
8.2.110.0030.00722.25
8.2.100.0070.00417.72
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0120.00017.93
8.2.50.0060.00318.07
8.2.40.0040.00418.20
8.2.30.0000.00819.21
8.2.20.0000.00817.58
8.2.10.0000.00818.16
8.2.00.0000.00817.68
8.1.280.0100.01325.92
8.1.270.0050.00323.92
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00623.73
8.1.230.0100.00319.00
8.1.220.0040.00417.75
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0050.00318.64
8.1.160.0070.00021.91
8.1.150.0040.00418.85
8.1.140.0080.00017.48
8.1.130.0000.00717.73
8.1.120.0020.00517.35
8.1.110.0040.00417.52
8.1.100.0000.00717.49
8.1.90.0000.00717.33
8.1.80.0000.00717.34
8.1.70.0000.00717.45
8.1.60.0030.00517.43
8.1.50.0040.00417.53
8.1.40.0050.00317.51
8.1.30.0040.00417.64
8.1.20.0040.00417.60
8.1.10.0080.00017.54
8.1.00.0040.00417.52
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00618.30
8.0.270.0070.00417.23
8.0.260.0000.00617.23
8.0.250.0060.00016.83
8.0.240.0050.00216.90
8.0.230.0050.00316.85
8.0.220.0030.00316.74
8.0.210.0080.00016.75
8.0.200.0040.00416.93
8.0.190.0000.00916.96
8.0.180.0070.00016.84
8.0.170.0000.00816.91
8.0.160.0040.00416.91
8.0.150.0070.00016.64
8.0.140.0070.00016.92
8.0.130.0030.00313.24
8.0.120.0040.00416.84
8.0.110.0000.00716.82
8.0.100.0070.00016.70
8.0.90.0040.00416.82
8.0.80.0000.01516.87
8.0.70.0040.00416.95
8.0.60.0000.00817.00
8.0.50.0040.00416.89
8.0.30.0160.00316.99
8.0.20.0130.00617.40
8.0.10.0050.00216.91
8.0.00.0130.00516.69
7.4.330.0030.00315.01
7.4.320.0030.00316.56
7.4.300.0070.00016.57
7.4.290.0000.00716.48
7.4.280.0040.00416.54
7.4.270.0030.00316.51
7.4.260.0030.00516.43
7.4.250.0020.00516.36
7.4.240.0030.00316.57
7.4.230.0030.00316.57
7.4.220.0100.00716.45
7.4.210.0040.01116.62
7.4.200.0060.00316.70
7.4.160.0000.01616.57
7.4.150.0170.00717.40
7.4.140.0100.00717.86
7.4.130.0130.00716.54
7.4.120.0130.00816.53
7.4.110.0190.00016.56
7.4.100.0070.01716.35
7.4.90.0120.00616.41
7.4.80.0110.00819.04
7.4.70.0130.00316.33
7.4.60.0100.00716.40
7.4.50.0080.00016.45
7.4.40.0070.01016.41
7.4.30.0060.01116.60
7.4.00.0100.00914.94
7.3.330.0050.00013.32
7.3.320.0030.00313.17
7.3.310.0070.00016.20
7.3.300.0000.00716.26
7.3.290.0140.00016.32
7.3.280.0080.01216.37
7.3.270.0070.01117.40
7.3.260.0170.00016.29
7.3.250.0090.00916.41
7.3.240.0100.00716.21
7.3.230.0110.00616.50
7.3.210.0070.01016.24
7.3.200.0120.00619.39
7.3.190.0180.00016.34
7.3.180.0030.01316.38
7.3.170.0060.01216.44
7.3.160.0070.01416.59
7.3.120.0050.01314.84
7.3.110.0080.00914.68
7.3.100.0050.00914.57
7.3.90.0050.00814.75
7.3.80.0060.00614.96
7.3.70.0060.00614.69
7.3.60.0080.00414.81
7.3.50.0050.00614.79
7.3.40.0070.00514.73
7.3.30.0060.00514.69
7.3.20.0060.00716.64
7.3.10.0050.00916.71
7.3.00.0080.00516.58
7.2.330.0100.00616.59
7.2.320.0110.00716.59
7.2.310.0040.01116.85
7.2.300.0160.00616.35
7.2.290.0060.01316.53
7.2.250.0100.00815.13
7.2.240.0070.01015.02
7.2.230.0060.01015.06
7.2.220.0040.01015.01
7.2.210.0060.01014.93
7.2.200.0050.00615.02
7.2.190.0060.00915.02
7.2.180.0050.00914.87
7.2.170.0050.00815.13
7.2.160.0060.00914.88
7.2.150.0070.01116.76
7.2.140.0030.01317.05
7.2.130.0040.01116.75
7.2.120.0040.00917.07
7.2.110.0040.00716.80
7.2.100.0070.00516.97
7.2.90.0020.01517.03
7.2.80.0030.01116.87
7.2.70.0070.00517.04
7.2.60.0050.00816.98
7.2.50.0060.00916.95
7.2.40.0050.00816.89
7.2.30.0100.00616.97
7.2.20.0040.00916.98
7.2.10.0040.01017.02
7.2.00.0060.00817.81
7.1.330.0070.00815.76
7.1.320.0050.00615.79
7.1.310.0060.01115.66
7.1.300.0060.00515.71
7.1.290.0040.00915.62
7.1.280.0070.00715.68
7.1.270.0040.00815.70
7.1.260.0060.00915.66
7.1.250.0060.00715.82
7.1.200.0000.01515.46
7.1.100.0090.00318.05
7.1.70.0030.00617.16
7.1.60.0060.01219.32
7.1.50.0140.01116.54
7.1.00.0030.07722.54
7.0.200.0060.00316.74
7.0.140.0030.07322.00
7.0.60.0030.04019.79
7.0.50.0100.08317.89
7.0.40.0070.07720.41
7.0.30.0200.05020.23
7.0.20.0200.04720.07
7.0.10.0030.04720.23
7.0.00.0130.05320.05
5.6.280.0000.07321.12
5.6.210.0100.08320.71
5.6.200.0070.08318.16
5.6.190.0100.07720.55
5.6.180.0330.04020.47
5.6.170.0230.06020.43
5.6.160.0330.03320.43
5.6.150.0070.08018.23
5.6.140.0070.08018.18
5.6.130.0030.04018.18
5.6.120.0200.06721.10
5.6.110.0130.08720.99
5.6.100.0100.03321.02
5.6.90.0100.06320.98
5.6.80.0100.06720.36
5.5.350.0170.06020.34
5.5.340.0170.07317.95
5.5.330.0070.05720.13
5.5.320.0230.04320.27
5.5.310.0170.04320.26
5.5.300.0000.04717.98
5.5.290.0030.08318.06
5.5.280.0030.09720.96
5.5.270.0100.05320.78
5.5.260.0030.06720.87
5.5.250.0030.04320.59
5.5.240.0170.08020.36
5.4.450.0100.04319.27
5.4.440.0970.07019.20
5.4.430.0670.06319.30
5.4.420.0630.00019.55
5.4.410.0630.00019.31
5.4.400.0630.00019.16
5.4.390.0630.00019.16
5.4.380.0530.05718.76
5.4.370.0500.05718.52
5.4.360.0470.06718.53
5.4.350.0330.05718.57
5.4.340.0600.06018.63
5.4.320.0110.04612.50
5.4.310.0040.03912.50
5.4.300.0070.03412.50
5.4.290.0030.04012.49
5.4.280.0050.03612.39
5.4.270.0050.03712.39
5.4.260.0050.03812.39
5.4.250.0040.03912.39
5.4.240.0050.03712.39
5.4.230.0080.03512.39
5.4.220.0070.03512.39
5.4.210.0070.03512.39
5.4.200.0050.04612.38
5.4.190.0070.03412.38
5.4.180.0070.04312.38
5.4.170.0040.03712.39
5.4.160.0060.03612.39
5.4.150.0060.04212.38
5.4.140.0090.03612.07
5.4.130.0070.03512.06
5.4.120.0070.04212.02
5.4.110.0050.03612.01
5.4.100.0040.03612.01
5.4.90.0050.03712.01
5.4.80.0040.03812.01
5.4.70.0060.03412.01
5.4.60.0060.03312.00
5.4.50.0060.03512.01
5.4.40.0040.03512.00
5.4.30.0050.03611.99
5.4.20.0050.03511.99
5.4.10.0060.03411.99
5.4.00.0060.03611.48
5.3.290.0060.04312.80
5.3.280.0050.03912.71
5.3.270.0070.04712.72
5.3.260.0080.03912.72
5.3.250.0090.04412.72
5.3.240.0050.03712.72
5.3.230.0080.04512.70
5.3.220.0060.03712.68
5.3.210.0050.04012.68
5.3.200.0050.03812.68
5.3.190.0080.03712.68
5.3.180.0070.05112.68
5.3.170.0090.03312.66
5.3.160.0060.03612.67
5.3.150.0030.04012.67
5.3.140.0030.04112.66
5.3.130.0060.03912.66
5.3.120.0040.05112.66
5.3.110.0070.03712.66
5.3.100.0030.04012.12
5.3.90.0030.03912.10
5.3.80.0050.03712.09
5.3.70.0050.03612.09
5.3.60.0060.03612.08
5.3.50.0060.03612.02
5.3.40.0070.03512.02
5.3.30.0060.03311.98
5.3.20.0050.03511.75
5.3.10.0080.03211.73
5.3.00.0020.03911.71
5.2.170.0020.0329.22
5.2.160.0060.0279.22
5.2.150.0080.0299.22
5.2.140.0030.0329.21
5.2.130.0080.0249.18
5.2.120.0070.0289.18
5.2.110.0110.0279.18
5.2.100.0040.0339.18
5.2.90.0060.0319.18
5.2.80.0050.0299.18
5.2.70.0070.0329.18
5.2.60.0060.0329.13
5.2.50.0030.0349.10
5.2.40.0060.0279.07
5.2.30.0070.0339.05
5.2.20.0030.0319.04
5.2.10.0030.0298.95
5.2.00.0050.0278.81
5.1.60.0010.0278.09
5.1.50.0040.0258.09
5.1.40.0030.0258.07
5.1.30.0050.0248.42
5.1.20.0070.0248.44
5.1.10.0060.0248.16
5.1.00.0030.0308.16
5.0.50.0040.0236.65
5.0.40.0030.0216.50
5.0.30.0040.0366.31
5.0.20.0030.0216.28
5.0.10.0030.0276.26
5.0.00.0040.0316.25
4.4.90.0050.0194.77
4.4.80.0010.0194.75
4.4.70.0030.0194.75
4.4.60.0030.0254.75
4.4.50.0020.0164.77
4.4.40.0020.0294.71
4.4.30.0020.0174.75
4.4.20.0020.0194.84
4.4.10.0020.0154.85
4.4.00.0040.0284.75
4.3.110.0020.0204.67
4.3.100.0030.0194.66
4.3.90.0030.0194.64
4.3.80.0020.0254.58
4.3.70.0040.0134.63
4.3.60.0070.0114.62
4.3.50.0050.0174.63
4.3.40.0020.0244.54
4.3.30.0020.0163.29
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0000.01715.60

preferences:
59.03 ms | 401 KiB | 5 Q