3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private static function who() { echo __CLASS__; } public static function test() { static::who(); } } class B extends A { private static function who() { echo __CLASS__; } } B::test(); ?>

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.0060.00818.41
8.3.50.0090.00922.84
8.3.40.0100.00718.92
8.3.30.0140.00019.03
8.3.20.0000.00720.33
8.3.10.0020.00523.66
8.3.00.0080.00019.38
8.2.180.0180.00416.75
8.2.170.0110.00322.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00320.95
8.2.110.0100.00022.29
8.2.100.0130.00017.72
8.2.90.0090.00017.84
8.2.80.0030.00719.27
8.2.70.0050.00317.80
8.2.60.0050.00217.93
8.2.50.0090.00018.10
8.2.40.0000.00720.60
8.2.30.0040.00418.05
8.2.20.0040.00417.58
8.2.10.0000.00718.09
8.2.00.0040.00417.54
8.1.280.0100.01025.92
8.1.270.0080.00023.80
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.73
8.1.230.0120.00023.89
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0000.00722.11
8.1.150.0050.00218.69
8.1.140.0000.00717.23
8.1.130.0000.00717.23
8.1.120.0030.00317.23
8.1.110.0040.00417.21
8.1.100.0040.00417.30
8.1.90.0070.00017.36
8.1.80.0080.00017.36
8.1.70.0030.00517.26
8.1.60.0000.00917.46
8.1.50.0030.00517.39
8.1.40.0040.00417.47
8.1.30.0000.00817.55
8.1.20.0030.00617.52
8.1.10.0000.00817.54
8.1.00.0080.00017.39
8.0.300.0040.00420.09
8.0.290.0040.00416.75
8.0.280.0070.00018.29
8.0.270.0030.00517.20
8.0.260.0070.00016.81
8.0.250.0040.00416.99
8.0.240.0060.00016.97
8.0.230.0000.00716.95
8.0.220.0000.00616.91
8.0.210.0030.00316.89
8.0.200.0030.00316.94
8.0.190.0070.00016.98
8.0.180.0030.00316.91
8.0.170.0040.00416.82
8.0.160.0050.00316.89
8.0.150.0030.00316.76
8.0.140.0030.00416.70
8.0.130.0050.00013.30
8.0.120.0040.00416.84
8.0.110.0030.00516.88
8.0.100.0030.00316.77
8.0.90.0000.00716.71
8.0.80.0070.01016.85
8.0.70.0000.00816.68
8.0.60.0000.00916.95
8.0.50.0000.00816.76
8.0.30.0080.01116.92
8.0.20.0100.00917.40
8.0.10.0040.00416.82
8.0.00.0060.01116.74
7.4.330.0060.00015.00
7.4.320.0040.00416.51
7.4.300.0000.00616.59
7.4.290.0050.00216.59
7.4.280.0060.00316.57
7.4.270.0030.00316.64
7.4.260.0040.00416.45
7.4.250.0030.00516.56
7.4.240.0020.00616.53
7.4.230.0030.00316.57
7.4.220.0060.01116.63
7.4.210.0100.00616.38
7.4.200.0000.00716.35
7.4.160.0140.00316.54
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0050.01116.56
7.4.120.0050.01316.61
7.4.110.0160.00916.50
7.4.100.0090.00916.36
7.4.90.0160.00016.48
7.4.80.0070.01019.39
7.4.70.0060.00916.58
7.4.60.0080.00816.44
7.4.50.0030.00616.46
7.4.40.0110.00716.25
7.4.30.0130.01016.21
7.4.00.0060.00614.89
7.3.330.0030.00313.17
7.3.320.0060.00013.36
7.3.310.0000.00716.25
7.3.300.0000.00716.37
7.3.290.0080.01216.29
7.3.280.0090.00616.39
7.3.270.0070.01117.40
7.3.260.0120.00816.41
7.3.250.0100.00716.32
7.3.240.0100.00716.39
7.3.230.0070.01116.39
7.3.210.0120.00616.57
7.3.200.0060.00919.39
7.3.190.0120.00616.49
7.3.180.0060.01016.35
7.3.170.0090.00616.58
7.3.160.0070.01016.42
7.2.330.0110.00616.52
7.2.320.0120.00416.21
7.2.310.0110.01116.48
7.2.300.0070.01016.32
7.2.290.0060.01316.55
7.2.60.0030.01016.56
7.2.00.0130.00319.36
7.1.200.0000.01315.54
7.1.100.0030.00617.90
7.1.70.0000.00817.02
7.1.60.0090.00919.40
7.1.50.0060.01316.54
7.1.00.0000.08022.35
7.0.200.0040.00416.66
7.0.140.0030.07322.09
7.0.60.0100.06719.92
7.0.50.0070.05017.87
7.0.40.0000.06320.29
7.0.30.0300.04320.27
7.0.20.0170.04020.22
7.0.10.0130.05020.08
7.0.00.0130.04320.22
5.6.280.0130.06021.02
5.6.210.0100.06720.71
5.6.200.0100.07718.25
5.6.190.0000.05020.46
5.6.180.3330.03720.57
5.6.170.0200.05720.47
5.6.160.0070.08320.49
5.6.150.0030.08018.29
5.6.140.0070.05018.15
5.6.130.0130.03018.21
5.6.120.0070.04320.90
5.6.110.0170.07021.00
5.6.100.0100.07320.89
5.6.90.0100.06321.03
5.6.80.0070.03720.41
5.6.70.0300.07320.40
5.5.350.0030.08720.50
5.5.340.0170.06317.95
5.5.330.0030.08720.43
5.5.320.0270.07320.33
5.5.310.0330.06020.30
5.5.300.0030.04018.03
5.5.290.0000.05317.98
5.5.280.0100.08020.89
5.5.270.0100.08320.86
5.5.260.0130.08320.64
5.5.250.0200.07020.69
5.5.240.0130.06320.29
5.4.450.0070.05719.47
5.4.440.0100.05019.39
5.4.430.0300.04019.32
5.4.420.2100.03319.52
5.4.410.0630.04719.18
5.4.400.0200.04319.16
5.4.390.0230.05019.09
5.4.380.0500.06718.56
5.4.370.0430.04718.56
5.4.360.0400.05718.84
5.4.350.0570.05318.59
5.4.340.0330.07018.79
5.4.320.0090.03312.50
5.4.310.0060.03812.50
5.4.300.0050.04512.50
5.4.290.0080.05112.50
5.4.280.0070.03412.39
5.4.270.0040.03812.39
5.4.260.0080.03612.39
5.4.250.0070.03612.40
5.4.240.0080.03712.39
5.4.230.0040.04312.39
5.4.220.0090.04112.39
5.4.210.0060.03612.39
5.4.200.0030.04212.39
5.4.190.0060.04112.38
5.4.180.0070.03812.39
5.4.170.0050.03712.39
5.4.160.0060.03512.39
5.4.150.0050.03612.38
5.4.140.0060.03612.07
5.4.130.0060.03512.06
5.4.120.0070.03412.01
5.4.110.0060.03512.01
5.4.100.0010.03912.01
5.4.90.0040.03812.01
5.4.80.0030.03912.02
5.4.70.0090.03012.00
5.4.60.0040.03612.01
5.4.50.0040.03612.00
5.4.40.0070.03212.00
5.4.30.0040.03711.99
5.4.20.0100.03812.00
5.4.10.0070.03311.99
5.4.00.0040.03811.49
5.3.290.0070.03812.80
5.3.280.0070.03712.71
5.3.270.0100.04412.73
5.3.260.0060.03912.71
5.3.250.0090.03712.72
5.3.240.0090.03412.72
5.3.230.0070.03612.71
5.3.220.0070.04412.68
5.3.210.0070.03712.68
5.3.200.0090.03312.68
5.3.190.0090.04212.68
5.3.180.0080.04012.67
5.3.170.0060.03512.66
5.3.160.0090.03812.67
5.3.150.0090.03712.68
5.3.140.0080.03412.66
5.3.130.0050.04012.66
5.3.120.0090.03512.66
5.3.110.0090.04212.66
5.3.100.0060.04512.13
5.3.90.0090.04112.11
5.3.80.0060.04012.10
5.3.70.0030.03912.10
5.3.60.0090.03712.07
5.3.50.0120.03912.03
5.3.40.0120.03612.03
5.3.30.0070.03511.98
5.3.20.0060.03711.77
5.3.10.0060.03511.73
5.3.00.0060.03611.73
5.2.170.0040.0319.22
5.2.160.0030.0309.22
5.2.150.0040.0319.22
5.2.140.0040.0329.22
5.2.130.0040.0299.18
5.2.120.0050.0299.18
5.2.110.0080.0299.19
5.2.100.0060.0449.18
5.2.90.0070.0409.18
5.2.80.0030.0319.18
5.2.70.0070.0289.18
5.2.60.0110.0269.13
5.2.50.0040.0429.10
5.2.40.0030.0339.08
5.2.30.0060.0349.05
5.2.20.0050.0289.04
5.2.10.0030.0308.95
5.2.00.0050.0288.81
5.1.60.0050.0268.09
5.1.50.0080.0238.09
5.1.40.0030.0268.07
5.1.30.0070.0398.43
5.1.20.0050.0338.44
5.1.10.0050.0258.17
5.1.00.0060.0308.17
5.0.50.0060.0296.64
5.0.40.0030.0226.50
5.0.30.0050.0356.32
5.0.20.0040.0266.28
5.0.10.0020.0206.26
5.0.00.0020.0316.25
4.4.90.0000.0184.78
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0000.0184.76
4.4.50.0050.0134.77
4.4.40.0010.0274.71
4.4.30.0030.0154.76
4.4.20.0020.0174.85
4.4.10.0030.0154.84
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0020.0164.66
4.3.90.0020.0154.63
4.3.80.0040.0244.59
4.3.70.0020.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0144.63
4.3.40.0050.0234.54
4.3.30.0010.0173.30
4.3.20.0020.0153.28
4.3.10.0000.0173.23
4.3.00.0030.01715.63

preferences:
44.74 ms | 401 KiB | 5 Q