3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { private const $mapping = array( %s ); }

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.0370.06719.22
5.4.320.0270.05019.23
5.4.310.0330.07019.14
5.4.300.0270.06019.08
5.4.290.0300.07319.13
5.4.280.0430.06319.09
5.4.270.0300.06019.19
5.4.260.0430.05719.23
5.4.250.0300.06019.07
5.4.240.0330.06718.97
5.4.230.0270.05018.98
5.4.220.0300.03718.98
5.4.210.0300.04318.99
5.4.200.0370.06718.85
5.4.190.0300.07319.12
5.4.180.0330.06719.05
5.4.170.0300.04018.86
5.4.160.0300.07019.21
5.4.150.0200.04318.85
5.4.140.0300.04716.36
5.4.130.0330.02716.41
5.4.120.0330.04016.38
5.4.110.0330.04016.40
5.4.100.0330.03716.54
5.4.90.0330.06016.58
5.4.80.0300.06716.51
5.4.70.0270.07016.24
5.4.60.0300.06716.61
5.4.50.0230.03716.54
5.4.40.0270.06716.23
5.4.30.0400.05316.38
5.4.20.0270.03316.34
5.4.10.0200.04316.52
5.4.00.0230.03715.80
5.3.290.0300.06014.77
5.3.280.0270.07714.51
5.3.270.0300.04314.50
5.3.260.0200.05314.62
5.3.250.0330.06714.72
5.3.240.0300.05014.70
5.3.230.0270.04714.66
5.3.220.0330.07014.53
5.3.210.0370.06014.57
5.3.200.0230.05014.63
5.3.190.0200.04314.64
5.3.180.0330.07014.72
5.3.170.0230.04014.46
5.3.160.0400.06714.61
5.3.150.0230.06014.72
5.3.140.0330.06714.64
5.3.130.0330.06314.44
5.3.120.0400.06314.63
5.3.110.0200.04014.47
5.3.100.0300.06314.13
5.3.90.0370.06713.99
5.3.80.0270.07314.17
5.3.70.0300.05713.91
5.3.60.0230.05013.92
5.3.50.0270.07313.99
5.3.40.0330.07014.02
5.3.30.0370.06313.88
5.3.20.0230.04713.61
5.3.10.0300.06713.58
5.3.00.0200.03713.65
5.2.170.0230.05711.19
5.2.160.0270.05311.06
5.2.150.0230.05011.38
5.2.140.0300.05311.21
5.2.130.0230.05011.02
5.2.120.0270.05311.00
5.2.110.0230.03011.07
5.2.100.0200.03711.00
5.2.90.0230.03311.26
5.2.80.0200.03011.18
5.2.70.0200.03311.17
5.2.60.0200.03711.26
5.2.50.0200.05010.92
5.2.40.0270.05311.07
5.2.30.0200.05710.89
5.2.20.0170.03710.96
5.2.10.0170.04010.93
5.2.00.0230.02710.66
5.1.60.0170.03310.51
5.1.50.0230.03710.51
5.1.40.0270.04310.51
5.1.30.0170.03710.51
5.1.20.0270.04710.51
5.1.10.0230.03010.51
5.1.00.0200.04710.51
5.0.50.0170.03310.51
5.0.40.0100.02010.51
5.0.30.0070.06010.51
5.0.20.0130.04010.51
5.0.10.0100.02310.51
5.0.00.0070.05710.51
4.4.90.0100.03010.51
4.4.80.0100.02710.51
4.4.70.0070.02010.51
4.4.60.0070.02310.51
4.4.50.0130.03010.51
4.4.40.0070.05710.51
4.4.30.0070.02710.51
4.4.20.0070.03010.51
4.4.10.0130.02310.51
4.4.00.0130.05010.51
4.3.110.0100.03310.51
4.3.100.0130.03010.51
4.3.90.0100.01310.51
4.3.80.0130.03010.51
4.3.70.0100.01310.51
4.3.60.0100.04010.51
4.3.50.0070.03710.51
4.3.40.0070.04310.51
4.3.30.0000.02010.51
4.3.20.0030.02010.51
4.3.10.0030.02010.51
4.3.00.0100.01010.51

preferences:
136.34 ms | 1394 KiB | 7 Q