3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { private static 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.0020.03912.02
5.4.320.0190.06412.50
5.4.310.0080.04112.50
5.4.300.0090.03812.51
5.4.290.0050.04112.50
5.4.280.0040.03812.40
5.4.270.0090.04112.40
5.4.260.0200.06612.40
5.4.250.0110.03612.40
5.4.240.0080.03812.40
5.4.230.0090.04112.39
5.4.220.0050.04412.39
5.4.210.0070.03912.39
5.4.200.0180.08212.39
5.4.190.0090.04812.39
5.4.180.0140.06212.39
5.4.170.0120.07712.40
5.4.160.0190.09412.39
5.4.150.0140.08912.39
5.4.140.0080.04512.08
5.4.130.0060.05012.06
5.4.120.0090.04212.03
5.4.110.0090.03812.03
5.4.100.0070.04112.02
5.4.90.0060.04412.02
5.4.80.0070.04712.02
5.4.70.0200.06812.02
5.4.60.0120.05512.02
5.4.50.0070.04412.02
5.4.40.0110.04012.01
5.4.30.0130.04112.00
5.4.20.0090.04512.00
5.4.10.0240.10412.00
5.4.00.0130.05911.50
5.3.290.0070.04112.80
5.3.280.0060.03912.71
5.3.270.0080.04712.72
5.3.260.0070.05112.72
5.3.250.0070.04212.72
5.3.240.0100.04212.72
5.3.230.0080.04812.71
5.3.220.0130.05412.68
5.3.210.0050.05512.68
5.3.200.0070.04712.68
5.3.190.0110.06112.68
5.3.180.0190.10412.67
5.3.170.0150.07512.66
5.3.160.0280.09912.68
5.3.150.0150.11012.67
5.3.140.0120.05712.66
5.3.130.0120.07912.66
5.3.120.0140.05012.66
5.3.110.0100.05212.66
5.3.100.0290.08212.12
5.3.90.0070.05012.10
5.3.80.0120.05912.09
5.3.70.0040.05112.09
5.3.60.0080.04212.07
5.3.50.0050.03812.02
5.3.40.0080.03412.02
5.3.30.0060.03811.98
5.3.20.0100.03511.76
5.3.10.0100.04311.73
5.3.00.0060.04311.71
5.2.170.0060.0319.21
5.2.160.0040.0339.21
5.2.150.0100.0369.21
5.2.140.0020.0359.21
5.2.130.0050.0309.17
5.2.120.0070.0379.17
5.2.110.0070.0369.18
5.2.100.0050.0299.17
5.2.90.0080.0269.18
5.2.80.0040.0329.17
5.2.70.0060.0309.17
5.2.60.0070.0299.13
5.2.50.0090.0389.10
5.2.40.0040.0339.07
5.2.30.0060.0309.05
5.2.20.0100.0269.03
5.2.10.0090.0298.94
5.2.00.0110.0308.80
5.1.60.0050.0258.08
5.1.50.0020.0298.08
5.1.40.0080.0348.07
5.1.30.0140.0478.42
5.1.20.0120.0518.43
5.1.10.0050.0308.16
5.1.00.0060.0288.16
5.0.50.0040.0266.63
5.0.40.0040.0236.50
5.0.30.0080.0546.30
5.0.20.0040.0286.28
5.0.10.0040.0256.26
5.0.00.0090.0356.25
4.4.90.0100.0244.78
4.4.80.0090.0344.75
4.4.70.0060.0204.75
4.4.60.0050.0264.75
4.4.50.0080.0374.77
4.4.40.0050.0464.71
4.4.30.0000.0214.76
4.4.20.0050.0194.85
4.4.10.0080.0354.85
4.4.00.0050.0294.76
4.3.110.0050.0204.67
4.3.100.0070.0164.66
4.3.90.0030.0194.64
4.3.80.0050.0234.58
4.3.70.0050.0124.63
4.3.60.0050.0144.63
4.3.50.0070.0184.63
4.3.40.0010.0314.54
4.3.30.0080.0403.30
4.3.20.0060.0183.28
4.3.10.0120.0673.23
4.3.00.0130.0276.97

preferences:
143.54 ms | 1394 KiB | 7 Q