3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { const FOO = 'lol'; } class bar extends foo { const FOO = 'mdr';} echo foo::FOO;

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.00018.18
8.3.50.0170.00421.04
8.3.40.0180.00318.60
8.3.30.0070.00719.04
8.3.20.0040.00420.11
8.3.10.0080.00020.48
8.3.00.0050.00519.10
8.2.180.0000.01618.29
8.2.170.0110.00422.96
8.2.160.0130.00320.44
8.2.150.0050.00524.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0040.00422.22
8.2.110.0030.00620.35
8.2.100.0080.00318.09
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00719.24
8.2.20.0030.00617.43
8.2.10.0000.00717.80
8.2.00.0040.00417.42
8.1.280.0070.01025.92
8.1.270.0040.00423.84
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.06
8.1.230.0120.00019.06
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0080.00017.22
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0070.00418.52
8.1.160.0030.00321.85
8.1.150.0040.00418.63
8.1.140.0070.00017.32
8.1.130.0050.00217.77
8.1.120.0050.00217.40
8.1.110.0050.00317.38
8.1.100.0030.00517.36
8.1.90.0000.00717.24
8.1.80.0040.00417.26
8.1.70.0040.00417.29
8.1.60.0090.00017.35
8.1.50.0050.00317.28
8.1.40.0030.00517.39
8.1.30.0040.00417.35
8.1.20.0030.00517.59
8.1.10.0000.00717.44
8.1.00.0050.00217.40
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.41
8.0.270.0000.00717.10
8.0.260.0030.00317.18
8.0.250.0000.00716.89
8.0.240.0080.00016.82
8.0.230.0000.00616.85
8.0.220.0070.00016.77
8.0.210.0080.00016.63
8.0.200.0030.00616.78
8.0.190.0000.00716.74
8.0.180.0000.00816.69
8.0.170.0000.00816.68
8.0.160.0040.00416.82
8.0.150.0050.00316.60
8.0.140.0000.01016.56
8.0.130.0050.00013.20
8.0.120.0020.00516.71
8.0.110.0000.00716.68
8.0.100.0000.00816.74
8.0.90.0000.00816.59
8.0.80.0080.00716.81
8.0.70.0030.00516.63
8.0.60.0040.00416.78
8.0.50.0030.00316.67
8.0.30.0120.00717.02
8.0.20.0140.00717.40
8.0.10.0040.00416.86
8.0.00.0070.01116.57
7.4.330.0020.00215.00
7.4.320.0000.00716.37
7.4.300.0030.00316.47
7.4.290.0030.00316.45
7.4.280.0040.00416.30
7.4.270.0040.00316.38
7.4.260.0030.00316.44
7.4.250.0030.00516.33
7.4.240.0000.00716.36
7.4.230.0040.00416.30
7.4.220.0150.00416.50
7.4.210.0030.01016.49
7.4.200.0040.00416.36
7.4.160.0060.00916.28
7.4.150.0090.01517.40
7.4.140.0090.01117.86
7.4.130.0080.01116.46
7.4.120.0110.00816.46
7.4.110.0140.00316.31
7.4.100.0140.00316.31
7.4.90.0060.01216.30
7.4.80.0060.01219.37
7.4.70.0100.00716.33
7.4.60.0060.00916.30
7.4.50.0080.00016.23
7.4.40.0070.01416.35
7.4.30.0080.00816.38
7.4.00.0030.01214.98
7.3.330.0060.00013.00
7.3.320.0000.00613.13
7.3.310.0000.00616.21
7.3.300.0070.00016.03
7.3.290.0100.01016.08
7.3.280.0090.00816.16
7.3.270.0110.00817.40
7.3.260.0120.01216.10
7.3.250.0120.00616.25
7.3.240.0100.00616.39
7.3.230.0070.01016.39
7.3.210.0100.00616.32
7.3.200.0080.00819.39
7.3.190.0100.00616.29
7.3.180.0070.01016.52
7.3.170.0030.01216.27
7.3.160.0090.00916.48
7.3.10.0130.00516.25
7.3.00.0160.01116.11
7.2.330.0070.01016.46
7.2.320.0140.00416.49
7.2.310.0130.00316.50
7.2.300.0130.00916.46
7.2.290.0030.01416.39
7.2.130.0180.00416.14
7.2.120.0100.01316.55
7.2.110.0140.00916.17
7.2.100.0150.00816.34
7.2.90.0140.01116.26
7.2.80.0190.00516.52
7.2.70.0090.00716.34
7.2.60.0130.00816.19
7.2.50.0120.01316.46
7.2.40.0110.01016.50
7.2.30.0140.00716.51
7.2.20.0100.00616.46
7.2.10.0110.00916.25
7.2.00.0090.01017.37
7.1.250.0170.00915.32
7.1.200.0040.00715.64
7.1.100.0080.00318.06
7.1.70.0000.00716.84
7.1.60.0090.01519.32
7.1.50.0130.01016.82
7.1.00.0030.07722.44
7.0.200.0030.00316.80
7.0.140.0030.07321.95
7.0.60.0070.03720.02
7.0.50.0070.07717.82
7.0.40.0070.07020.40
7.0.30.0570.06020.35
7.0.20.0200.03720.30
7.0.10.0100.08320.07
7.0.00.0130.08020.07
5.6.280.0030.07320.85
5.6.210.0070.07020.64
5.6.200.0070.03718.14
5.6.190.0070.04020.61
5.6.180.0400.06020.63
5.6.170.0370.06320.58
5.6.160.0030.04720.44
5.6.150.0070.04018.27
5.6.140.0070.07718.15
5.6.130.0030.09018.15
5.6.120.0070.07720.76
5.6.110.0070.04020.98
5.6.100.0200.07321.07
5.6.90.0000.08321.13
5.6.80.0000.04020.40
5.5.350.0170.08720.32
5.5.340.0030.04318.09
5.5.330.0000.09020.21
5.5.320.0470.03020.27
5.5.310.0200.05020.32
5.5.300.0030.08318.04
5.5.290.0030.08317.95
5.5.280.0000.05020.72
5.5.270.0030.08320.86
5.5.260.0070.08720.84
5.5.250.0000.08720.69
5.5.240.0230.07020.26
5.4.450.0730.04019.17
5.4.440.1000.05719.20
5.4.430.1030.05719.49
5.4.420.0700.00019.47
5.4.410.0670.00019.11
5.4.400.0830.00018.92
5.4.390.0800.00019.13
5.4.380.0400.06718.77
5.4.370.0370.05018.78
5.4.360.0330.05718.71
5.4.350.0470.06018.75
5.4.340.0230.07018.73
5.4.320.0060.04812.50
5.4.310.0040.04012.49
5.4.300.0040.03812.49
5.4.290.0050.03912.49
5.4.280.0050.03612.38
5.4.270.0100.03312.39
5.4.260.0060.03712.39
5.4.250.0080.03612.39
5.4.240.0050.03612.39
5.4.230.0060.03612.38
5.4.220.0040.03712.38
5.4.210.0070.04212.38
5.4.200.0050.04612.38
5.4.190.0070.03912.37
5.4.180.0080.03712.38
5.4.170.0080.04412.39
5.4.160.0060.04112.38
5.4.150.0070.03912.38
5.4.140.0040.03712.07
5.4.130.0040.05012.05
5.4.120.0060.03312.00
5.4.110.0060.04012.00
5.4.100.0060.04012.00
5.4.90.0050.03612.00
5.4.80.0090.04012.00
5.4.70.0060.03312.00
5.4.60.0070.03212.00
5.4.50.0070.03312.00
5.4.40.0090.03111.99
5.4.30.0040.03611.98
5.4.20.0030.03711.98
5.4.10.0080.03111.98
5.4.00.0030.03911.47
5.3.290.0050.04012.80
5.3.280.0040.03912.71
5.3.270.0060.03812.72
5.3.260.0050.04012.71
5.3.250.0100.03312.72
5.3.240.0060.03512.72
5.3.230.0070.03412.71
5.3.220.0100.03912.68
5.3.210.0050.04012.68
5.3.200.0060.03612.68
5.3.190.0060.03612.68
5.3.180.0050.03812.67
5.3.170.0070.03512.67
5.3.160.0060.03612.67
5.3.150.0040.03812.68
5.3.140.0040.03712.66
5.3.130.0060.03712.66
5.3.120.0060.05112.65
5.3.110.0080.03712.65
5.3.100.0040.03712.12
5.3.90.0060.04412.09
5.3.80.0090.03812.08
5.3.70.0020.04112.08
5.3.60.0040.03812.07
5.3.50.0060.03612.02
5.3.40.0030.03912.01
5.3.30.0100.04511.97
5.3.20.0070.03411.75
5.3.10.0070.03611.72
5.3.00.0060.03511.71
5.2.170.0040.0359.21
5.2.160.0070.0279.21
5.2.150.0030.0329.21
5.2.140.0050.0299.21
5.2.130.0030.0319.16
5.2.120.0040.0329.16
5.2.110.0060.0279.17
5.2.100.0040.0289.17
5.2.90.0030.0309.17
5.2.80.0040.0309.16
5.2.70.0060.0289.16
5.2.60.0050.0299.12
5.2.50.0050.0299.09
5.2.40.0030.0299.06
5.2.30.0060.0279.04
5.2.20.0110.0219.03
5.2.10.0030.0308.93
5.2.00.0090.0278.79
5.1.60.0060.0218.08
5.1.50.0040.0248.07
5.1.40.0050.0228.06
5.1.30.0050.0248.41
5.1.20.0040.0258.43
5.1.10.0010.0298.15
5.1.00.0050.0368.15
5.0.50.0040.0226.63
5.0.40.0050.0186.49
5.0.30.0030.0316.30
5.0.20.0040.0186.27
5.0.10.0060.0176.25
5.0.00.0060.0276.24
4.4.90.0010.0164.78
4.4.80.0040.0134.76
4.4.70.0030.0144.76
4.4.60.0050.0234.76
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0010.0264.76
4.3.110.0040.0144.67
4.3.100.0020.0154.67
4.3.90.0020.0154.64
4.3.80.0040.0224.59
4.3.70.0040.0124.63
4.3.60.0010.0154.63
4.3.50.0020.0154.63
4.3.40.0010.0254.54
4.3.30.0020.0163.30
4.3.20.0010.0183.28
4.3.10.0020.0203.23
4.3.00.0000.01714.30

preferences:
36.92 ms | 401 KiB | 5 Q