3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface truc { const OK = 'OK'; } abstract class A implements truc { const OK = 'BLABLA'; } class B extends A { const OK = 'PAS OK'; } echo B::OK;

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.40.0110.00418.67
8.3.30.0070.00718.67
8.3.20.0040.00420.21
8.3.10.0060.00323.56
8.3.00.0040.00419.69
8.2.170.0000.01422.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0050.00319.36
8.2.110.0000.01022.14
8.2.100.0040.00817.63
8.2.90.0030.00619.28
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0050.00317.80
8.2.50.0000.01218.07
8.2.40.0070.00019.25
8.2.30.0080.00019.77
8.2.20.0040.00417.61
8.2.10.0000.00818.00
8.2.00.0000.00817.86
8.1.270.0070.01020.39
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.42
8.1.230.0070.00417.42
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0100.00017.35
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0000.00818.63
8.1.160.0080.00022.06
8.1.150.0050.00318.81
8.1.140.0030.00517.37
8.1.130.0000.00817.54
8.1.120.0000.00717.32
8.1.110.0050.00317.36
8.1.100.0030.00517.38
8.1.90.0030.00317.26
8.1.80.0000.00817.27
8.1.70.0000.00717.40
8.1.60.0040.00417.55
8.1.50.0060.00317.32
8.1.40.0000.00817.32
8.1.30.0100.00317.48
8.1.20.0000.00817.49
8.1.10.0000.00817.46
8.1.00.0030.00517.40
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0000.00717.10
8.0.260.0030.00317.05
8.0.250.0040.00416.94
8.0.240.0000.00716.83
8.0.230.0070.00016.85
8.0.220.0000.00716.79
8.0.210.0060.00316.86
8.0.200.0070.00016.83
8.0.190.0000.00816.88
8.0.180.0040.00416.86
8.0.170.0000.00816.89
8.0.160.0040.00416.85
8.0.150.0070.00316.77
8.0.140.0030.00716.85
8.0.130.0000.00813.30
8.0.120.0000.00816.82
8.0.110.0040.00416.89
8.0.100.0000.00716.82
8.0.90.0030.00316.92
8.0.80.0180.00416.86
8.0.70.0040.00416.84
8.0.60.0040.00416.77
8.0.50.0040.00416.79
8.0.30.0100.01116.91
8.0.20.0080.01417.40
8.0.10.0000.00717.06
8.0.00.0090.01116.61
7.4.330.0050.00015.08
7.4.320.0000.00616.41
7.4.300.0040.00416.52
7.4.290.0030.00316.44
7.4.280.0030.00516.51
7.4.270.0000.00716.51
7.4.260.0030.00616.36
7.4.250.0000.00716.38
7.4.240.0020.00516.48
7.4.230.0000.00716.56
7.4.220.0070.01116.61
7.4.210.0070.01116.47
7.4.200.0000.00716.42
7.4.160.0030.01316.55
7.4.150.0120.00417.40
7.4.140.0080.01117.86
7.4.130.0110.00816.34
7.4.120.0110.01016.40
7.4.110.0160.00616.50
7.4.100.0140.00716.43
7.4.90.0070.01016.63
7.4.80.0150.00819.39
7.4.70.0130.01016.56
7.4.60.0160.00016.21
7.4.50.0030.00616.59
7.4.40.0030.01316.66
7.4.30.0150.00616.61
7.4.00.0120.00314.84
7.3.330.0000.00613.09
7.3.320.0030.00313.07
7.3.310.0060.00016.12
7.3.300.0030.00316.23
7.3.290.0050.00916.15
7.3.280.0070.01116.24
7.3.270.0100.00617.40
7.3.260.0130.00616.41
7.3.250.0080.00916.25
7.3.240.0070.01016.50
7.3.230.0120.00616.52
7.3.210.0120.00616.45
7.3.200.0090.01116.32
7.3.190.0080.00816.44
7.3.180.0060.01316.36
7.3.170.0100.00716.53
7.3.160.0110.00716.40
7.3.120.0060.01214.72
7.3.110.0110.00314.79
7.3.100.0040.00814.83
7.3.90.0090.00914.73
7.3.80.0070.00714.88
7.3.70.0000.01514.86
7.3.60.0030.01214.47
7.3.50.0000.00814.64
7.3.40.0080.00814.79
7.3.30.0030.01314.59
7.3.20.0090.00916.72
7.3.10.0050.00916.47
7.3.00.0050.00816.40
7.2.330.0030.01416.61
7.2.320.0140.00916.53
7.2.310.0100.00616.57
7.2.300.0100.00616.48
7.2.290.0030.02016.63
7.2.250.0060.01214.82
7.2.240.0040.01415.03
7.2.230.0080.00414.91
7.2.220.0000.01315.12
7.2.210.0060.00615.02
7.2.200.0040.00814.76
7.2.190.0040.00714.95
7.2.180.0030.00614.99
7.2.170.0030.01414.84
7.2.130.0030.00816.68
7.2.120.0050.00616.76
7.2.110.0040.01116.82
7.2.100.0020.00816.69
7.2.90.0080.00816.76
7.2.80.0020.01016.91
7.2.70.0080.00516.79
7.2.60.0080.00816.83
7.2.50.0050.00816.64
7.2.40.0050.00916.76
7.2.30.0040.01116.73
7.2.20.0080.00816.71
7.2.10.0100.00516.50
7.2.00.0070.00717.48
7.1.330.0100.00715.85
7.1.320.0030.00915.68
7.1.310.0070.00315.34
7.1.300.0070.00715.43
7.1.290.0040.01115.62
7.1.280.0120.00315.40
7.1.270.0120.00615.37
7.1.260.0000.01115.63
7.1.250.0040.00415.34
7.1.200.0030.00715.79
7.1.100.0070.00717.88
7.1.70.0050.00216.90
7.1.60.0140.01020.03
7.1.50.0180.00716.86
7.1.00.0030.07722.25
7.0.200.0000.01016.64
7.0.60.0000.05320.06
7.0.50.0030.05317.95
7.0.40.0070.09320.13
7.0.30.0270.07320.30
7.0.20.0230.07720.09
7.0.10.0130.07320.09
7.0.00.0000.09320.24
5.6.280.0030.07020.89
5.6.210.0170.07020.53
5.6.200.0070.08318.18
5.6.190.0070.04320.33
5.6.180.0000.04320.61
5.6.170.0200.07020.44
5.6.160.0030.05320.70
5.6.150.0130.07718.27
5.6.140.0070.05018.15
5.6.130.0070.07718.15
5.6.120.0000.05020.96
5.6.110.0130.08020.98
5.6.100.0070.06020.96
5.6.90.0170.03321.07
5.6.80.0100.07720.37
5.5.350.0270.04020.40
5.5.340.0130.07318.08
5.5.330.0130.07720.37
5.5.320.0070.04720.38
5.5.310.0100.04720.28
5.5.300.0000.04317.95
5.5.290.0130.06718.05
5.5.280.0030.08720.90
5.5.270.0170.07020.78
5.5.260.0130.07720.79
5.5.250.0070.03720.76
5.5.240.0030.08320.15
5.4.450.0500.05319.47
5.4.440.0430.06019.43
5.4.430.0670.04319.58
5.4.420.0570.04719.47
5.4.410.0470.05719.34
5.4.400.0670.06718.87
5.4.390.0800.04019.30
5.4.380.0570.04719.27
5.4.370.0700.05019.14
5.4.360.0670.05019.22
5.4.350.0470.05719.02
5.4.340.0570.06319.06
5.4.320.0470.06319.36
5.4.310.0430.05719.38
5.4.300.0500.05018.87
5.4.290.0530.04719.37
5.4.280.0430.06018.83
5.4.270.0500.05019.14
5.4.260.0800.05019.22
5.4.250.0600.05319.01
5.4.240.0570.05319.27
5.4.230.0630.05719.25
5.4.220.0600.05719.30
5.4.210.0530.05319.30
5.4.200.0530.05719.05
5.4.190.0670.04718.97
5.4.180.0600.05019.17
5.4.170.0600.05019.00
5.4.160.0670.04719.23
5.4.150.0700.04719.04
5.4.140.0470.05016.47
5.4.130.0500.04316.39
5.4.120.0530.04316.37
5.4.110.0530.04716.57
5.4.100.0470.04716.47
5.4.90.0530.05016.67
5.4.80.0600.05016.56
5.4.70.0270.03716.51
5.4.60.0170.05316.33
5.4.50.0400.06016.52
5.4.40.0270.05316.42
5.4.30.0230.05716.24
5.4.20.0170.05016.50
5.4.10.0300.07316.44

preferences:
42.65 ms | 400 KiB | 5 Q