3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const DEFA = 'DEFA'; const DEFB = self::DEFA; }

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.0130.00718.43
8.3.50.0230.00721.20
8.3.40.0000.01418.73
8.3.30.0140.00022.11
8.3.20.0000.00720.12
8.3.10.0080.00022.09
8.3.00.0000.00822.46
8.2.180.0090.00616.50
8.2.170.0060.01222.96
8.2.160.0060.00921.96
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00820.65
8.2.110.0040.00422.25
8.2.100.0090.00317.59
8.2.90.0040.00417.50
8.2.80.0000.00817.97
8.2.70.0050.00517.80
8.2.60.0030.00617.80
8.2.50.0040.00418.10
8.2.40.0040.00420.58
8.2.30.0040.00419.42
8.2.20.0040.00417.41
8.2.10.0040.00417.43
8.2.00.0080.00017.63
8.1.280.0090.00625.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0070.00419.15
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00718.71
8.1.150.0000.00718.50
8.1.140.0040.00417.31
8.1.130.0030.00317.61
8.1.120.0000.00717.23
8.1.110.0040.00717.33
8.1.100.0070.00017.25
8.1.90.0000.00717.22
8.1.80.0000.00717.23
8.1.70.0080.00017.28
8.1.60.0040.00417.41
8.1.50.0070.00017.41
8.1.40.0000.00917.40
8.1.30.0000.00817.42
8.1.20.0000.00817.51
8.1.10.0000.00817.39
8.1.00.0000.00817.35
8.0.300.0000.00719.62
8.0.290.0000.00816.63
8.0.280.0070.00018.30
8.0.270.0000.00717.08
8.0.260.0040.00416.68
8.0.250.0030.00316.80
8.0.240.0070.00016.79
8.0.230.0040.00416.72
8.0.220.0030.00316.75
8.0.210.0040.00416.68
8.0.200.0000.00716.82
8.0.190.0050.00316.76
8.0.180.0000.00716.80
8.0.170.0040.00416.75
8.0.160.0040.00316.80
8.0.150.0040.00416.74
8.0.140.0060.00316.78
8.0.130.0050.00013.16
8.0.120.0040.00416.61
8.0.110.0030.00316.75
8.0.100.0040.00416.64
8.0.90.0040.00416.78
8.0.80.0120.00316.79
8.0.70.0030.00316.65
8.0.60.0020.00516.62
8.0.50.0060.00316.63
8.0.30.0120.00916.72
8.0.20.0110.00817.40
8.0.10.0000.00716.65
8.0.00.0120.00916.71
7.4.330.0000.00515.00
7.4.320.0000.00616.29
7.4.300.0040.00416.37
7.4.290.0070.00016.35
7.4.280.0030.00316.40
7.4.270.0070.00016.27
7.4.260.0030.00313.14
7.4.250.0040.00416.30
7.4.240.0000.00716.45
7.4.230.0030.00316.36
7.4.220.0150.00516.46
7.4.210.0060.01016.43
7.4.200.0000.00716.56
7.4.190.0030.00316.50
7.4.160.0130.01016.29
7.4.150.0110.00717.40
7.4.140.0110.00617.86
7.4.130.0050.01216.46
7.4.120.0140.00316.34
7.4.110.0100.01016.41
7.4.100.0140.00316.37
7.4.90.0100.01016.41
7.4.80.0090.00919.39
7.4.70.0080.00816.32
7.4.60.0140.00416.30
7.4.50.0060.00316.18
7.4.40.0000.01522.77
7.4.30.0060.00916.42
7.4.00.0100.00714.79
7.3.330.0030.00313.04
7.3.320.0000.00513.16
7.3.310.0000.00616.12
7.3.300.0030.00316.00
7.3.290.0030.01416.12
7.3.280.0100.00816.11
7.3.270.0070.01017.40
7.3.260.0180.00616.44
7.3.250.0130.00816.17
7.3.240.0100.00616.23
7.3.230.0100.00716.39
7.3.210.0160.00016.33
7.3.200.0100.01419.39
7.3.190.0090.01516.43
7.3.180.0030.01316.25
7.3.170.0060.01116.27
7.3.160.0140.00716.36
7.3.120.0000.01614.64
7.2.330.0150.00416.15
7.2.320.0030.01416.50
7.2.310.0140.00616.21
7.2.300.0140.00616.46
7.2.290.0070.01016.63
7.2.00.0070.01019.18
7.1.100.0040.00817.59
7.1.70.0070.00316.91
7.1.60.0100.01419.21
7.1.50.0100.02034.77
7.1.00.0000.05022.48
7.0.200.0250.00414.80
7.0.140.0000.07321.97
7.0.60.0170.07719.85
7.0.50.0130.08017.87
7.0.40.0070.04020.04
7.0.30.0230.04320.08
7.0.20.0430.05320.26
7.0.10.0100.07720.08
7.0.00.0030.09320.20
5.6.280.0100.06720.81
5.6.210.0100.06320.72
5.6.200.0130.07718.19
5.6.190.0130.07020.42
5.6.180.0300.07020.41
5.6.170.0270.04320.47
5.6.160.0130.07020.51
5.6.150.0100.07718.18
5.6.140.0130.08018.17
5.6.130.0170.07318.27
5.6.120.0100.03720.98
5.6.110.0030.04320.95
5.6.100.0100.05320.95
5.6.90.0100.07721.02
5.6.80.0070.06020.52
5.6.70.4400.03720.36
5.5.350.0100.09020.32
5.5.340.0070.08317.95
5.5.330.0070.08320.28
5.5.320.0330.07320.42
5.5.310.0330.07320.24
5.5.300.0130.07317.93
5.5.290.0070.05717.97
5.5.280.0070.08020.87
5.5.270.0000.06320.64
5.5.260.0100.08320.96
5.5.250.0070.06320.49
5.5.240.0000.03320.25
5.4.450.0070.06319.60
5.4.440.0800.06719.57
5.4.430.0100.05319.31
5.4.420.0170.04719.29
5.4.410.0100.06719.25
5.4.400.0370.07718.49
5.4.390.0730.04718.77
5.4.380.0270.05318.68
5.4.370.0400.05018.60
5.4.360.0270.05018.70
5.4.350.0180.09512.01
5.4.340.0070.05412.01
5.4.320.0090.04712.49
5.4.310.0090.03512.48
5.4.300.0060.03712.49
5.4.290.0040.04112.48
5.4.280.0110.04312.38
5.4.270.0070.03812.39
5.4.260.0050.05612.38
5.4.250.0060.04312.39
5.4.240.0120.04612.39
5.4.230.0040.05612.38
5.4.220.0070.04212.38
5.4.210.0070.03712.38
5.4.200.0050.03912.38
5.4.190.0080.03412.38
5.4.180.0040.03812.38
5.4.170.0160.05012.38
5.4.160.0090.04312.38
5.4.150.0090.04212.37
5.4.140.0090.04112.05
5.4.130.0110.03812.04
5.4.120.0120.04011.99
5.4.110.0110.04311.99
5.4.100.0190.05311.99
5.4.90.0130.04211.98
5.4.80.0150.05011.98
5.4.70.0120.04011.98
5.4.60.0120.04111.98
5.4.50.0190.05411.98
5.4.40.0110.04211.96
5.4.30.0150.04211.96
5.4.20.0140.03811.97
5.4.10.0110.04011.97
5.4.00.0110.04111.45
5.3.290.0050.03912.80
5.3.280.0110.03412.71
5.3.270.0110.04312.72
5.3.260.0110.05612.72
5.3.250.0130.03812.72
5.3.240.0140.03812.72
5.3.230.0110.04412.71
5.3.220.0130.04212.68
5.3.210.0140.04312.68
5.3.200.0210.05712.68
5.3.190.0160.06012.68
5.3.180.0160.04212.67
5.3.170.0110.04412.67
5.3.160.0160.04412.67
5.3.150.0140.04512.67
5.3.140.0170.05812.66
5.3.130.0170.06012.66
5.3.120.0120.04312.66
5.3.110.0110.04712.66
5.3.100.0120.04312.12
5.3.90.0150.03812.09
5.3.80.0150.04112.08
5.3.70.0140.04112.08
5.3.60.0130.04312.06
5.3.50.0180.05712.00
5.3.40.0120.04312.00
5.3.30.0140.04611.96
5.3.20.0110.04211.74
5.3.10.0130.03811.70
5.3.00.0130.05111.69

preferences:
43.5 ms | 401 KiB | 5 Q