3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = [1, 2, 3]; var_dump(A); class B { const A = A; } B::A[3] = 4; var_dump(B::A);

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)
5.4.340.4000.03719.14
5.4.320.4070.03719.04
5.4.310.4500.03719.19
5.4.300.0100.06019.05
5.4.290.0070.06318.85
5.4.280.2370.06019.15
5.4.270.4030.04319.13
5.4.260.4030.03319.13
5.4.250.3870.03319.24
5.4.240.3530.03718.85
5.4.230.3970.04318.99
5.4.220.4000.03719.12
5.4.210.3730.03719.18
5.4.200.4730.04719.24
5.4.190.0130.07019.00
5.4.180.2070.04319.00
5.4.170.4430.04019.12
5.4.160.3670.04018.97
5.4.150.3870.03719.22
5.4.140.4330.03716.12
5.4.130.4730.03316.20
5.4.120.4730.03016.42
5.4.110.4200.03316.32
5.4.100.4130.03716.42
5.4.90.3630.03316.35
5.4.80.3470.03316.21
5.4.70.4770.03316.44
5.4.60.3000.04316.36
5.4.50.3600.03316.55
5.4.40.4130.04016.30
5.4.30.3900.03716.42
5.4.20.3130.03716.42
5.4.10.4570.03316.35
5.4.00.4470.03315.78
5.3.290.3930.04714.59
5.3.280.3800.04014.52
5.3.270.4200.03314.59
5.3.260.3930.03714.50
5.3.250.4030.03314.58
5.3.240.4430.03314.54
5.3.230.4900.03314.52
5.3.220.4970.04014.39
5.3.210.5500.04014.39
5.3.200.4670.04014.50
5.3.190.4800.03714.49
5.3.180.4400.04314.58
5.3.170.3670.03714.65
5.3.160.3830.04314.57
5.3.150.4730.03014.66
5.3.140.4430.05314.48
5.3.130.3800.03714.64
5.3.120.4100.03714.43
5.3.110.3930.04014.59
5.3.100.3930.03313.97
5.3.90.4270.03313.94
5.3.80.4570.03014.10
5.3.70.4600.03013.83
5.3.60.4070.03713.95
5.3.50.3830.03313.91
5.3.40.3970.04713.96
5.3.30.1730.03713.85
5.3.20.1300.03713.65
5.3.10.2930.03313.62
5.3.00.3900.03713.58
5.2.170.3300.03011.07
5.2.160.3930.03011.07
5.2.150.2930.03311.05
5.2.140.1200.03011.07
5.2.130.1570.03710.98
5.2.120.2400.03011.18
5.2.110.3100.02010.96
5.2.100.2700.02311.03
5.2.90.1670.02711.00
5.2.80.2130.02711.25
5.2.70.2800.03310.98
5.2.60.2400.03010.86
5.2.50.1230.02311.17
5.2.40.1730.02310.89
5.2.30.1370.03010.86
5.2.20.0530.03010.96
5.2.10.2970.03010.74
5.2.00.2300.02710.73
5.1.60.2270.0239.98
5.1.50.1330.02710.14
5.1.40.2070.02710.03
5.1.30.1000.02310.38
5.1.20.2070.02710.34
5.1.10.2930.02710.08
5.1.00.2870.03010.11
5.0.50.1470.0238.57
5.0.40.1100.0208.41
5.0.30.1370.0308.13
5.0.20.1570.0238.15
5.0.10.1530.0208.13
5.0.00.1500.0308.12
4.4.90.1370.0175.87
4.4.80.0200.0135.87
4.4.70.0730.0175.87
4.4.60.1000.0135.89
4.4.50.1100.0135.87
4.4.40.1070.0235.87
4.4.30.0630.0135.87
4.4.20.1470.0135.89
4.4.10.1030.0205.92
4.4.00.1370.0275.87
4.3.110.1370.0175.87
4.3.100.1700.0205.87
4.3.90.1630.0135.87
4.3.80.1430.0275.87
4.3.70.1370.0135.87
4.3.60.1800.0175.87
4.3.50.1200.0135.87
4.3.40.1470.0205.87
4.3.30.0600.0175.87
4.3.20.1000.0175.87
4.3.10.1100.0175.87
4.3.00.1070.0205.87

preferences:
145.05 ms | 939 KiB | 8 Q