3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface truc { const OK = 'OK'; } class B implements truc { 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.70.0090.01218.30
8.3.60.0210.00016.75
8.3.50.0100.00721.01
8.3.40.0090.00619.02
8.3.30.0140.00018.58
8.3.20.0040.00420.07
8.3.10.0050.00323.54
8.3.00.0080.00019.80
8.2.180.0110.00716.63
8.2.170.0100.01022.96
8.2.160.0100.00720.52
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00317.50
8.2.110.0030.00622.30
8.2.100.0060.00617.63
8.2.90.0080.00018.92
8.2.80.0000.00817.97
8.2.70.0000.00817.34
8.2.60.0030.00517.80
8.2.50.0030.00918.07
8.2.40.0040.00419.38
8.2.30.0040.00419.79
8.2.20.0040.00417.48
8.2.10.0050.00317.94
8.2.00.0040.00417.88
8.1.280.0210.00025.92
8.1.270.0100.01020.26
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.42
8.1.230.0080.00417.42
8.1.220.0000.00717.74
8.1.210.0000.00918.77
8.1.200.0000.01017.23
8.1.190.0060.00317.10
8.1.180.0030.00518.10
8.1.170.0090.00018.64
8.1.160.0000.00723.81
8.1.150.0040.00418.82
8.1.140.0040.00417.38
8.1.130.0050.00317.65
8.1.120.0070.00017.41
8.1.110.0070.00017.29
8.1.100.0030.00517.45
8.1.90.0050.00317.38
8.1.80.0060.00317.37
8.1.70.0000.00717.26
8.1.60.0100.00017.41
8.1.50.0060.00317.35
8.1.40.0040.00417.34
8.1.30.0060.00617.48
8.1.20.0080.00017.41
8.1.10.0050.00317.47
8.1.00.0000.00717.35
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.30
8.0.270.0000.00717.22
8.0.260.0030.00317.12
8.0.250.0040.00416.98
8.0.240.0000.00716.84
8.0.230.0040.00416.96
8.0.220.0050.00316.80
8.0.210.0050.00316.89
8.0.200.0000.00616.98
8.0.190.0040.00416.91
8.0.180.0070.00016.91
8.0.170.0040.00416.84
8.0.160.0030.00316.75
8.0.150.0000.00716.93
8.0.140.0060.00316.82
8.0.130.0050.00213.30
8.0.120.0000.00816.76
8.0.110.0040.00416.88
8.0.100.0020.00516.71
8.0.90.0000.00716.79
8.0.80.0040.01116.87
8.0.70.0050.00216.84
8.0.60.0000.00716.90
8.0.50.0000.00716.77
8.0.30.0050.01317.04
8.0.20.0130.00517.40
8.0.10.0040.00416.80
8.0.00.0110.00616.62
7.4.330.0050.00015.08
7.4.320.0030.00316.52
7.4.300.0060.00016.45
7.4.290.0070.00016.57
7.4.280.0000.00816.39
7.4.270.0080.00316.57
7.4.260.0060.00316.43
7.4.250.0040.00416.43
7.4.240.0070.00016.39
7.4.230.0040.00416.53
7.4.220.0030.01416.37
7.4.210.0030.01516.35
7.4.200.0070.00016.42
7.4.160.0110.00516.26
7.4.150.0070.01117.40
7.4.140.0090.01417.86
7.4.130.0100.00716.49
7.4.120.0070.00916.59
7.4.110.0070.01016.39
7.4.100.0070.01116.48
7.4.90.0120.00616.32
7.4.80.0100.01019.39
7.4.70.0080.01116.37
7.4.60.0100.00716.35
7.4.50.0060.00316.57
7.4.40.0060.01516.40
7.4.30.0120.00616.39
7.4.00.0030.01214.71
7.3.330.0030.00313.19
7.3.320.0050.00013.21
7.3.310.0040.00416.13
7.3.300.0070.00016.15
7.3.290.0100.00816.25
7.3.280.0060.01016.28
7.3.270.0100.00717.40
7.3.260.0060.01616.57
7.3.250.0090.00816.29
7.3.240.0070.01016.53
7.3.230.0130.00716.39
7.3.210.0140.00316.60
7.3.200.0060.01216.52
7.3.190.0100.00616.55
7.3.180.0080.00816.25
7.3.170.0190.00316.37
7.3.160.0050.01416.54
7.3.00.0030.00716.51
7.2.330.0110.00916.48
7.2.320.0070.01016.33
7.2.310.0100.00616.20
7.2.300.0130.00316.54
7.2.290.0060.01216.38
7.2.130.0070.00716.59
7.2.120.0030.01016.63
7.2.110.0030.01016.52
7.2.100.0030.01016.68
7.2.90.0070.00716.92
7.2.80.0040.00416.75
7.2.70.0030.01016.92
7.2.60.0080.00516.76
7.2.50.0060.00617.01
7.2.40.0030.00716.74
7.2.30.0060.00616.86
7.2.20.0040.01216.54
7.2.10.0150.00316.41
7.2.00.0020.00917.92
7.1.250.0090.00315.69
7.1.240.0060.00615.86
7.1.230.0070.00715.77
7.1.220.0070.00015.63
7.1.210.0080.00315.55
7.1.200.0020.01015.45
7.1.190.0030.00715.61
7.1.180.0060.00615.64
7.1.170.0030.01015.51
7.1.160.0000.01015.55
7.1.150.0040.00815.41
7.1.140.0040.00715.49
7.1.130.0100.00015.45
7.1.120.0150.00615.39
7.1.110.0040.00715.40
7.1.100.0040.00716.71
7.1.90.0000.01415.71
7.1.80.0040.01115.48
7.1.70.0060.00316.43
7.1.60.0080.01017.75
7.1.50.0050.01416.03
7.1.40.0040.00815.42
7.1.30.0080.00315.56
7.1.20.0070.00415.83
7.1.10.0070.00415.68
7.1.00.0020.04518.99
7.0.330.0050.00315.16
7.0.320.0040.00815.46
7.0.310.0100.00315.01
7.0.300.0040.00415.25
7.0.290.0030.01015.25
7.0.280.0040.01115.27
7.0.270.0000.01015.44
7.0.260.0040.00815.17
7.0.250.0100.00015.34
7.0.240.0040.00715.06
7.0.230.0060.00615.34
7.0.220.0000.01015.34
7.0.210.0070.00315.37
7.0.200.0020.00715.92
7.0.190.0070.00315.36
7.0.180.0070.00315.40
7.0.170.0030.00614.89
7.0.160.0120.00315.40
7.0.150.0030.00715.47
7.0.140.0060.00315.04
7.0.130.0070.00715.23
7.0.120.0060.00615.22
7.0.110.0080.00615.19
7.0.100.0000.01215.07
7.0.90.0030.01015.32
7.0.80.0000.01014.98
7.0.70.0050.03518.60
7.0.60.0020.03318.53
7.0.50.0040.04218.68
7.0.40.0090.03016.58
7.0.30.0050.04516.65
7.0.20.0050.04216.62
7.0.10.0120.03816.72
7.0.00.0020.04516.65
5.6.380.0030.00614.38
5.6.370.0040.01113.92
5.6.360.0100.00314.11
5.6.350.0110.00714.26
5.6.340.0040.00414.13
5.6.330.0070.00414.46
5.6.320.0080.00814.05
5.6.310.0030.01414.05
5.6.300.0000.01014.28
5.6.290.0040.00714.30
5.6.280.0020.03217.60
5.6.270.0040.00414.36
5.6.260.0080.00414.21
5.6.250.0030.00614.03
5.6.240.0060.00614.05
5.6.230.0040.00714.24
5.6.220.0050.03117.33
5.6.210.0070.03117.40
5.6.200.0000.04417.57
5.6.190.0080.03817.64
5.6.180.0050.04517.70
5.6.170.0050.04217.55
5.6.160.0050.02717.51
5.6.150.0030.04717.48
5.6.140.0030.04517.67
5.6.130.0020.04717.61
5.6.120.0020.03417.67
5.6.110.0050.04717.54
5.6.100.0080.03617.51
5.6.90.0020.04817.62
5.6.80.0070.03317.22
5.6.70.0020.04517.40
5.6.60.0080.04017.29
5.6.50.0050.04217.14
5.6.40.0050.03317.19
5.6.30.0040.04317.22
5.6.20.0000.03017.28
5.6.10.0020.03017.20
5.6.00.0000.04217.14
5.5.380.0000.00611.60
5.5.370.0000.00911.60
5.5.360.0040.04815.97
5.5.350.0030.04316.03
5.5.340.0050.03016.23
5.5.330.0070.04416.24
5.5.320.0020.03216.26
5.5.310.0000.03816.24
5.5.300.0030.04416.18
5.5.290.0070.03816.16
5.5.280.0060.04016.24
5.5.270.0020.04716.11
5.5.260.0070.04016.15
5.5.250.0000.04516.02
5.5.240.0030.04115.95
5.5.230.0030.03215.85
5.5.220.0120.03415.93
5.5.210.0050.02815.94
5.5.200.0020.04715.84
5.5.190.0000.04415.87
5.5.180.0070.04015.85
5.5.170.0090.00011.60
5.5.160.0070.02215.92
5.5.150.0040.02415.90
5.5.140.0040.02015.90
5.5.130.0020.03915.91
5.5.120.0000.03015.93
5.5.110.0020.02315.90
5.5.100.0040.02315.85
5.5.90.0020.02915.77
5.5.80.0000.02615.84
5.5.70.0020.03415.87
5.5.60.0050.01915.87
5.5.50.0020.02215.76
5.5.40.0080.01615.84
5.5.30.0000.02015.82
5.5.20.0020.02215.85
5.5.10.0030.02215.84
5.5.00.0020.02415.82
5.4.450.0030.03215.39
5.4.440.0030.03315.58
5.4.430.0020.04415.55
5.4.420.0020.04615.48
5.4.410.0050.04215.42
5.4.400.0020.04115.39
5.4.390.0050.03415.32
5.4.380.0020.04415.24
5.4.370.0040.04015.32
5.4.360.0020.04615.32
5.4.350.0000.04215.37
5.4.340.0050.04315.27
5.4.330.0000.00611.60
5.4.320.0020.02215.38
5.4.310.0050.01815.41
5.4.300.0050.01815.28
5.4.290.0030.03715.36
5.4.280.0040.02015.37
5.4.270.0050.01815.22
5.4.260.0010.02315.22
5.4.250.0020.03115.37
5.4.240.0040.02415.32
5.4.230.0020.02315.34
5.4.220.0020.03515.32
5.4.210.0020.03015.32
5.4.200.0040.02115.38
5.4.190.0020.02015.23
5.4.180.0020.02215.34
5.4.170.0000.02215.27
5.4.160.0000.02415.35
5.4.150.0030.02115.22
5.4.140.0020.02314.01
5.4.130.0020.04114.03
5.4.120.0020.02114.01
5.4.110.0070.02214.00
5.4.100.0020.01914.04
5.4.90.0000.02313.96
5.4.80.0030.02113.93
5.4.70.0050.01813.96
5.4.60.0030.02814.01
5.4.50.0010.01814.00
5.4.40.0020.01814.01
5.4.30.0030.03014.02
5.4.20.0020.02014.00
5.4.10.0050.01513.96
5.4.00.0040.02713.73

preferences:
52.44 ms | 401 KiB | 5 Q