3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const A = 'Foo::A'; const B = self::A . ' and ' . self::C; const C = 'Foo::C'; } class Bar extends Foo { const A = 'Bar::A'; const C = 'Bar::C'; } var_dump(Bar::B);

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.0090.01218.43
8.3.50.0120.01321.92
8.3.40.0110.00418.76
8.3.30.0120.00318.60
8.3.20.0100.00320.20
8.3.10.0060.00320.34
8.3.00.0030.00523.65
8.2.180.0120.00316.35
8.2.170.0100.01018.66
8.2.160.0120.00922.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.24
8.2.110.0040.00421.00
8.2.100.0000.01419.59
8.2.90.0050.00317.72
8.2.80.0030.00517.97
8.2.70.0030.00617.80
8.2.60.0030.00618.03
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0000.00720.42
8.2.20.0070.00018.05
8.2.10.0020.00517.94
8.2.00.0000.00718.18
8.1.280.0120.00325.92
8.1.270.0050.00322.05
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00323.84
8.1.230.0040.00722.82
8.1.220.0070.00317.74
8.1.210.0080.00018.77
8.1.200.0090.00017.25
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00818.85
8.1.160.0050.00318.68
8.1.150.0060.00320.20
8.1.140.0070.00319.48
8.1.130.0030.00317.31
8.1.120.0000.00717.36
8.1.110.0000.00817.43
8.1.100.0040.00417.29
8.1.90.0030.00617.39
8.1.80.0030.00517.26
8.1.70.0000.00717.38
8.1.60.0040.00417.46
8.1.50.0040.00417.49
8.1.40.0000.00817.32
8.1.30.0000.00817.45
8.1.20.0070.00017.54
8.1.10.0040.00417.28
8.1.00.0050.00317.21
8.0.300.0000.00719.64
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0070.00017.17
8.0.260.0070.00016.62
8.0.250.0000.00716.88
8.0.240.0040.00416.77
8.0.230.0000.00716.89
8.0.220.0000.00616.80
8.0.210.0030.00716.69
8.0.200.0000.00616.90
8.0.190.0070.00016.95
8.0.180.0040.00416.87
8.0.170.0050.00516.86
8.0.160.0070.00016.77
8.0.150.0060.00316.77
8.0.140.0040.00416.77
8.0.130.0050.00013.28
8.0.120.0000.00716.74
8.0.110.0000.00816.87
8.0.100.0000.00816.88
8.0.90.0030.00316.71
8.0.80.0100.00616.81
8.0.70.0040.00416.79
8.0.60.0070.00016.76
8.0.50.0040.00416.88
8.0.30.0100.00717.16
8.0.20.0100.00817.40
8.0.10.0070.00017.03
8.0.00.0100.01416.62
7.4.330.0000.00715.55
7.4.320.0030.00316.44
7.4.300.0030.00316.34
7.4.290.0050.00316.44
7.4.280.0020.00516.42
7.4.270.0000.00716.46
7.4.260.0030.00716.46
7.4.250.0080.00016.50
7.4.240.0050.00316.41
7.4.230.0030.00316.46
7.4.220.0070.01016.46
7.4.210.0120.00916.39
7.4.200.0040.00416.41
7.4.160.0110.00516.35
7.4.150.0120.00617.40
7.4.140.0070.01317.86
7.4.130.0090.01116.48
7.4.120.0130.01016.38
7.4.110.0140.00316.33
7.4.100.0130.00916.28
7.4.90.0210.01216.55
7.4.80.0110.00619.39
7.4.70.0120.00616.39
7.4.60.0130.00316.46
7.4.50.0060.00916.26
7.4.40.0120.00416.34
7.4.30.0100.00716.45
7.4.10.0130.00615.16
7.4.00.0070.01014.72
7.3.330.0030.00313.26
7.3.320.0050.00213.07
7.3.310.0030.00616.23
7.3.300.0030.00316.19
7.3.290.0090.00816.20
7.3.280.0070.00916.22
7.3.270.0120.00817.40
7.3.260.0110.01016.36
7.3.250.0100.01016.34
7.3.240.0090.01216.30
7.3.230.0030.01416.39
7.3.210.0120.00616.55
7.3.200.0090.01216.30
7.3.190.0060.00916.19
7.3.180.0140.00716.38
7.3.170.0080.00916.33
7.3.160.0160.00016.43
7.3.130.0110.00714.73
7.3.120.0090.00915.02
7.3.110.0130.00714.99
7.3.100.0070.00314.56
7.3.90.0040.00814.69
7.3.80.0140.00314.63
7.3.70.0090.00314.69
7.3.60.0090.00614.43
7.3.50.0030.01014.54
7.3.40.0050.00514.74
7.3.30.0090.00914.68
7.3.20.0030.01016.54
7.3.10.0140.00216.36
7.3.00.0080.00816.37
7.2.330.0080.01116.55
7.2.320.0090.00816.55
7.2.310.0120.00316.54
7.2.300.0070.01116.59
7.2.290.0100.01016.66
7.2.260.0060.01314.95
7.2.250.0060.01214.87
7.2.240.0030.01014.88
7.2.230.0000.01515.07
7.2.220.0040.01515.06
7.2.210.0080.00814.76
7.2.200.0070.00714.97
7.2.190.0070.01114.84
7.2.180.0030.01414.73
7.2.170.0090.00014.74
7.2.160.0040.01215.04
7.2.150.0090.00316.68
7.2.140.0000.01416.82
7.2.130.0090.00716.40
7.2.120.0090.00216.63
7.2.110.0060.00816.68
7.2.100.0050.00916.58
7.2.90.0120.00216.59
7.2.80.0080.00816.83
7.2.70.0080.00716.65
7.2.60.0060.00816.62
7.2.50.0060.00616.74
7.2.40.0110.00516.71
7.2.30.0080.00716.72
7.2.20.0060.00516.63
7.2.10.0120.00516.71
7.2.00.0070.00616.79
7.1.330.0040.01115.53
7.1.320.0160.00315.49
7.1.310.0100.00015.69
7.1.300.0040.00415.48
7.1.290.0070.00715.66
7.1.280.0070.00715.49
7.1.270.0130.00015.43
7.1.260.0030.01015.89
7.1.250.0080.00815.28
7.1.240.0120.00315.60
7.1.230.0090.00615.79
7.1.220.0040.00815.64
7.1.210.0070.00715.48
7.1.200.0110.00615.58
7.1.190.0110.00415.78
7.1.180.0030.01315.66
7.1.170.0070.00715.58
7.1.160.0070.01015.59
7.1.150.0040.01115.72
7.1.140.0000.01015.50
7.1.130.0040.01115.71
7.1.120.0040.00415.61
7.1.110.0090.00015.81
7.1.100.0070.00716.83
7.1.90.0090.00616.76
7.1.80.0050.01016.91
7.1.70.0060.00616.48
7.1.60.0150.00322.60
7.1.50.0090.00922.45
7.1.40.0110.00822.11
7.1.30.0110.00722.18
7.1.20.0080.00922.27
7.1.10.0030.00916.18
7.1.00.0080.00416.23
7.0.330.0130.00315.34
7.0.320.0080.00415.24
7.0.310.0080.00015.26
7.0.300.0070.00314.96
7.0.290.0030.00915.23
7.0.280.0030.01215.23
7.0.270.0030.00915.30
7.0.260.0070.00715.11
7.0.250.0090.00615.39
7.0.240.0070.01016.48
7.0.230.0080.00816.51
7.0.220.0060.00716.51
7.0.210.0060.00716.00
7.0.200.0060.00816.14
7.0.190.0020.01016.19
7.0.180.0060.00715.98
7.0.170.0050.00716.02
7.0.160.0030.00916.01
7.0.150.0040.00915.92
7.0.140.0020.00916.03
7.0.130.0050.00916.02
7.0.120.0020.01115.98
7.0.110.0060.00615.93
7.0.100.0040.00715.94
7.0.90.0050.00715.94
7.0.80.0030.00816.02
7.0.70.0080.00615.85
7.0.60.0090.00515.87
7.0.50.0040.00916.08
7.0.40.0040.00915.49
7.0.30.0050.00715.41
7.0.20.0070.00615.35
7.0.10.0070.00515.34
7.0.00.0070.00715.34
5.6.400.0060.00913.89
5.6.390.0070.00414.55
5.6.380.0070.00314.13
5.6.370.0060.00314.30
5.6.360.0040.00714.00
5.6.350.0100.00313.96
5.6.340.0030.00614.10
5.6.330.0030.01014.20
5.6.320.0070.00314.43
5.6.310.0090.00614.30
5.6.300.0100.00714.21
5.6.290.0040.00714.16
5.6.280.0030.00914.22
5.6.270.0030.01014.51
5.6.260.0030.00913.93
5.6.250.0090.00614.29
5.6.240.0070.00714.10
5.6.230.0000.01114.43
5.6.220.0090.00613.91
5.6.210.0070.00714.06
5.6.200.0090.00614.16
5.6.190.0070.00714.21
5.6.180.0070.01014.38
5.6.170.0090.00614.45
5.6.160.0070.00714.17
5.6.150.0040.01114.01
5.6.140.0070.00314.25
5.6.130.0060.00614.19
5.6.120.0040.01114.27
5.6.110.0070.00714.10
5.6.100.0120.00314.25
5.6.90.0030.01214.24
5.6.80.0090.00313.83
5.6.70.0000.01214.11
5.6.60.0090.00613.99
5.6.50.0080.00813.96
5.6.40.0080.00414.16
5.6.30.0060.00914.13
5.6.20.0030.01013.98
5.6.10.0050.00513.78
5.6.00.0080.00813.93

preferences:
33.18 ms | 401 KiB | 5 Q