3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class A { const A = ['a']; } A::A[0] // syntax error (A::A)[0] // syntax error too

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.370.3470.04019.31
5.4.360.3230.04019.08
5.4.350.3430.04018.99
5.4.340.3570.03719.23
5.4.320.3200.04019.23
5.4.310.3670.05719.13
5.4.300.3230.03318.94
5.4.290.3630.03719.31
5.4.280.3600.04718.99
5.4.270.3400.04719.21
5.4.260.3230.03719.22
5.4.250.3500.03018.96
5.4.240.3230.03319.14
5.4.230.3570.02718.87
5.4.220.3470.03719.19
5.4.210.3300.03318.98
5.4.200.3470.03719.16
5.4.190.3400.04319.08
5.4.180.3600.04018.97
5.4.170.3230.04319.14
5.4.160.3300.03719.11
5.4.150.3700.03319.07
5.4.140.4370.02316.67
5.4.130.3470.04016.33
5.4.120.0200.05316.41
5.4.110.2670.03016.26
5.4.100.3830.03316.54
5.4.90.3570.02716.40
5.4.80.4070.03016.52
5.4.70.3400.04016.52
5.4.60.3630.03716.59
5.4.50.3500.03716.16
5.4.40.3230.03316.38
5.4.30.3330.03316.42
5.4.20.3430.03716.53
5.4.10.3570.03316.53
5.4.00.0530.05316.12
5.3.290.3430.03714.77
5.3.280.3330.03714.50
5.3.270.3370.03314.60
5.3.260.3370.03714.76
5.3.250.3530.03314.60
5.3.240.3430.03314.61
5.3.230.3130.03314.50
5.3.220.0030.05714.61
5.3.210.0000.08314.57
5.3.200.4230.03314.47
5.3.190.3500.03314.53
5.3.180.3530.03714.53
5.3.170.3700.03314.46
5.3.160.3500.03014.57
5.3.150.3000.04014.54
5.3.140.3300.03714.63
5.3.130.3470.04314.63
5.3.120.3170.04014.54
5.3.110.3400.04014.46
5.3.100.0070.04314.05
5.3.90.0030.03714.03
5.3.80.1270.05313.92
5.3.70.3270.04013.92
5.3.60.3470.04014.00
5.3.50.3370.02713.88
5.3.40.3530.04013.86
5.3.30.4100.04313.80
5.3.20.3670.02313.69
5.3.10.4100.03313.66
5.3.00.3470.03713.54
5.2.170.2970.02711.19
5.2.160.3000.03011.36
5.2.150.2900.03711.26
5.2.140.3300.03011.22
5.2.130.3300.03011.01
5.2.120.3600.02311.10
5.2.110.2830.02311.01
5.2.100.3370.02711.00
5.2.90.3400.02311.05
5.2.80.3270.02011.10
5.2.70.2770.03011.25
5.2.60.3630.04011.11
5.2.50.2800.02711.13
5.2.40.2200.02710.89
5.2.30.2270.02710.89
5.2.20.2330.02310.96
5.2.10.2170.03010.81
5.2.00.2200.03010.68
5.1.60.2230.02310.14
5.1.50.2270.0279.99
5.1.40.2230.02710.06
5.1.30.2270.02010.25
5.1.20.2870.02010.25
5.1.10.2270.02010.19
5.1.00.2200.02310.00
5.0.50.1130.0178.52
5.0.40.1100.0208.49
5.0.30.1170.0308.15
5.0.20.1270.0208.18
5.0.10.1100.0178.22
5.0.00.1100.0338.31
4.4.90.1470.0177.54
4.4.80.1170.0177.54
4.4.70.1170.0107.54
4.4.60.1070.0177.54
4.4.50.1130.0137.54
4.4.40.1130.0307.54
4.4.30.1230.0207.54
4.4.20.1070.0177.54
4.4.10.1170.0107.54
4.4.00.1000.0277.54
4.3.110.1130.0177.54
4.3.100.1300.0177.54
4.3.90.1230.0137.54
4.3.80.1370.0307.54
4.3.70.1270.0107.54
4.3.60.1130.0177.54
4.3.50.1400.0177.54
4.3.40.1770.0237.54
4.3.30.0870.0207.54
4.3.20.0830.0137.54
4.3.10.0770.0137.54
4.3.00.0800.0177.54

preferences:
142.4 ms | 1394 KiB | 7 Q