3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { protected static $what; static function change_what($where) { static::$what = $where; } static function show() { echo static::$what . PHP_EOL; } } class B extends A { static function change_what($where) { static::change_what($where); } } class C extends A { static function change_what($where) { static::change_what($where); } } B::change_what("b"); C::change_what("c"); B::show(); C::show();

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.110.0460.00772.41
8.3.100.0330.01073.90
8.3.90.0360.00772.27
8.3.80.0370.01072.99
8.3.70.0460.03373.34
8.3.60.0700.02072.38
8.3.50.0760.02573.00
8.3.40.0230.02044.71
8.3.30.0210.02745.13
8.3.20.0130.01046.35
8.3.10.0200.00347.85
8.3.00.0210.00446.23
8.2.230.0280.01472.25
8.2.220.0340.01072.38
8.2.210.0520.01372.23
8.2.200.0380.01772.38
8.2.190.0760.01372.25
8.2.180.0830.02072.50
8.2.170.0440.01744.69
8.2.160.0490.01045.29
8.2.150.0190.00644.77
8.2.140.0170.00744.96
8.2.130.0100.01347.46
8.2.120.0160.00944.86
8.2.110.0180.00646.46
8.2.100.0290.00443.63
8.2.90.0070.01545.14
8.2.80.0100.01043.50
8.2.70.0200.00743.38
8.2.60.0180.00643.91
8.2.50.0170.00743.50
8.2.40.0140.00744.07
8.2.30.0190.00943.73
8.2.20.0170.00343.54
8.2.10.0140.00743.86
8.2.00.0200.00443.49
8.1.290.0300.02671.89
8.1.280.0710.01773.02
8.1.270.0230.00345.14
8.1.260.0180.00746.47
8.1.250.0180.00748.14
8.1.240.0070.01749.29
8.1.230.0220.01144.91
8.1.220.0100.01343.43
8.1.210.0110.01143.41
8.1.200.0160.00643.13
8.1.190.0150.00643.10
8.1.180.0100.01343.29
8.1.170.0140.00746.42
8.1.160.0070.01448.01
8.1.150.0210.00444.68
8.1.140.0100.01343.38
8.1.130.0170.00343.85
8.1.120.0170.00743.39
8.1.110.0100.01043.38
8.1.100.0100.01043.38
8.1.90.0070.01343.41
8.1.80.0060.01343.38
8.1.70.0180.00743.28
8.1.60.0140.00743.63
8.1.50.0130.01043.57
8.1.40.0190.00443.52
8.1.30.0180.00643.49
8.1.20.0130.01343.21
8.1.10.0370.00773.16
8.1.00.0360.01072.95
8.0.300.0280.00772.97
8.0.290.0260.01772.50
8.0.280.0290.00774.04
8.0.270.0270.01072.80
8.0.260.0270.01472.66
8.0.250.0130.02072.43
8.0.240.0270.01072.41
8.0.230.0280.01472.44
8.0.220.0200.01772.42
8.0.210.0130.02372.40
8.0.200.0310.00972.54
8.0.190.0260.01372.50
8.0.180.0480.01072.32
8.0.170.0200.02472.36
8.0.160.0260.01372.40
8.0.150.0310.00672.32
8.0.140.0300.01072.41
8.0.130.0560.021121.79
8.0.120.0260.01072.38
8.0.110.0250.01172.40
8.0.100.0280.00772.39
8.0.90.0270.00772.37
8.0.80.0530.04372.19
8.0.70.0230.01072.17
8.0.60.0250.01072.34
8.0.50.0030.03072.34
8.0.30.0650.03872.45
8.0.20.1120.06372.51
8.0.10.0200.01372.43
8.0.00.0630.02872.33
7.4.330.0210.01072.96
7.4.320.0100.02471.96
7.4.300.0290.01372.16
7.4.290.0420.01372.12
7.4.280.0460.01672.15
7.4.270.0240.01472.11
7.4.260.0320.01071.98
7.4.250.0150.02571.92
7.4.240.0140.02572.04
7.4.230.0140.02072.19
7.4.220.0450.04572.11
7.4.210.0340.04071.98
7.4.200.0170.02072.12
7.4.160.0480.03571.92
7.4.150.0530.03971.92
7.4.140.0970.07371.90
7.4.130.0530.03772.01
7.4.120.0580.03171.82
7.4.110.0500.04372.09
7.4.100.0480.03971.98
7.4.90.0680.02072.03
7.4.80.0630.04971.98
7.4.70.0630.02372.00
7.4.60.0480.03572.08
7.4.50.0170.02371.79
7.4.40.0550.04872.04
7.4.30.0680.03772.18
7.4.00.0340.02170.28
7.3.330.0700.033121.72
7.3.320.0460.030121.54
7.3.310.0200.01771.71
7.3.300.0250.00771.69
7.3.290.0470.03771.76
7.3.280.0550.03371.74
7.3.270.0500.03771.96
7.3.260.0830.04371.99
7.3.250.0590.03971.80
7.3.240.0620.03171.72
7.3.230.0570.04471.84
7.3.210.0520.03671.98
7.3.200.0500.04071.69
7.3.190.0700.05371.90
7.3.180.0640.02272.09
7.3.170.0770.03771.98
7.3.160.0710.03471.83
7.3.00.0740.02277.46
7.2.330.0600.02672.22
7.2.320.0570.02771.93
7.2.310.0610.05271.79
7.2.300.0470.03671.94
7.2.290.0750.03471.84
7.2.130.0740.02078.68
7.2.120.0610.01778.54
7.2.110.0840.02378.68
7.2.100.0510.01678.61
7.2.90.0460.02078.72
7.2.80.0590.02378.62
7.2.70.0800.00677.07
7.2.60.0890.01778.68
7.2.50.0570.03478.37
7.2.40.1030.03378.78
7.2.30.0880.02878.59
7.2.20.0860.01878.65
7.2.10.0590.02178.28
7.2.00.0880.01878.85
7.1.250.0450.03676.52
7.1.240.0740.01677.41
7.1.230.0380.03377.30
7.1.220.0260.02977.81
7.1.210.0400.03377.76
7.1.200.1030.01877.68
7.1.190.0730.04376.25
7.1.180.0560.03077.47
7.1.170.0710.04577.72
7.1.160.0810.02977.74
7.1.150.0960.01677.74
7.1.140.1110.01677.75
7.1.130.0340.03476.70
7.1.120.0970.02777.21
7.1.110.0510.05177.53
7.1.100.0960.02477.54
7.1.90.0760.03677.63
7.1.80.1080.03877.66
7.1.70.0800.02578.45
7.1.60.0650.03378.44
7.1.50.1020.04178.29
7.1.40.0400.03877.71
7.1.30.1140.00977.38
7.1.20.0500.03477.80
7.1.10.0820.03377.45
7.1.00.0470.06680.85
7.0.330.0460.03077.29
7.0.320.0690.02077.14
7.0.310.0740.02575.91
7.0.300.0840.03877.23
7.0.290.1060.02777.45
7.0.280.1260.02677.32
7.0.270.0790.03577.45
7.0.260.0540.02477.38
7.0.250.0870.02877.40
7.0.240.0880.04377.17
7.0.230.0880.03477.55
7.0.220.0690.03277.57
7.0.210.0810.03277.35
7.0.200.1710.03373.96
7.0.190.0750.05477.45
7.0.180.0810.01877.48
7.0.170.0430.03477.49
7.0.160.0940.03777.44
7.0.150.1030.02477.57
7.0.140.0510.04080.73
7.0.130.0440.03077.57
7.0.120.0420.03577.28
7.0.110.1120.03477.22
7.0.100.0880.03377.23
7.0.90.0920.03577.29
7.0.80.1000.03277.38
7.0.70.1320.02777.05
7.0.60.0860.06976.56
7.0.50.0700.04375.33
7.0.40.0200.06816.79
7.0.30.0250.04616.70
7.0.20.0190.04616.69
7.0.10.0160.06516.76
7.0.00.0250.06016.90
5.6.380.0230.05379.01
5.6.370.0430.03378.71
5.6.360.0400.03079.08
5.6.350.0320.05079.13
5.6.340.0320.04878.75
5.6.330.0480.03878.89
5.6.320.0320.05478.95
5.6.310.0290.05679.14
5.6.300.0420.05178.66
5.6.290.0250.06079.09
5.6.280.0270.07582.23
5.6.270.0550.02679.09
5.6.260.0490.03979.18
5.6.250.0390.04978.85
5.6.240.0450.04278.95
5.6.230.0370.04478.94
5.6.220.0480.03678.67
5.6.210.0310.05382.05
5.6.200.0400.04780.83
5.6.190.0260.05882.04
5.6.180.0480.06881.99
5.6.170.0290.06581.82
5.6.160.0270.05281.84
5.6.150.0360.05280.90
5.6.140.0590.05280.94
5.6.130.0310.04880.78
5.6.120.0400.05482.29
5.6.110.0360.07782.24
5.6.100.0340.05582.31
5.6.90.0300.05982.30
5.6.80.0500.06581.88
5.6.70.0460.02979.14
5.6.60.0440.04478.63
5.6.50.0400.04478.68
5.6.40.0380.03978.87
5.6.30.0430.03978.66
5.6.20.0430.04378.90
5.6.10.0440.04778.80
5.6.00.0180.06378.87
5.5.380.0330.04975.48
5.5.370.0240.05875.65
5.5.360.0460.03275.61
5.5.350.0430.06380.37
5.5.340.0340.07479.22
5.5.330.0330.04480.26
5.5.320.0310.05580.20
5.5.310.0360.07180.23
5.5.300.0280.05079.21
5.5.290.0320.07179.28
5.5.280.0410.05580.63
5.5.270.0330.07880.71
5.5.260.0390.07280.53
5.5.250.0380.07180.55
5.5.240.0320.07080.29
5.5.230.0440.02475.56
5.5.220.0460.03375.77
5.5.210.0360.03775.78
5.5.200.0280.04975.54
5.5.190.0380.04175.52
5.5.180.0280.04975.54
5.5.170.0460.03075.72
5.5.160.0300.04675.52
5.5.150.0440.03475.78
5.5.140.0400.03775.59
5.5.130.0380.04575.41
5.5.120.0350.05375.69
5.5.110.0300.04775.62
5.5.100.0320.04675.72
5.5.90.0230.05775.70
5.5.80.0400.04775.47
5.5.70.0440.04375.81
5.5.60.0450.03575.25
5.5.50.0460.04675.57
5.5.40.0360.04375.61
5.5.30.0300.04775.73
5.5.20.0450.03275.46
5.5.10.0420.03275.84
5.5.00.0320.04075.40
5.4.450.0660.06479.67
5.4.440.1040.07979.81
5.4.430.0530.05679.97
5.4.420.0450.05979.72
5.4.410.0470.05879.71
5.4.400.0460.06979.39
5.4.390.0450.06979.42
5.4.380.0500.06579.65
5.4.370.0590.05879.40
5.4.360.0510.05079.56
5.4.350.0450.07179.60
5.4.340.0480.06779.40
5.4.330.0280.05675.25
5.4.320.0530.05679.29
5.4.310.0510.06879.31
5.4.300.0530.06079.36
5.4.290.0610.06479.39
5.4.280.0490.06179.58
5.4.270.0610.07579.57
5.4.260.0320.07379.55
5.4.250.0370.07279.37
5.4.240.0370.06979.48
5.4.230.0540.07279.42
5.4.220.0590.07179.63
5.4.210.0640.07479.45
5.4.200.0560.07978.47
5.4.190.0460.06079.36
5.4.180.0560.08179.51
5.4.170.0500.08479.38
5.4.160.0610.06679.55
5.4.150.0440.06179.46
5.4.140.0550.05078.14
5.4.130.0460.05578.17
5.4.120.0480.06578.24
5.4.110.0420.06278.23
5.4.100.0470.08178.32
5.4.90.0600.06278.16
5.4.80.0550.05878.26
5.4.70.0540.05578.24
5.4.60.0510.05178.28
5.4.50.0560.05978.18
5.4.40.0450.06078.15
5.4.30.0480.05578.30
5.4.20.0420.06978.29
5.4.10.0730.06878.15
5.4.00.0470.05978.08
5.3.290.0470.08776.42
5.3.280.0440.08576.23
5.3.270.0470.07676.28
5.3.260.0510.07676.36
5.3.250.0460.08376.37
5.3.240.0500.07876.38
5.3.230.0450.08476.44
5.3.220.0430.07676.25
5.3.210.0520.07676.27
5.3.200.0510.07776.29
5.3.190.0400.09076.34
5.3.180.0490.06976.35
5.3.170.0410.08576.25
5.3.160.0400.08276.40
5.3.150.0460.07076.25
5.3.140.0470.07176.31
5.3.130.0470.08476.31
5.3.120.0490.07976.30
5.3.110.0520.07176.32
5.3.100.0370.08276.00
5.3.90.0470.07475.86
5.3.80.0460.07176.00
5.3.70.0510.08175.80
5.3.60.0400.09375.98
5.3.50.0350.08975.87
5.3.40.0380.08275.92
5.3.30.0490.07475.87
5.3.20.0450.07375.79
5.3.10.0450.07975.62
5.3.00.0320.08675.77
5.2.170.0090.02411.06
5.2.160.0100.02311.05
5.2.150.0060.02411.04
5.2.140.0040.02711.03
5.2.130.0120.01911.04
5.2.120.0080.02311.00
5.2.110.0100.02211.03
5.2.100.0120.01811.03
5.2.90.0080.02511.00
5.2.80.0080.02511.05
5.2.70.0110.01811.01
5.2.60.0110.02111.04
5.2.50.0060.02611.02
5.2.40.0060.02511.01
5.2.30.0070.02610.97
5.2.20.0050.02510.98
5.2.10.0060.02310.97
5.2.00.0070.02610.81
5.1.60.0060.01710.44
5.1.50.0040.02210.45
5.1.40.0040.02210.45
5.1.30.0100.01810.63
5.1.20.0060.02010.68
5.1.10.0070.02010.55
5.1.00.0100.01610.58
5.0.50.0030.0199.76
5.0.40.0080.0139.76
5.0.30.0040.0279.63
5.0.20.0080.0139.59
5.0.10.0040.0179.55
5.0.00.0030.0259.55
4.4.90.0060.0118.39
4.4.80.0020.0158.36
4.4.70.0060.0118.40
4.4.60.0060.0108.38
4.4.50.0060.0118.39
4.4.40.0080.0168.42
4.4.30.0060.0128.38
4.4.20.0060.0128.43
4.4.10.0030.0148.43
4.4.00.0050.0178.37
4.3.110.0050.0118.33
4.3.100.0040.0148.37
4.3.90.0050.0108.37
4.3.80.0050.0168.36
4.3.70.0060.0108.41
4.3.60.0020.0158.36
4.3.50.0030.0138.36
4.3.40.0050.0188.34
4.3.30.0020.0128.28
4.3.20.0040.0108.28
4.3.10.0040.0138.28
4.3.00.0010.0139.01

preferences:
64.8 ms | 403 KiB | 5 Q