3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class A { const A = ['a']; } var_dump(A::{'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.6.50.0000.04020.48
5.6.40.0030.08020.38
5.6.30.0000.04720.48
5.6.20.0030.05320.34
5.6.10.0030.07320.45
5.6.00.0070.07720.49
5.5.210.0000.04720.24
5.5.200.0000.04020.11
5.5.190.0000.07020.24
5.5.180.0100.07320.22
5.5.160.0000.08720.31
5.5.150.0030.07320.02
5.5.140.0130.05020.14
5.5.130.0030.08720.32
5.5.120.0030.06320.24
5.5.110.0030.04720.19
5.5.100.0100.07020.11
5.5.90.0070.07019.98
5.5.80.0030.04020.04
5.5.70.0070.06719.99
5.5.60.0000.06720.03
5.5.50.0130.03320.05
5.5.40.0070.07320.15
5.5.30.0000.04319.98
5.5.20.0100.07020.11
5.5.10.0070.05720.06
5.5.00.0000.05719.89
5.4.370.0000.03719.07
5.4.360.0000.07318.91
5.4.350.0000.05718.91
5.4.340.0100.06719.07
5.4.320.0000.08019.14
5.4.310.0030.07319.07
5.4.300.0070.07719.01
5.4.290.0200.05319.01
5.4.280.0070.07319.05
5.4.270.0100.06719.08
5.4.260.0030.07319.07
5.4.250.0070.06019.16
5.4.240.0030.06019.05
5.4.230.0030.07719.16
5.4.220.0070.05719.07
5.4.210.0000.06719.19
5.4.200.0030.07718.89
5.4.190.0070.07318.84
5.4.180.0000.08319.21
5.4.170.0030.06019.16
5.4.160.0030.07719.10
5.4.150.0030.07718.99
5.4.140.0070.06716.48
5.4.130.0000.07716.45
5.4.120.0000.07016.47
5.4.110.0130.05716.27
5.4.100.0030.05016.51
5.4.90.0000.07716.41
5.4.80.0030.07716.20
5.4.70.0030.06716.46
5.4.60.0030.07316.48
5.4.50.0070.07016.48
5.4.40.0070.05316.49
5.4.30.0000.05716.36
5.4.20.0000.05316.53
5.4.10.0000.07316.52
5.4.00.0030.07015.92
5.3.290.0070.07014.70
5.3.280.0000.04314.54
5.3.270.0070.06714.61
5.3.260.0070.05714.45
5.3.250.0070.06714.51
5.3.240.0030.05314.66
5.3.230.0030.08014.64
5.3.220.0030.07014.53
5.3.210.0030.05014.56
5.3.200.0030.06714.61
5.3.190.0100.07014.67
5.3.180.0030.07314.66
5.3.170.0070.07314.56
5.3.160.0000.06714.57
5.3.150.0070.07314.61
5.3.140.0070.05714.57
5.3.130.0030.07014.61
5.3.120.0070.06314.65
5.3.110.0100.07014.60
5.3.100.0100.06313.89
5.3.90.0070.07014.08
5.3.80.0000.05313.99
5.3.70.0030.07313.91
5.3.60.0070.06714.07
5.3.50.0000.07013.98
5.3.40.0000.06014.03
5.3.30.0170.03713.97
5.3.20.0170.03013.58
5.3.10.0130.03013.61
5.3.00.0100.03713.64
5.2.170.0000.04011.18
5.2.160.0030.06011.15
5.2.150.0030.04011.01
5.2.140.0130.03311.14
5.2.130.0100.02711.00
5.2.120.0100.02711.13
5.2.110.0100.03011.20
5.2.100.0100.02711.11
5.2.90.0070.03011.14
5.2.80.0100.03011.07
5.2.70.0170.02011.15
5.2.60.0030.03011.03
5.2.50.0030.03011.00
5.2.40.0070.06310.99
5.2.30.0070.02710.86
5.2.20.0100.02011.04
5.2.10.0000.03710.84
5.2.00.0070.02710.80
5.1.60.0000.03010.64
5.1.50.0000.02310.64
5.1.40.0000.02710.64
5.1.30.0000.03310.64
5.1.20.0000.02010.64
5.1.10.0030.02010.64
5.1.00.0000.02010.64
5.0.50.0000.01710.64
5.0.40.0000.01710.64
5.0.30.0030.03010.64
5.0.20.0000.01710.64
5.0.10.0000.01710.64
5.0.00.0000.02710.64
4.4.90.0000.01310.64
4.4.80.0000.01310.64
4.4.70.0000.01310.64
4.4.60.0000.01310.64
4.4.50.0070.01710.64
4.4.40.0030.02710.64
4.4.30.0000.01310.64
4.4.20.0000.01310.64
4.4.10.0000.01310.64
4.4.00.0000.02310.64
4.3.110.0000.01710.64
4.3.100.0000.01010.64
4.3.90.0000.01010.64
4.3.80.0000.02010.64
4.3.70.0000.01010.64
4.3.60.0000.01310.64
4.3.50.0000.01310.64
4.3.40.0000.02010.64
4.3.30.0070.00710.64
4.3.20.0000.02710.64
4.3.10.0000.01710.64
4.3.00.0000.01710.64

preferences:
42.74 ms | 403 KiB | 5 Q