3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pare { const DEF = __CLASS__; } class Foo extends Pare { public static function bar($i = parent::DEF) { return $i; } } class Ex extends Foo { const DEF = __CLASS__; } var_dump(Ex::bar());

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.00716.38
8.3.50.0110.00622.85
8.3.40.0070.00718.57
8.3.30.0100.00318.96
8.3.20.0000.00720.39
8.3.10.0040.00421.77
8.3.00.0080.00017.66
8.2.180.0080.01116.38
8.2.170.0140.00322.96
8.2.160.0100.01020.34
8.2.150.0070.00024.18
8.2.140.0070.00724.66
8.2.130.0110.00426.16
8.2.120.0080.00020.99
8.2.110.0060.00320.89
8.2.100.0040.00717.72
8.2.90.0000.00819.11
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00817.68
8.2.50.0030.00618.10
8.2.40.0030.00520.66
8.2.30.0000.00718.00
8.2.20.0040.00417.54
8.2.10.0000.00817.92
8.2.00.0070.00017.60
8.1.280.0110.00725.92
8.1.270.0090.00020.61
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0050.00521.18
8.1.230.0080.00417.70
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.10
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00422.18
8.1.150.0000.00718.61
8.1.140.0020.00517.37
8.1.130.0040.00419.46
8.1.120.0000.00817.36
8.1.110.0000.00817.32
8.1.100.0030.00317.34
8.1.90.0000.00717.29
8.1.80.0050.00317.33
8.1.70.0000.00717.30
8.1.60.0040.00417.50
8.1.50.0080.00017.42
8.1.40.0040.00417.34
8.1.30.0050.00317.48
8.1.20.0040.00417.45
8.1.10.0040.00417.41
8.1.00.0040.00417.35
8.0.300.0130.00018.77
8.0.290.0080.00016.63
8.0.280.0000.00818.32
8.0.270.0000.00716.66
8.0.260.0000.00717.18
8.0.250.0070.00016.90
8.0.240.0080.00016.94
8.0.230.0070.00016.92
8.0.220.0040.00416.84
8.0.210.0000.00616.79
8.0.200.0000.00616.83
8.0.190.0070.00016.86
8.0.180.0050.00316.73
8.0.170.0060.00316.82
8.0.160.0030.00316.69
8.0.150.0040.00416.70
8.0.140.0080.00316.72
8.0.130.0030.00313.23
8.0.120.0000.00816.74
8.0.110.0060.00316.68
8.0.100.0030.00416.80
8.0.90.0030.00316.82
8.0.80.0120.00316.64
8.0.70.0050.00216.66
8.0.60.0000.00716.84
8.0.50.0040.00416.71
8.0.30.0110.01116.99
8.0.20.0130.00717.40
8.0.10.0040.00416.71
8.0.00.0080.01516.66
7.4.330.0050.00015.01
7.4.320.0060.00016.38
7.4.300.0060.00016.57
7.4.290.0030.00316.44
7.4.280.0080.00016.34
7.4.270.0000.00716.40
7.4.260.0000.00716.52
7.4.250.0040.00416.36
7.4.240.0040.00416.43
7.4.230.0030.00316.46
7.4.220.0150.00616.34
7.4.210.0080.00816.59
7.4.200.0050.00316.45
7.4.160.0060.00916.39
7.4.150.0150.00617.40
7.4.140.0110.00817.86
7.4.130.0080.00816.45
7.4.120.0110.01016.53
7.4.110.0100.00616.39
7.4.100.0080.00816.43
7.4.90.0040.01416.39
7.4.80.0100.00719.39
7.4.70.0090.00916.26
7.4.60.0100.01316.61
7.4.50.0030.00316.48
7.4.40.0000.01516.45
7.4.30.0170.00316.56
7.4.00.0050.01114.80
7.3.330.0030.00313.10
7.3.320.0050.00013.04
7.3.310.0040.00416.25
7.3.300.0030.00316.04
7.3.290.0060.00616.16
7.3.280.0050.01416.25
7.3.270.0070.01117.40
7.3.260.0140.00916.50
7.3.250.0150.00716.18
7.3.240.0070.01016.37
7.3.230.0070.01616.39
7.3.210.0090.00916.33
7.3.200.0060.01219.39
7.3.190.0100.00616.39
7.3.180.0040.01316.12
7.3.170.0090.00616.50
7.3.160.0030.01316.30
7.3.120.0050.00914.87
7.3.110.0120.00614.64
7.3.100.0000.01414.60
7.3.90.0090.00914.68
7.3.80.0070.00714.70
7.3.70.0050.00514.57
7.3.60.0000.01314.43
7.3.50.0030.00614.84
7.3.40.0100.00614.70
7.3.30.0120.00314.47
7.3.20.0060.00916.63
7.3.10.0060.00616.60
7.3.00.0080.00616.41
7.2.330.0120.01216.60
7.2.320.0140.00316.25
7.2.310.0060.01216.53
7.2.300.0160.00816.69
7.2.290.0100.00716.49
7.2.250.0000.02014.94
7.2.240.0100.01014.96
7.2.230.0130.00315.09
7.2.220.0080.00515.16
7.2.210.0030.01115.04
7.2.200.0060.00614.70
7.2.190.0030.01214.56
7.2.180.0030.00914.55
7.2.170.0100.00314.65
7.2.130.0040.01116.70
7.2.120.0030.01016.76
7.2.110.0090.00616.70
7.2.100.0070.00716.52
7.2.90.0050.00516.80
7.2.80.0090.00616.79
7.2.70.0060.00616.91
7.2.60.0080.00516.74
7.2.50.0110.00316.67
7.2.40.0110.00316.64
7.2.30.0060.00616.65
7.2.20.0060.00916.49
7.2.10.0100.00716.84
7.2.00.0050.01018.03
7.1.330.0120.00315.73
7.1.320.0030.00715.63
7.1.310.0060.01215.63
7.1.300.0130.00315.72
7.1.290.0070.00415.61
7.1.280.0030.00915.46
7.1.270.0100.00715.63
7.1.260.0070.00315.66
7.1.250.0030.01015.67
7.1.200.0100.00315.42
7.1.100.0040.00818.11
7.1.70.0040.00716.81
7.1.60.0070.01819.40
7.1.50.0160.00616.82
7.1.00.0030.07722.44
7.0.200.0080.00016.41
7.0.140.0030.07722.09
7.0.60.0170.05720.08
7.0.50.0130.07717.84
7.0.40.0070.04720.23
7.0.30.0430.04720.12
7.0.20.0370.07320.19
7.0.10.0100.04020.19
7.0.00.0000.05320.23
5.6.280.0000.07320.99
5.6.210.0070.08720.61
5.6.200.0030.06318.16
5.6.190.0000.04320.43
5.6.180.0170.04720.46
5.6.170.0200.04720.45
5.6.160.0100.07720.43
5.6.150.0030.08718.14
5.6.140.0170.05718.18
5.6.130.0000.09018.21
5.6.120.0070.07021.14
5.6.110.0000.04720.89
5.6.100.0170.06721.01
5.6.90.0030.07721.05
5.6.80.0070.08020.42
5.5.350.0000.08320.43
5.5.340.0130.06017.94
5.5.330.0130.08020.13
5.5.320.0070.08020.34
5.5.310.0300.08020.34
5.5.300.0070.04017.99
5.5.290.0130.08017.98
5.5.280.0070.08720.88
5.5.270.0000.04320.88
5.5.260.0100.08020.79
5.5.250.0030.08320.55
5.5.240.0330.07020.24
5.4.450.0430.06019.39
5.4.440.0200.05319.18
5.4.430.0270.04719.61
5.4.420.0030.06719.33
5.4.410.0170.05319.50
5.4.400.0170.05319.12
5.4.390.0300.06318.86
5.4.380.0170.05318.79
5.4.370.0130.04318.73
5.4.360.0070.05318.50
5.4.350.0070.04512.02
5.4.340.0050.04612.02
5.4.320.0080.05012.51
5.4.310.0080.03512.50
5.4.300.0070.03512.50
5.4.290.0050.03812.50
5.4.280.0060.03412.39
5.4.270.0060.03612.39
5.4.260.0030.04012.39
5.4.250.0070.03512.39
5.4.240.0060.03812.39
5.4.230.0080.03412.39
5.4.220.0030.03712.39
5.4.210.0040.03612.39
5.4.200.0080.04112.39
5.4.190.0040.03712.38
5.4.180.0060.04212.38
5.4.170.0070.03512.39
5.4.160.0050.03712.39
5.4.150.0070.03612.39
5.4.140.0050.03912.07
5.4.130.0030.03812.06
5.4.120.0040.03612.02
5.4.110.0100.03512.02
5.4.100.0060.03712.01
5.4.90.0070.04012.02
5.4.80.0100.03212.01
5.4.70.0030.03712.01
5.4.60.0050.03512.01
5.4.50.0040.03712.00
5.4.40.0070.03312.00
5.4.30.0050.03611.99
5.4.20.0060.03512.00
5.4.10.0090.03011.99
5.4.00.0090.03311.48
5.3.290.0070.04012.80
5.3.280.0060.03612.71
5.3.270.0060.04012.72
5.3.260.0060.03812.72
5.3.250.0090.03312.72
5.3.240.0050.03712.72
5.3.230.0120.03812.71
5.3.220.0070.03712.68
5.3.210.0060.03912.68
5.3.200.0050.03712.68
5.3.190.0060.03712.68
5.3.180.0050.03912.68
5.3.170.0090.03912.67
5.3.160.0050.03712.68
5.3.150.0020.04012.67
5.3.140.0110.03012.66
5.3.130.0050.03812.65
5.3.120.0060.04912.66
5.3.110.0040.03912.66
5.3.100.0050.03712.12
5.3.90.0050.03612.10
5.3.80.0040.04012.09
5.3.70.0090.03412.09
5.3.60.0050.03612.08
5.3.50.0060.03512.02
5.3.40.0050.03812.02
5.3.30.0070.03211.98
5.3.20.0050.04211.76
5.3.10.0070.03211.73
5.3.00.0090.03411.71
5.2.170.0040.0329.21
5.2.160.0050.0279.21
5.2.150.0050.0299.22
5.2.140.0040.0389.21
5.2.130.0020.0339.18
5.2.120.0070.0319.17
5.2.110.0050.0289.18
5.2.100.0060.0279.18
5.2.90.0040.0299.18
5.2.80.0040.0369.18
5.2.70.0070.0309.18
5.2.60.0050.0369.13
5.2.50.0070.0299.09
5.2.40.0050.0349.07
5.2.30.0080.0269.05
5.2.20.0050.0329.03
5.2.10.0050.0328.94
5.2.00.0050.0398.80
5.1.60.0080.0238.09
5.1.50.0060.0238.09
5.1.40.0070.0318.06
5.1.30.0030.0278.42
5.1.20.0030.0298.43
5.1.10.0090.0258.16
5.1.00.0030.0288.16
5.0.50.0070.0226.64
5.0.40.0030.0196.50
5.0.30.0020.0356.30
5.0.20.0030.0206.27
5.0.10.0030.0206.26
5.0.00.0040.0306.25
4.4.90.0020.0164.78
4.4.80.0030.0164.76
4.4.70.0050.0284.75
4.4.60.0050.0204.75
4.4.50.0010.0174.77
4.4.40.0040.0244.71
4.4.30.0030.0164.76
4.4.20.0030.0164.84
4.4.10.0040.0144.85
4.4.00.0030.0244.76
4.3.110.0040.0154.67
4.3.100.0040.0144.67
4.3.90.0060.0124.63
4.3.80.0060.0224.59
4.3.70.0050.0154.63
4.3.60.0020.0154.63
4.3.50.0020.0164.62
4.3.40.0050.0224.54
4.3.30.0030.0223.30
4.3.20.0030.0173.28
4.3.10.0040.0203.24
4.3.00.0070.0207.20

preferences:
52.94 ms | 401 KiB | 5 Q