3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { const a = b::c; const b = 1; } class b { const c = 1; const d = a::b; } var_dump(A::a, A::b, B::c, B::d);

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.0140.00716.50
8.3.50.0130.00421.92
8.3.40.0030.01018.71
8.3.30.0070.00719.12
8.3.20.0070.00020.24
8.3.10.0080.00023.52
8.3.00.0080.00019.79
8.2.180.0110.00325.92
8.2.170.0160.00322.96
8.2.160.0060.00922.10
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0100.01019.06
8.2.100.0080.00317.63
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0120.00017.46
8.2.60.0030.00617.68
8.2.50.0030.00518.07
8.2.40.0000.00818.22
8.2.30.0000.00818.23
8.2.20.0070.00017.63
8.2.10.0040.00417.94
8.2.00.0000.00817.62
8.1.280.0150.00025.92
8.1.270.0000.00823.85
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00722.14
8.1.230.0110.00020.78
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0020.00517.22
8.1.180.0000.00718.10
8.1.170.0100.00018.50
8.1.160.0000.00822.07
8.1.150.0000.00818.86
8.1.140.0040.00417.29
8.1.130.0030.00517.50
8.1.120.0000.00717.38
8.1.110.0050.00317.32
8.1.100.0000.00917.39
8.1.90.0070.00017.30
8.1.80.0020.00517.42
8.1.70.0040.00417.34
8.1.60.0070.00417.54
8.1.50.0000.00817.36
8.1.40.0040.00417.41
8.1.30.0040.00417.49
8.1.20.0040.00417.54
8.1.10.0050.00217.41
8.1.00.0000.00717.30
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.37
8.0.270.0000.00717.15
8.0.260.0000.00616.70
8.0.250.0000.00816.89
8.0.240.0070.00016.76
8.0.230.0000.00716.84
8.0.220.0040.00416.70
8.0.210.0000.00616.86
8.0.200.0040.00416.93
8.0.190.0050.00316.91
8.0.180.0040.00416.87
8.0.170.0000.00716.79
8.0.160.0050.00316.93
8.0.150.0070.00016.77
8.0.140.0040.00416.70
8.0.130.0030.00313.21
8.0.120.0040.00416.75
8.0.110.0000.00716.82
8.0.100.0070.00016.78
8.0.90.0070.00016.79
8.0.80.0120.00316.80
8.0.70.0030.00516.63
8.0.60.0000.00716.72
8.0.50.0040.00416.78
8.0.30.0150.00817.10
8.0.20.0130.00517.40
8.0.10.0040.00416.77
8.0.00.0140.00316.70
7.4.330.0000.00515.03
7.4.320.0070.00016.50
7.4.300.0030.00316.55
7.4.290.0030.00316.38
7.4.280.0040.00316.44
7.4.270.0030.00316.45
7.4.260.0030.00616.43
7.4.250.0000.00816.56
7.4.240.0040.00316.42
7.4.230.0000.00716.64
7.4.220.0140.01416.60
7.4.210.0090.00616.46
7.4.200.0030.00316.52
7.4.160.0040.01116.45
7.4.150.0130.00317.40
7.4.140.0140.00317.86
7.4.130.0070.01016.41
7.4.120.0090.00916.46
7.4.110.0060.01216.50
7.4.100.0090.00916.61
7.4.90.0070.01116.62
7.4.80.0180.00019.39
7.4.70.0100.00616.59
7.4.60.0060.00916.29
7.4.50.0000.00516.37
7.4.40.0130.00316.19
7.4.30.0060.01016.53
7.4.00.0070.01014.89
7.3.330.0050.00013.20
7.3.320.0000.00513.23
7.3.310.0060.00016.09
7.3.300.0000.00716.09
7.3.290.0080.00516.22
7.3.280.0100.00916.17
7.3.270.0120.00617.40
7.3.260.0150.00616.49
7.3.250.0160.00516.46
7.3.240.0150.00616.32
7.3.230.0060.01316.39
7.3.210.0050.01116.51
7.3.200.0100.01019.39
7.3.190.0030.01316.50
7.3.180.0080.00816.43
7.3.170.0090.01216.27
7.3.160.0000.01516.43
7.3.120.0000.01214.45
7.2.330.0100.01316.64
7.2.320.0070.01016.62
7.2.310.0100.00716.25
7.2.300.0070.01316.58
7.2.290.0110.01116.56
7.2.60.0000.01516.71
7.2.00.0030.01019.02
7.1.200.0030.00915.43
7.1.100.0000.01417.75
7.1.70.0000.01016.98
7.1.60.0070.01719.70
7.1.50.0070.01716.83
7.1.00.0030.07722.42
7.0.200.0000.01016.75
7.0.140.0070.07022.15
7.0.60.0030.08319.78
7.0.50.0070.04017.90
7.0.40.0030.09320.26
7.0.30.0400.07720.23
7.0.20.0130.06020.30
7.0.10.0270.04720.19
7.0.00.0070.06320.24
5.6.280.0000.07721.17
5.6.210.0070.06320.68
5.6.200.0170.05718.16
5.6.190.0100.03720.39
5.6.180.0270.05320.61
5.6.170.0270.04320.39
5.6.160.0100.08320.51
5.6.150.0100.07718.27
5.6.140.0070.03718.16
5.6.130.0130.07718.17
5.6.120.0170.07020.99
5.6.110.0070.04321.00
5.6.100.0100.08021.13
5.6.90.0200.06721.00
5.6.80.0070.08020.43
5.6.70.0330.07020.36
5.5.350.0200.08020.52
5.5.340.0070.08018.03
5.5.330.0130.07720.27
5.5.320.0030.08720.30
5.5.310.0170.04020.35
5.5.300.0030.04018.08
5.5.290.0030.05017.91
5.5.280.0200.07720.65
5.5.270.0100.08320.76
5.5.260.0030.04020.64
5.5.250.0100.04020.49
5.5.240.0100.07320.32
5.4.450.0130.07719.45
5.4.440.0100.08019.47
5.4.430.0070.06319.47
5.4.420.0030.04719.39
5.4.410.0070.05719.36
5.4.400.0070.06018.86
5.4.390.0030.07319.27
5.4.380.0130.06719.08
5.4.370.0100.06719.24
5.4.360.0000.05719.14
5.4.350.0170.05719.09
5.4.340.0000.07719.15
5.4.320.0170.05719.14
5.4.310.0100.05019.20
5.4.300.0100.06318.97
5.4.290.0100.04019.14
5.4.280.0070.08019.25
5.4.270.0070.04319.23
5.4.260.0070.07718.92
5.4.250.0170.06319.14
5.4.240.0230.05018.91
5.4.230.0100.07319.14
5.4.220.0070.03719.14
5.4.210.0000.04719.24
5.4.200.0000.04019.16
5.4.190.0000.04018.84
5.4.180.0030.03719.06
5.4.170.0100.03319.10
5.4.160.0030.03718.82
5.4.150.0130.03319.18
5.4.140.0100.03716.36
5.4.130.0000.03716.36
5.4.120.0030.03716.45
5.4.110.0070.03316.46
5.4.100.0030.03716.72
5.4.90.0000.03716.44
5.4.80.0130.02316.42
5.4.70.0000.03716.52
5.4.60.0030.03316.42
5.4.50.0170.02316.41
5.4.40.0030.03316.36
5.4.30.0030.05316.52
5.4.20.0030.03316.38
5.4.10.0000.04016.38
5.4.00.0000.04715.96
5.3.290.0070.08014.57
5.3.280.0000.04314.64
5.3.270.0070.03314.49
5.3.260.0030.03714.63
5.3.250.0030.03714.61
5.3.240.0070.03314.74
5.3.230.0000.04014.73
5.3.220.0030.03714.47
5.3.210.0000.04014.71
5.3.200.0000.03714.61
5.3.190.0030.03714.55
5.3.180.0000.03714.54
5.3.170.0030.04314.56
5.3.160.0070.03314.70
5.3.150.0030.03314.44
5.3.140.0030.03714.55
5.3.130.0000.04014.61
5.3.120.0030.03714.59
5.3.110.0000.04014.57
5.3.100.0030.03314.06
5.3.90.0000.03714.07
5.3.80.0030.03714.16
5.3.70.0030.03714.17
5.3.60.0030.03314.04
5.3.50.0030.03713.83
5.3.40.0000.04014.09
5.3.30.0030.03713.87
5.3.20.0100.07013.63
5.3.10.0100.06013.65
5.3.00.0030.07313.55
5.2.170.0030.02711.21
5.2.160.0030.02711.30
5.2.150.0030.02711.14
5.2.140.0000.05011.21
5.2.130.0000.04011.11
5.2.120.0000.03311.10
5.2.110.0030.06311.24
5.2.100.0000.06311.13
5.2.90.0070.03711.15
5.2.80.0070.06011.05
5.2.70.0030.05311.05
5.2.60.0030.02711.03
5.2.50.0000.03010.93
5.2.40.0000.03010.95
5.2.30.0030.06011.11
5.2.20.0000.05010.95
5.2.10.0030.03310.85
5.2.00.0070.04310.71
5.1.60.0070.04010.19
5.1.50.0070.05310.19
5.1.40.0030.05310.19
5.1.30.0070.05710.48
5.1.20.0100.04310.34
5.1.10.0070.02710.19
5.1.00.0000.04010.19
5.0.50.0000.02310.19
5.0.40.0070.04710.19
5.0.30.0000.04010.19
5.0.20.0070.04010.19
5.0.10.0000.02710.19
5.0.00.0070.02710.19
4.4.90.0000.01710.19
4.4.80.0030.01710.19
4.4.70.0000.03310.19
4.4.60.0000.02310.19
4.4.50.0070.03310.19
4.4.40.0030.04710.19
4.4.30.0030.03710.19
4.4.20.0100.01310.19
4.4.10.0030.02010.19
4.4.00.0070.04710.19
4.3.110.0070.03710.19
4.3.100.0030.03310.19
4.3.90.0000.03710.19
4.3.80.0030.02710.19
4.3.70.0000.01710.19
4.3.60.0070.02010.19
4.3.50.0030.01710.19
4.3.40.0030.02710.19
4.3.30.0070.03310.19
4.3.20.0000.02310.19
4.3.10.0000.02010.19
4.3.00.0000.03710.19

preferences:
41.34 ms | 401 KiB | 5 Q