3v4l.org

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

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.0160.00016.63
8.3.60.0140.00716.50
8.3.50.0090.00918.10
8.3.40.0030.01018.74
8.3.30.0120.00318.49
8.3.20.0080.00018.73
8.3.10.0060.00320.40
8.3.00.0120.00319.11
8.2.180.0040.01816.38
8.2.170.0100.01022.96
8.2.160.0160.00320.57
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00618.60
8.2.110.0070.01020.39
8.2.100.0080.00417.59
8.2.90.0090.00019.05
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0030.00617.91
8.2.50.0040.00418.10
8.2.40.0000.00818.09
8.2.30.0090.00017.91
8.2.20.0060.00319.38
8.2.10.0040.00417.66
8.2.00.0040.00417.61
8.1.280.0140.00725.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00922.09
8.1.230.0080.00317.83
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0070.00018.86
8.1.160.0000.00718.82
8.1.150.0040.00418.48
8.1.140.0040.00417.42
8.1.130.0070.00017.81
8.1.120.0040.00417.36
8.1.110.0000.00817.37
8.1.100.0040.00417.25
8.1.90.0070.00017.41
8.1.80.0070.00017.34
8.1.70.0030.00317.34
8.1.60.0000.00817.57
8.1.50.0000.00817.29
8.1.40.0040.00417.30
8.1.30.0020.00517.54
8.1.20.0040.00417.56
8.1.10.0040.00417.33
8.1.00.0000.00817.20
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00818.40
8.0.270.0000.00717.05
8.0.260.0070.00016.74
8.0.250.0000.00816.87
8.0.240.0040.00416.88
8.0.230.0060.00016.91
8.0.220.0000.00716.84
8.0.210.0070.00016.82
8.0.200.0030.00316.94
8.0.190.0030.00316.88
8.0.180.0000.00716.72
8.0.170.0000.01016.86
8.0.160.0040.00316.82
8.0.150.0000.00716.75
8.0.140.0040.00416.81
8.0.130.0000.00613.24
8.0.120.0000.00716.66
8.0.110.0040.00416.80
8.0.100.0050.00216.88
8.0.90.0050.00216.86
8.0.80.0060.00916.71
8.0.70.0040.00416.88
8.0.60.0040.00416.75
8.0.50.0000.00816.77
8.0.30.0090.00916.81
8.0.20.0100.00817.01
8.0.10.0030.00516.82
8.0.00.0090.01016.78
7.4.330.0030.00312.98
7.4.320.0000.00616.36
7.4.300.0000.00716.37
7.4.290.0030.00316.54
7.4.280.0040.00316.44
7.4.270.0000.00716.43
7.4.260.0050.00013.23
7.4.250.0000.00816.46
7.4.240.0040.00416.50
7.4.230.0040.00416.50
7.4.220.0060.01716.39
7.4.210.0110.00616.47
7.4.200.0000.00716.43
7.4.190.0040.00416.67
7.4.160.0060.00916.55
7.4.150.0100.00716.45
7.4.140.0110.00716.42
7.4.130.0090.01216.39
7.4.120.0080.00816.34
7.4.110.0110.01116.41
7.4.100.0070.01016.20
7.4.90.0090.00916.56
7.4.80.0140.00319.39
7.4.70.0100.00716.36
7.4.60.0090.00916.51
7.4.50.0130.00016.42
7.4.40.0030.00916.56
7.4.30.0070.01416.33
7.4.00.0080.00414.93
7.3.330.0000.00613.20
7.3.320.0060.00013.13
7.3.310.0060.00316.25
7.3.300.0050.00216.10
7.3.290.0090.01216.29
7.3.280.0080.01116.23
7.3.270.0090.00916.50
7.3.260.0110.01016.35
7.3.250.0110.00716.48
7.3.240.0000.01716.41
7.3.230.0100.00716.21
7.3.210.0100.00716.50
7.3.200.0060.01016.28
7.3.190.0040.01116.25
7.3.180.0150.00316.60
7.3.170.0130.00316.29
7.3.160.0060.00916.43
7.3.120.0090.00614.66
7.2.330.0070.01016.60
7.2.320.0090.01316.27
7.2.310.0150.00716.49
7.2.300.0100.00716.27
7.2.290.0070.01016.38
7.2.00.0040.00419.23
7.1.100.0030.01018.15
7.1.70.0040.00717.03
7.1.60.0000.02419.40
7.1.50.0060.01316.77
7.1.00.0000.03722.44
7.0.200.0130.01014.80
7.0.140.0000.07722.00
7.0.120.0130.06722.19
7.0.60.0170.07319.94
7.0.50.0070.05717.88
7.0.40.0070.07317.71
7.0.30.0030.05017.76
7.0.20.0070.06317.75
7.0.10.0030.05017.75
7.0.00.0030.04317.71
5.6.280.0030.07020.86
5.6.210.0070.08320.72
5.6.200.0030.06018.20
5.6.190.0030.07718.25
5.6.180.0130.07018.24
5.6.170.0070.06018.22
5.6.160.0070.07718.16
5.6.150.0130.04318.12
5.6.140.0000.05718.21
5.6.130.0070.04018.26
5.6.120.0030.08318.16
5.6.110.0070.05318.24
5.6.100.0070.04318.14
5.6.90.0130.04318.15
5.6.80.0070.06317.59
5.6.70.0030.07017.57
5.6.60.0130.05717.55
5.6.50.0030.06317.51
5.6.40.0030.05017.47
5.6.30.0030.08017.50
5.6.20.0130.07717.54
5.6.10.0100.08317.51
5.6.00.0030.05317.46
5.5.350.0200.07020.41
5.5.340.0100.07717.95
5.5.330.0130.07317.94
5.5.320.0100.05017.99
5.5.310.0030.09017.99
5.5.300.0030.05018.07
5.5.290.0100.05317.95
5.5.280.0030.07717.95
5.5.270.0000.05017.95
5.5.260.0030.05017.94
5.5.250.0100.06317.86
5.5.240.0030.07317.42
5.5.230.0100.07317.34
5.5.220.0070.06717.33
5.5.210.0070.06717.45
5.5.200.0130.03717.31
5.5.190.0070.08017.39
5.5.180.0030.08317.44
5.5.160.0030.07717.30
5.5.150.0070.07317.30
5.5.140.0000.08017.34
5.5.130.0070.07717.33
5.5.120.0070.07717.34
5.5.110.0100.07317.38
5.5.100.0100.06017.17
5.5.90.0100.06317.23
5.5.80.0100.07017.30
5.5.70.0070.05017.31
5.5.60.0130.04717.18
5.5.50.0070.04017.31
5.5.40.0030.07017.29
5.5.30.0030.05017.32
5.5.20.0070.07717.32
5.5.10.0070.06317.22
5.5.00.0070.04317.20
5.4.450.0070.04319.45
5.4.440.0170.05319.46
5.4.430.0030.06319.31
5.4.420.0070.03719.34
5.4.410.0100.04319.32
5.4.400.0000.08319.04
5.4.390.0030.08319.05
5.4.380.0030.08319.03
5.4.370.0030.08019.03
5.4.360.0100.08019.13
5.4.350.0030.06719.14
5.4.340.0070.04319.03
5.4.320.0070.05019.10
5.4.310.0070.07718.89
5.4.300.0130.07718.98
5.4.290.0070.05719.03
5.4.280.0100.07719.09
5.4.270.0000.05319.26
5.4.260.0100.07319.27
5.4.250.0070.07319.27
5.4.240.0100.07319.02
5.4.230.0070.06719.11
5.4.220.0130.06719.02
5.4.210.0130.04019.05
5.4.200.0130.05719.04
5.4.190.0070.05718.88
5.4.180.0130.06019.14
5.4.170.0070.04719.02
5.4.160.0170.07019.11
5.4.150.0070.06319.01
5.4.140.0070.04716.43
5.4.130.0170.05016.38
5.4.120.0070.07316.37
5.4.110.0030.08016.53
5.4.100.0100.07016.48
5.4.90.0170.05016.54
5.4.80.0100.07716.41
5.4.70.0000.07316.49
5.4.60.0000.05316.40
5.4.50.0100.03716.21
5.4.40.0070.07716.62
5.4.30.0170.05716.28
5.4.20.0030.07316.45
5.4.10.0070.07716.55
5.4.00.0100.05315.84
5.3.290.0030.07714.63
5.3.280.0100.06014.55
5.3.270.0070.05714.68
5.3.260.0100.07314.61
5.3.250.0030.05014.64
5.3.240.0030.07714.61
5.3.230.0000.07314.60
5.3.220.0000.05314.60
5.3.210.0070.06014.55
5.3.200.0130.03014.61
5.3.190.0130.07314.58
5.3.180.0070.05714.56
5.3.170.0030.07314.77
5.3.160.0070.06714.58
5.3.150.0070.07714.51
5.3.140.0030.08014.54
5.3.130.0070.07714.75
5.3.120.0030.04014.58
5.3.110.0100.07314.61
5.3.100.0100.06714.13
5.3.90.0070.07714.11
5.3.80.0030.07714.04
5.3.70.0070.07013.90
5.3.60.0100.03713.89
5.3.50.0030.06313.98
5.3.40.0030.06013.96
5.3.30.0000.04013.90
5.3.20.0030.04713.73
5.3.10.0070.07713.63
5.3.00.0100.07313.63
5.2.170.0030.06311.15
5.2.160.0130.05311.20
5.2.150.0030.03311.24
5.2.140.0070.04710.98
5.2.130.0100.05711.06
5.2.120.0000.04011.08
5.2.110.0030.06311.17
5.2.100.0070.04710.94
5.2.90.0070.04310.94
5.2.80.0000.06711.12
5.2.70.0030.06311.12
5.2.60.0000.04711.26
5.2.50.0070.05011.06
5.2.40.0070.03010.98
5.2.30.0030.04010.85
5.2.20.0000.03311.05
5.2.10.0100.04310.75
5.2.00.0070.03010.78
5.1.60.0070.0379.94
5.1.50.0000.06010.05
5.1.40.0030.0579.91
5.1.30.0000.06310.34
5.1.20.0070.05310.37
5.1.10.0030.03010.11
5.1.00.0030.05010.01
5.0.50.0000.0238.57
5.0.40.0070.0278.47
5.0.30.0030.0678.18
5.0.20.0000.0308.17
5.0.10.0000.0307.99
5.0.00.0000.0708.12
4.4.90.0000.0377.83
4.4.80.0000.0377.83
4.4.70.0030.0277.83
4.4.60.0030.0337.83
4.4.50.0000.0337.83
4.4.40.0030.0377.83
4.4.30.0000.0307.83
4.4.20.0000.0307.83
4.4.10.0030.0137.83
4.4.00.0000.0277.83
4.3.110.0070.0277.83
4.3.100.0100.0277.83
4.3.90.0000.0337.83
4.3.80.0100.0437.83
4.3.70.0000.0277.83
4.3.60.0030.0337.83
4.3.50.0000.0177.83
4.3.40.0000.0237.83
4.3.30.0000.0207.83
4.3.20.0000.0177.83
4.3.10.0000.0137.83
4.3.00.0030.0137.83

preferences:
49.53 ms | 401 KiB | 5 Q