3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { private const $mapping = array( "key" => "value", ); }

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.0100.04512.02
5.4.320.0090.06412.50
5.4.310.0100.04012.50
5.4.300.0090.06112.50
5.4.290.0120.05612.51
5.4.280.0120.04412.40
5.4.270.0080.04812.40
5.4.260.0060.04012.40
5.4.250.0100.03512.40
5.4.240.0070.03712.40
5.4.230.0060.04312.39
5.4.220.0060.03912.39
5.4.210.0090.03812.39
5.4.200.0050.04112.39
5.4.190.0080.03912.39
5.4.180.0070.03512.39
5.4.170.0040.03912.39
5.4.160.0050.03612.39
5.4.150.0060.03512.39
5.4.140.0080.04012.08
5.4.130.0080.03512.06
5.4.120.0090.03612.03
5.4.110.0070.03312.02
5.4.100.0040.04012.02
5.4.90.0050.04312.02
5.4.80.0060.03912.02
5.4.70.0090.03312.02
5.4.60.0060.03712.02
5.4.50.0070.03812.02
5.4.40.0130.03012.01
5.4.30.0080.03812.00
5.4.20.0070.04012.00
5.4.10.0040.03812.00
5.4.00.0090.03911.50
5.3.290.0080.04212.80
5.3.280.0070.03812.71
5.3.270.0090.04012.72
5.3.260.0130.04112.72
5.3.250.0100.04412.72
5.3.240.0060.04212.72
5.3.230.0120.04512.71
5.3.220.0130.04412.68
5.3.210.0080.03812.68
5.3.200.0090.05212.68
5.3.190.0210.05912.68
5.3.180.0080.04412.67
5.3.170.0100.04112.67
5.3.160.0090.03412.67
5.3.150.0060.04012.67
5.3.140.0240.08812.66
5.3.130.0130.07612.66
5.3.120.0050.06012.65
5.3.110.0230.08212.66
5.3.100.0160.03812.12
5.3.90.0110.06412.10
5.3.80.0110.05612.09
5.3.70.0170.05212.09
5.3.60.0150.05012.08
5.3.50.0040.05612.02
5.3.40.0100.04912.02
5.3.30.0090.06311.98
5.3.20.0100.05611.75
5.3.10.0100.04111.73
5.3.00.0130.07011.71
5.2.170.0120.0649.21
5.2.160.0080.0559.21
5.2.150.0110.0439.21
5.2.140.0070.0479.21
5.2.130.0100.0869.16
5.2.120.0100.0309.16
5.2.110.0110.0329.18
5.2.100.0090.0309.18
5.2.90.0030.0359.17
5.2.80.0040.0369.17
5.2.70.0030.0399.17
5.2.60.0050.0359.13
5.2.50.0080.0509.09
5.2.40.0040.0319.07
5.2.30.0040.0329.04
5.2.20.0050.0419.03
5.2.10.0080.0648.95
5.2.00.0150.0538.80
5.1.60.0040.0358.09
5.1.50.0120.0598.08
5.1.40.0150.0698.06
5.1.30.0080.0378.42
5.1.20.0100.0418.43
5.1.10.0060.0338.16
5.1.00.0060.0358.16
5.0.50.0050.0236.64
5.0.40.0080.0206.50
5.0.30.0080.0436.30
5.0.20.0050.0216.27
5.0.10.0060.0216.25
5.0.00.0070.0326.25
4.4.90.0050.0164.78
4.4.80.0040.0394.76
4.4.70.0040.0164.75
4.4.60.0040.0184.75
4.4.50.0040.0174.77
4.4.40.0090.0254.70
4.4.30.0040.0204.76
4.4.20.0050.0154.84
4.4.10.0060.0214.84
4.4.00.0100.0394.75
4.3.110.0110.0434.67
4.3.100.0070.0184.66
4.3.90.0050.0294.63
4.3.80.0020.0414.58
4.3.70.0050.0184.63
4.3.60.0050.0174.63
4.3.50.0110.0504.63
4.3.40.0090.0484.54
4.3.30.0100.0423.30
4.3.20.0000.0223.28
4.3.10.0030.0163.23
4.3.00.0130.0306.97

preferences:
145.24 ms | 1394 KiB | 7 Q