3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { const MSG = 'I am the base class'; // You'd think this would print out the above, but it prints out the one that's extending this instead public function getOriginalMessage() { echo static::MSG; } } class B extends A{ const MSG = 'I am Class B'; } $b = new B; $b->getOriginalMessage();

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.70.0110.00418.18
8.3.60.0130.00618.43
8.3.50.0120.00921.14
8.3.40.0120.00318.73
8.3.30.0070.01019.27
8.3.20.0040.00420.30
8.3.10.0040.00423.65
8.3.00.0070.00023.51
8.2.190.0170.00316.58
8.2.180.0140.00416.38
8.2.170.0130.00622.96
8.2.160.0100.00722.15
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00317.38
8.2.110.0080.00421.11
8.2.100.0110.00017.63
8.2.90.0070.00018.99
8.2.80.0050.00517.97
8.2.70.0030.00617.48
8.2.60.0030.00617.92
8.2.50.0000.00818.07
8.2.40.0040.00420.92
8.2.30.0040.00419.75
8.2.20.0050.00217.56
8.2.10.0040.00418.06
8.2.00.0070.00018.04
8.1.280.0040.01125.92
8.1.270.0080.00020.13
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.18
8.1.230.0040.00817.66
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0090.00018.10
8.1.170.0090.00018.58
8.1.160.0020.00522.02
8.1.150.0070.00018.82
8.1.140.0030.00617.51
8.1.130.0030.00517.42
8.1.120.0000.00717.36
8.1.110.0040.00417.50
8.1.100.0040.00417.49
8.1.90.0050.00217.46
8.1.80.0040.00417.30
8.1.70.0000.00717.52
8.1.60.0050.00317.49
8.1.50.0050.00317.46
8.1.40.0030.00517.52
8.1.30.0000.00817.40
8.1.20.0040.00417.56
8.1.10.0000.00717.54
8.1.00.0040.00417.44
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0030.00317.21
8.0.260.0030.00616.88
8.0.250.0040.00416.99
8.0.240.0070.00016.85
8.0.230.0070.00016.97
8.0.220.0040.00416.93
8.0.210.0070.00016.93
8.0.200.0000.00616.88
8.0.190.0070.00016.96
8.0.180.0040.00416.82
8.0.170.0060.00316.91
8.0.160.0000.00716.85
8.0.150.0040.00416.73
8.0.140.0080.00016.86
8.0.130.0030.00313.31
8.0.120.0000.00916.71
8.0.110.0070.00016.78
8.0.100.0040.00416.73
8.0.90.0000.00716.78
8.0.80.0090.00616.91
8.0.70.0040.00416.84
8.0.60.0070.00016.84
8.0.50.0000.00716.92
8.0.30.0070.01217.08
8.0.20.0160.00317.40
8.0.10.0030.00517.02
8.0.00.0090.00716.82
7.4.330.0020.00215.12
7.4.320.0000.00616.37
7.4.300.0060.00016.51
7.4.290.0040.00416.48
7.4.280.0040.00416.50
7.4.270.0030.00316.53
7.4.260.0070.00016.63
7.4.250.0030.00316.50
7.4.240.0020.00616.60
7.4.230.0030.00316.70
7.4.220.0030.00316.51
7.4.210.0060.00916.49
7.4.200.0080.00016.50
7.4.160.0030.01316.39
7.4.150.0130.00617.40
7.4.140.0070.01017.86
7.4.130.0080.00816.46
7.4.120.0090.00916.39
7.4.110.0070.01116.54
7.4.100.0160.00616.48
7.4.90.0100.00716.38
7.4.80.0110.01119.39
7.4.70.0190.00016.52
7.4.60.0110.00516.26
7.4.50.0060.00316.43
7.4.40.0060.01116.54
7.4.30.0030.01516.45
7.4.00.0050.01214.81
7.3.330.0020.00213.13
7.3.320.0000.00513.37
7.3.310.0050.00316.20
7.3.300.0030.00316.31
7.3.290.0070.00816.30
7.3.280.0100.00816.31
7.3.270.0070.01317.40
7.3.260.0070.01116.28
7.3.250.0110.00816.36
7.3.240.0060.01616.47
7.3.230.0040.01316.48
7.3.210.0100.00716.37
7.3.200.0170.00016.26
7.3.190.0060.01116.42
7.3.180.0060.01216.35
7.3.170.0080.00816.32
7.3.160.0130.01016.27
7.3.120.0100.01015.04
7.3.110.0030.01514.82
7.3.100.0060.00914.76
7.3.90.0060.01014.58
7.3.80.0070.00714.69
7.3.70.0070.01114.46
7.3.60.0070.01114.71
7.3.50.0070.00714.67
7.3.40.0070.01314.61
7.3.30.0060.00914.74
7.3.20.0120.00616.45
7.3.10.0030.01316.43
7.3.00.0070.01016.59
7.2.330.0070.01116.39
7.2.320.0170.00316.68
7.2.310.0060.01016.47
7.2.300.0140.00416.77
7.2.290.0110.00416.79
7.2.250.0070.01115.19
7.2.240.0070.01114.89
7.2.230.0040.01515.18
7.2.220.0050.00515.37
7.2.210.0060.00614.88
7.2.200.0120.00315.02
7.2.190.0040.00814.78
7.2.180.0110.00714.98
7.2.170.0000.01914.91
7.2.110.0130.00316.62
7.2.00.0000.01419.34
7.1.330.0070.00715.35
7.1.320.0030.00615.67
7.1.310.0060.01215.66
7.1.300.0040.00815.55
7.1.290.0070.01015.37
7.1.280.0060.01215.54
7.1.270.0060.00615.42
7.1.260.0070.00715.45
7.1.100.0090.00618.00
7.1.70.0000.01016.99
7.1.60.0030.02019.42
7.1.50.0040.01816.66
7.1.00.0030.07722.48
7.0.200.0090.00016.45
7.0.60.0100.04719.78
7.0.50.0100.07717.94
7.0.40.0000.04720.39
7.0.30.0270.04020.30
7.0.20.0170.04720.21
7.0.10.0100.08320.12
7.0.00.0070.03720.20
5.6.280.0030.05021.05
5.6.210.0000.07320.75
5.6.200.0030.07018.16
5.6.190.0000.06020.77
5.6.180.0530.04720.33
5.6.170.0330.07320.54
5.6.160.0030.07320.56
5.6.150.0100.08018.15
5.6.140.0030.04018.11
5.6.130.0030.05018.25
5.6.120.0030.06321.00
5.6.110.0030.04021.01
5.6.100.0100.08320.98
5.6.90.0130.05320.98
5.6.80.0100.07320.51
5.5.350.0270.10020.46
5.5.340.0000.05317.96
5.5.330.0030.06320.40
5.5.320.0270.07020.32
5.5.310.0270.06320.28
5.5.300.0100.06018.04
5.5.290.0070.05718.08
5.5.280.0130.07020.89
5.5.270.0070.05320.85
5.5.260.0070.08020.77
5.5.250.0030.04720.48
5.5.240.0130.07020.16
5.4.450.0530.06019.50
5.4.440.0770.04719.29
5.4.430.0700.06019.16
5.4.420.0630.06019.33
5.4.410.0600.06019.48
5.4.400.0600.06019.27
5.4.390.0830.06019.28
5.4.380.0500.06019.26
5.4.370.0770.05319.12
5.4.360.0670.05719.01
5.4.350.0630.06318.85
5.4.340.0730.05019.01
5.4.320.0670.06018.84
5.4.310.0630.05718.84
5.4.300.0830.03719.36
5.4.290.0700.05319.00
5.4.280.0600.06019.13
5.4.270.0730.04719.01
5.4.260.0830.03719.25
5.4.250.0730.04719.14
5.4.240.0770.04319.12
5.4.230.0830.06019.05
5.4.220.0570.05019.25
5.4.210.0600.06019.07
5.4.200.0570.04716.72
5.4.190.0700.05019.09
5.4.180.0630.05719.00
5.4.170.0570.06319.13
5.4.160.0770.05019.02
5.4.150.0700.05318.89
5.4.140.0670.04316.39
5.4.130.0670.04016.56
5.4.120.0530.05316.50
5.4.110.0800.06716.55
5.4.100.0570.07016.46
5.4.90.0730.04316.39
5.4.80.0670.05716.59
5.4.70.0670.04716.34
5.4.60.0870.04716.50
5.4.50.0600.06716.28
5.4.40.0730.05016.29
5.4.30.0700.05316.38
5.4.20.0530.06316.37
5.4.10.0400.05016.29
5.4.00.0130.04715.84
5.3.290.0100.06014.63
5.3.280.0470.06714.60
5.3.270.0630.06714.51
5.3.260.0770.05314.69
5.3.250.0770.04314.62
5.3.240.0830.05714.57
5.3.230.0630.05014.68
5.3.220.0700.05714.47
5.3.210.0630.05714.48
5.3.200.0600.05714.57
5.3.190.0930.06014.57
5.3.180.0900.05714.79
5.3.170.0730.05314.59
5.3.160.0900.06014.58
5.3.150.0700.06014.46
5.3.140.0730.05014.61
5.3.130.0700.04714.69
5.3.120.0770.05714.45
5.3.110.0800.06014.60
5.3.100.0530.05713.95
5.3.90.0770.05314.01
5.3.80.0570.05313.94
5.3.70.0800.05014.17
5.3.60.0600.05314.03
5.3.50.0770.04713.85
5.3.40.0630.06313.97
5.3.30.0770.05013.80
5.3.20.0570.05713.70
5.3.10.0530.06313.58
5.3.00.0830.04713.64
5.2.170.0870.04011.05
5.2.160.0530.03711.05
5.2.150.0570.04011.10
5.2.140.0500.04011.16
5.2.130.0470.04711.13
5.2.120.0470.04311.01
5.2.110.0530.05311.12
5.2.100.0500.04311.35
5.2.90.0400.04711.05
5.2.80.0600.04310.98
5.2.70.0670.04011.15
5.2.60.0730.03011.14
5.2.50.0630.03311.03
5.2.40.0500.04310.91
5.2.30.0500.05011.05
5.2.20.0600.04310.87
5.2.10.0630.04710.87
5.2.00.0630.04310.73
5.1.60.0500.05310.23
5.1.50.0530.0539.89
5.1.40.0470.0339.82
5.1.30.0630.03710.30
5.1.20.0570.03310.26
5.1.10.0430.03710.10
5.1.00.0470.03310.16
5.0.50.0230.0308.48
5.0.40.0300.0238.49
5.0.30.0300.0438.11
5.0.20.0270.0238.22
5.0.10.0230.0308.23
5.0.00.0200.0438.19
4.4.90.0330.0205.80
4.4.80.0230.0205.82
4.4.70.0230.0235.83
4.4.60.0330.0175.79
4.4.50.0230.0205.80
4.4.40.0370.0275.75
4.4.30.0300.0205.81
4.4.20.0130.0275.88
4.4.10.0170.0235.86
4.4.00.0200.0305.78
4.3.110.0200.0205.73
4.3.100.0100.0135.74
4.3.90.0030.0235.79
4.3.80.0000.0405.70
4.3.70.0030.0205.73
4.3.60.0070.0205.66
4.3.50.0070.0205.74
4.3.40.0030.0335.67
4.3.30.0000.0234.51
4.3.20.0100.0134.42
4.3.10.0030.0304.36
4.3.00.0030.0277.11

preferences:
79.65 ms | 401 KiB | 5 Q