3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_merge([1 => 'a', 3 => 'b'], [2 => 'c', 3 => 'd'])); var_dump(array_merge([1 => 'a', 3 => 'b'], [2 => 'c', 5 => 'd']));

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)
8.0.0beta30.0080.01216.45
8.0.0beta20.0120.01016.29
8.0.0beta10.0150.00816.42
8.0.0alpha30.0140.00816.44
8.0.0alpha20.0150.00716.34
8.0.0alpha10.0120.00916.35
7.4.100.0110.01016.16
7.4.90.0130.00816.15
7.4.80.0120.00916.28
7.4.70.0120.00816.18
7.4.60.0120.01016.27
7.4.50.0110.01116.21
7.4.40.0110.01116.25
7.4.30.0120.00916.15
7.4.20.0120.00916.21
7.4.10.0140.00716.15
7.4.00.0120.00716.26
7.3.220.0140.00816.12
7.3.210.0130.00816.15
7.3.200.0110.01016.17
7.3.190.0130.00816.24
7.3.180.0120.01016.14
7.3.170.0110.01016.16
7.3.160.0090.01216.13
7.3.150.0110.01016.13
7.3.140.0120.00916.18
7.3.130.0130.00916.17
7.3.120.0120.00816.10
7.3.110.0120.00816.12
7.3.100.0110.01116.06
7.3.90.0140.00616.10
7.3.80.0120.00816.03
7.3.70.0110.01016.08
7.3.60.0110.00816.10
7.3.50.0130.00816.09
7.3.40.0100.00916.08
7.3.30.0100.01216.12
7.3.20.0140.01016.06
7.3.10.0110.01116.10
7.3.00.0150.01016.05
7.2.330.0110.01116.29
7.2.320.0110.01016.33
7.2.310.0110.01216.32
7.2.300.0140.00716.32
7.2.290.0140.00816.31
7.2.280.0100.01116.34
7.2.270.0110.01216.15
7.2.260.0110.01016.32
7.2.250.0120.01016.24
7.2.240.0120.00916.32
7.2.230.0100.01116.17
7.2.220.0130.00816.29
7.2.210.0100.01016.27
7.2.200.0120.01016.29
7.2.190.0140.00716.18
7.2.180.0120.00916.18
7.2.170.0110.00916.19
7.2.160.0120.01016.21
7.2.150.0160.00816.25
7.2.140.0160.00716.28
7.2.130.0130.00916.31
7.2.120.0120.01016.21
7.2.110.0100.01116.30
7.2.100.0120.01016.31
7.2.90.0140.01116.36
7.2.80.0120.01016.26
7.2.70.0100.01016.20
7.2.60.0140.00816.33
7.2.50.0140.00916.34
7.2.40.0170.00816.27
7.2.30.0190.00916.34
7.2.20.0140.00916.29
7.2.10.0100.01116.24
7.2.00.0110.01216.21
7.1.330.0130.01815.26
7.1.320.0260.01015.43
7.1.310.0250.00815.60
7.1.300.0160.01715.52
7.1.290.0200.01315.41
7.1.280.0270.00715.42
7.1.270.0470.01015.44
7.1.260.0200.01115.43
7.1.250.0180.01215.27
7.1.240.0290.00315.41
7.1.230.0280.00415.48
7.1.220.0260.00415.45
7.1.210.0200.01015.23
7.1.200.0300.01215.32
7.1.190.0230.01315.48
7.1.180.0390.00915.50
7.1.170.0290.00715.44
7.1.160.0280.00915.43
7.1.150.0250.00915.46
7.1.140.0290.01315.42
7.1.130.0210.00815.44
7.1.120.0260.00915.38
7.1.110.0200.01015.46
7.1.100.0180.01515.34
7.1.90.0270.00315.39
7.1.80.0280.00415.32
7.1.70.0230.00615.48
7.1.60.0240.00715.30
7.1.50.0260.00415.42
7.1.40.0320.01015.22
7.1.30.0230.00815.43
7.1.20.0240.00715.30
7.1.10.0200.01415.45
7.1.00.0260.00515.45
7.0.330.0260.00615.29
7.0.320.0250.00814.91
7.0.310.0250.01315.12
7.0.300.0240.00914.94
7.0.290.0170.01115.10
7.0.280.0290.00715.07
7.0.270.0240.00814.92
7.0.260.0240.00715.04
7.0.250.0150.01715.00
7.0.240.0170.01415.05
7.0.230.0220.00815.13
7.0.220.0160.01415.30
7.0.210.0280.00615.26
7.0.200.0190.01015.04
7.0.190.0210.01215.16
7.0.180.0250.00715.11
7.0.170.0230.00715.00
7.0.160.0270.00615.04
7.0.150.0470.00815.23
7.0.140.0220.00815.02
7.0.130.0230.00815.14
7.0.120.0170.01615.12
7.0.110.0250.00315.07
7.0.100.0240.00315.01
7.0.90.0230.00515.06
7.0.80.0190.01015.15
7.0.70.0310.00015.03
7.0.60.0250.00715.12
7.0.50.0240.00815.02
7.0.40.0180.00914.96
7.0.30.0150.01915.02
7.0.20.0290.00514.99
7.0.10.0240.00815.08
7.0.00.0260.00515.19
5.6.400.0290.00715.83
5.6.390.0180.01115.81
5.6.380.0270.00715.87
5.6.370.0230.00815.77
5.6.360.0250.01115.76
5.6.350.0190.01415.82
5.6.340.0340.00615.64
5.6.330.0150.01515.86
5.6.320.0190.01415.96
5.6.310.0290.00615.58
5.6.300.0170.02015.47
5.6.290.0140.01915.71
5.6.280.0290.00015.49
5.6.270.0190.01015.87
5.6.260.0200.01715.70
5.6.250.0190.01115.66
5.6.240.0210.01215.80
5.6.230.0160.02015.84
5.6.220.0270.00715.66
5.6.210.0230.01015.79
5.6.200.0190.01215.66
5.6.190.0240.00815.83
5.6.180.0280.00915.50
5.6.170.0250.00715.93
5.6.160.0180.01515.90
5.6.150.0110.02215.66
5.6.140.0230.01015.78
5.6.130.0190.01315.91
5.6.120.0280.00315.80
5.6.110.0170.01915.66
5.6.100.0230.01315.64
5.6.90.0220.01215.81
5.6.80.0320.00015.64
5.6.70.0130.02515.43
5.6.60.0190.01115.54
5.6.50.0160.01815.54
5.6.40.0240.00515.75
5.6.30.0190.01615.71
5.6.20.0260.01015.79
5.6.10.0270.00715.69
5.6.00.0330.00315.72
5.5.380.0230.00715.54
5.5.370.0300.00515.49
5.5.360.0220.01115.94
5.5.350.0160.01715.57
5.5.340.0220.01415.67
5.5.330.0190.01115.51
5.5.320.0260.00815.68
5.5.310.0220.01315.68
5.5.300.0230.01315.69
5.5.290.0170.01315.70
5.5.280.0270.01015.78
5.5.270.0260.01215.80
5.5.260.0290.01015.54
5.5.250.0200.01515.65
5.5.240.0300.00915.47
5.5.230.0270.01015.41
5.5.220.0220.01315.53
5.5.210.0260.01415.45
5.5.200.0210.01115.34
5.5.190.0230.00715.48
5.5.180.0220.01215.63
5.5.170.0240.00915.60
5.5.160.0150.01815.68
5.5.150.0220.01415.40
5.5.140.0230.01315.59
5.5.130.0180.01515.57
5.5.120.0280.00815.43
5.5.110.0240.01115.68
5.5.100.0270.00615.71
5.5.90.0200.01415.57
5.5.80.0240.01015.53
5.5.70.0310.00215.70
5.5.60.0200.01015.61
5.5.50.0210.01115.55
5.5.40.0150.02115.67
5.5.30.0160.02015.55
5.5.20.0190.01115.70
5.5.10.0250.00815.55
5.5.00.0280.00615.48
5.4.450.0130.01112.35
5.4.440.0210.00712.34
5.4.430.0180.00712.72
5.4.420.0170.00612.44
5.4.410.0230.00412.34
5.4.400.0120.01512.20
5.4.390.0190.00412.26
5.4.380.0160.01212.20
5.4.370.0180.00612.56
5.4.360.0240.00412.23
5.4.350.0140.00912.52
5.4.340.0190.00412.55
5.4.330.0140.01412.34
5.4.320.0270.00512.43
5.4.310.0180.00412.40
5.4.300.0210.00912.35
5.4.290.0250.00312.46
5.4.280.0210.00412.20
5.4.270.0150.00912.37
5.4.260.0160.00812.38
5.4.250.0220.00312.25
5.4.240.0180.00912.22
5.4.230.0180.00612.38
5.4.220.0160.01012.61
5.4.210.0110.01112.39
5.4.200.0200.00712.49
5.4.190.0160.00612.37
5.4.180.0160.01012.55
5.4.170.0220.00612.34
5.4.160.0110.01912.34
5.4.150.0150.01212.24
5.4.140.0220.00512.29
5.4.130.0210.00712.46
5.4.120.0130.01312.39
5.4.110.0090.01212.22
5.4.100.0190.00312.34
5.4.90.0160.01112.43
5.4.80.0190.00412.55
5.4.70.0130.00812.48
5.4.60.0150.00612.25
5.4.50.0160.00512.40
5.4.40.0150.00812.46
5.4.30.0120.00812.48
5.4.20.0100.01312.45
5.4.10.0130.00912.46
5.4.00.0200.00312.52
5.3.290.0120.02112.74
5.3.280.0140.01412.73
5.3.270.0120.01512.70
5.3.260.0260.00312.64
5.3.250.0160.00912.70
5.3.240.0220.00812.54
5.3.230.0200.00612.79
5.3.220.0160.00712.68
5.3.210.0200.01012.61
5.3.200.0170.00912.61
5.3.190.0130.01012.79
5.3.180.0100.01312.86
5.3.170.0110.01112.82
5.3.160.0130.01012.82
5.3.150.0170.00712.88
5.3.140.0150.01212.89
5.3.130.0170.00713.00
5.3.120.0200.00412.89
5.3.110.0130.01012.88
5.3.100.0100.01312.76
5.3.90.0160.01012.78
5.3.80.0180.00312.67
5.3.70.0170.00712.67
5.3.60.0250.00212.65
5.3.50.0140.01412.65
5.3.40.0160.00612.63
5.3.30.0140.01412.68
5.3.20.0140.01112.65
5.3.10.0180.01112.62
5.3.00.0190.00812.51
5.2.170.0110.00811.85
5.2.160.0160.00311.82
5.2.150.0200.00311.92
5.2.140.0150.01111.64
5.2.130.0160.00811.71
5.2.120.0100.01511.68
5.2.110.0140.01211.80
5.2.100.0190.00711.95
5.2.90.0140.01411.65
5.2.80.0200.00411.79
5.2.70.0220.00611.69
5.2.60.0090.01611.67
5.2.50.0190.00611.76
5.2.40.0150.00711.83
5.2.30.0140.01011.64
5.2.20.0130.00711.57
5.2.10.0150.00811.55
5.2.00.0210.00011.36
5.1.60.0080.01511.29
5.1.50.0150.00411.29
5.1.40.0100.01111.29
5.1.30.0160.00611.29
5.1.20.0120.00911.29
5.1.10.0150.00711.29
5.1.00.0070.01111.29
5.0.50.0110.00711.29
5.0.40.0200.00011.29
5.0.30.0110.00611.29
5.0.20.0120.00411.29
5.0.10.0120.00311.29
5.0.00.0090.00511.29
4.4.90.0090.00511.29
4.4.80.0060.00211.29
4.4.70.0070.00411.29
4.4.60.0100.00011.29
4.4.50.0110.00011.29
4.4.40.0030.00611.29
4.4.30.0000.01211.29
4.4.20.0070.00511.29
4.4.10.0120.00011.29
4.4.00.0050.00511.29
4.3.110.0040.00811.29
4.3.100.0080.00411.29
4.3.90.0120.00011.29
4.3.80.0080.00411.29
4.3.70.0100.00011.29
4.3.60.0070.00411.29
4.3.50.0070.00411.29
4.3.40.0110.00011.29
4.3.30.0100.00011.29
4.3.20.0090.00011.29
4.3.10.0080.00011.29
4.3.00.0070.00011.29