3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface truc { const OK = 'OK'; } abstract class A implements truc { } 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.60.0030.01216.13
8.3.50.0000.01416.29
8.3.40.0130.00318.89
8.3.30.0070.00718.54
8.3.20.0040.00420.31
8.3.10.0040.00423.62
8.3.00.0030.00519.69
8.2.180.0120.00618.17
8.2.170.0070.00722.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.50
8.2.110.0090.00019.24
8.2.100.0120.00017.50
8.2.90.0050.00319.09
8.2.80.0080.00017.97
8.2.70.0070.00317.25
8.2.60.0080.00017.79
8.2.50.0060.00618.07
8.2.40.0060.00319.36
8.2.30.0040.00419.66
8.2.20.0040.00417.65
8.2.10.0040.00417.94
8.2.00.0000.00717.92
8.1.280.0110.00725.92
8.1.270.0110.00720.28
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.79
8.1.230.0100.00317.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0060.00317.10
8.1.180.0050.00218.10
8.1.170.0060.00318.64
8.1.160.0030.00623.65
8.1.150.0070.00018.72
8.1.140.0040.00417.38
8.1.130.0000.00717.63
8.1.120.0070.00017.29
8.1.110.0000.00817.43
8.1.100.0040.00417.42
8.1.90.0040.00417.38
8.1.80.0050.00317.25
8.1.70.0000.00717.38
8.1.60.0060.00317.49
8.1.50.0040.00417.46
8.1.40.0000.00817.42
8.1.30.0090.00017.63
8.1.20.0080.00017.64
8.1.10.0000.00817.30
8.1.00.0040.00417.37
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.37
8.0.270.0000.00717.05
8.0.260.0060.00017.18
8.0.250.0040.00416.87
8.0.240.0030.00516.81
8.0.230.0040.00416.88
8.0.220.0070.00016.78
8.0.210.0070.00016.84
8.0.200.0000.00716.91
8.0.190.0000.00816.74
8.0.180.0030.00316.68
8.0.170.0080.00016.67
8.0.160.0040.00316.79
8.0.150.0040.00416.80
8.0.140.0030.00616.77
8.0.130.0000.00713.16
8.0.120.0000.00816.80
8.0.110.0040.00416.72
8.0.100.0040.00416.85
8.0.90.0050.00216.62
8.0.80.0000.01516.83
8.0.70.0040.00416.70
8.0.60.0000.00816.81
8.0.50.0000.00816.72
8.0.30.0050.01317.10
8.0.20.0060.01317.40
8.0.10.0070.00016.80
8.0.00.0160.01616.69
7.4.330.0060.00015.08
7.4.320.0060.00016.42
7.4.300.0000.00616.59
7.4.290.0000.00716.40
7.4.280.0060.00316.51
7.4.270.0000.00716.54
7.4.260.0040.00416.48
7.4.250.0040.00416.32
7.4.240.0000.00716.42
7.4.230.0000.00716.54
7.4.220.0110.00616.45
7.4.210.0040.01416.61
7.4.200.0000.00716.32
7.4.160.0060.01216.27
7.4.150.0080.01217.40
7.4.140.0070.01617.86
7.4.130.0140.00516.51
7.4.120.0130.00616.46
7.4.110.0090.00916.27
7.4.100.0090.00916.39
7.4.90.0100.00716.31
7.4.80.0100.00719.39
7.4.70.0060.00916.32
7.4.60.0060.01116.52
7.4.50.0080.00016.57
7.4.40.0120.00616.42
7.4.30.0060.01316.48
7.4.00.0050.01214.83
7.3.330.0030.00313.04
7.3.320.0000.00613.09
7.3.310.0000.00716.23
7.3.300.0000.00616.09
7.3.290.0070.00916.20
7.3.280.0130.00616.23
7.3.270.0160.00317.40
7.3.260.0030.01616.27
7.3.250.0110.00616.21
7.3.240.0140.00316.43
7.3.230.0040.01316.61
7.3.210.0110.00716.60
7.3.200.0100.00616.35
7.3.190.0070.01016.16
7.3.180.0120.00616.56
7.3.170.0090.00816.27
7.3.160.0080.00816.21
7.3.120.0080.00914.52
7.3.110.0090.00914.54
7.3.100.0100.00315.04
7.3.90.0040.01114.79
7.3.80.0060.00914.61
7.3.70.0120.00314.72
7.3.60.0040.01214.68
7.3.50.0040.00714.88
7.3.40.0090.00614.68
7.3.30.0090.00014.62
7.3.20.0070.00316.41
7.3.10.0080.00716.61
7.3.00.0030.00616.48
7.2.330.0070.01116.56
7.2.320.0120.00616.64
7.2.310.0090.00716.58
7.2.300.0090.00916.51
7.2.290.0040.01416.26
7.2.250.0120.00615.17
7.2.240.0060.01514.96
7.2.230.0120.00314.88
7.2.220.0110.00015.13
7.2.210.0000.01415.03
7.2.200.0040.00715.01
7.2.190.0130.00314.73
7.2.180.0040.00715.02
7.2.170.0040.01115.05
7.2.60.0090.00616.45
7.2.00.0030.00619.52
7.1.330.0070.01015.41
7.1.320.0030.00915.52
7.1.310.0070.00715.61
7.1.300.0100.00315.67
7.1.290.0060.00915.68
7.1.280.0090.00015.91
7.1.270.0040.00415.68
7.1.260.0070.00715.43
7.1.200.0090.00315.55
7.1.100.0030.00717.91
7.1.70.0000.01117.18
7.1.60.0110.01520.03
7.1.50.0090.01216.83
7.1.00.0070.07322.30
7.0.200.0040.00716.82
7.0.60.0000.04319.96
7.0.50.0070.03717.76
7.0.40.0000.08720.15
7.0.30.0300.07320.21
7.0.20.0130.08020.19
7.0.10.0030.09020.21
7.0.00.0100.04720.25
5.6.280.0070.06721.15
5.6.210.0230.06320.55
5.6.200.0030.09018.18
5.6.190.0100.04720.61
5.6.180.0000.04320.52
5.6.170.0170.04320.47
5.6.160.0070.08320.42
5.6.150.0070.04018.12
5.6.140.0100.07018.14
5.6.130.0030.04318.15
5.6.120.0000.05720.98
5.6.110.0070.07720.97
5.6.100.0070.08720.96
5.6.90.0100.03321.06
5.6.80.0070.06320.37
5.5.350.0330.05320.44
5.5.340.0170.07317.99
5.5.330.0000.04320.43
5.5.320.0130.04020.27
5.5.310.0230.05320.32
5.5.300.0130.07317.95
5.5.290.0070.07717.98
5.5.280.0070.03720.80
5.5.270.0100.05020.67
5.5.260.0070.08320.88
5.5.250.0000.04720.71
5.5.240.0000.03320.23
5.4.450.0370.06719.30
5.4.440.0330.06719.56
5.4.430.0300.06719.54
5.4.420.0300.07319.46
5.4.410.0300.05319.05
5.4.400.0270.03318.88
5.4.390.0200.04318.98
5.4.380.0230.05319.22
5.4.370.0330.08019.22
5.4.360.0200.07719.22
5.4.350.0200.07319.22
5.4.340.0270.07019.20
5.4.320.0270.04319.08
5.4.310.0270.04319.22
5.4.300.0230.04719.24
5.4.290.0270.05719.22
5.4.280.0270.05019.16
5.4.270.0270.08019.21
5.4.260.0300.03318.95
5.4.250.0270.04018.87
5.4.240.0270.04318.87
5.4.230.0270.04019.19
5.4.220.0270.07019.23
5.4.210.0300.06019.08
5.4.200.0370.05719.14
5.4.190.0400.06019.08
5.4.180.0330.07018.98
5.4.170.0270.07719.25
5.4.160.0330.06718.83
5.4.150.0400.06719.13
5.4.140.0300.07316.47
5.4.130.0230.05016.57
5.4.120.0230.03716.33
5.4.110.0230.07716.61
5.4.100.0270.06316.61
5.4.90.0330.06716.46
5.4.80.0400.05016.54

preferences:
57.76 ms | 400 KiB | 5 Q