3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2, 3); $b = array("a" => 1, "b" => 2, "c" => 3); var_dump(array_merge($a, $b));

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.3.60.0060.01116.63
8.3.50.0120.00721.99
8.3.40.0070.00718.48
8.3.30.0000.02118.79
8.3.20.0080.00820.12
8.3.10.0110.00421.73
8.3.00.0030.00620.81
8.2.180.0070.00716.63
8.2.170.0070.01122.96
8.2.160.0090.00622.13
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00719.65
8.2.110.0040.00420.34
8.2.100.0030.01017.97
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0000.00919.82
8.2.30.0050.00218.04
8.2.20.0040.00417.62
8.2.10.0040.00417.91
8.2.00.0000.00717.55
8.1.280.0110.00725.92
8.1.270.0070.00024.66
8.1.260.0120.00626.35
8.1.250.0060.00328.09
8.1.240.0030.00623.92
8.1.230.0070.00419.09
8.1.220.0030.00517.74
8.1.210.0100.00018.77
8.1.200.0000.01017.00
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00918.61
8.1.160.0040.00421.93
8.1.150.0000.00818.77
8.1.140.0040.00417.42
8.1.130.0030.00317.85
8.1.120.0040.00417.41
8.1.110.0000.00817.27
8.1.100.0030.00317.38
8.1.90.0040.00417.40
8.1.80.0000.00717.36
8.1.70.0030.00317.29
8.1.60.0030.00617.46
8.1.50.0040.00417.45
8.1.40.0040.00417.47
8.1.30.0040.00417.62
8.1.20.0000.00717.52
8.1.10.0000.00817.38
8.1.00.0000.00717.35
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.28
8.0.270.0000.00717.19
8.0.260.0030.00317.12
8.0.250.0030.00316.78
8.0.240.0000.00716.77
8.0.230.0030.00316.85
8.0.220.0000.00716.69
8.0.210.0050.00316.82
8.0.200.0000.00816.86
8.0.190.0090.00016.78
8.0.180.0030.00316.88
8.0.170.0030.00516.90
8.0.160.0040.00416.80
8.0.150.0070.00416.78
8.0.140.0040.00416.70
8.0.130.0000.00613.26
8.0.120.0060.00316.80
8.0.110.0070.00016.78
8.0.100.0000.00716.86
8.0.90.0040.00416.73
8.0.80.0040.01116.81
8.0.70.0070.00016.80
8.0.60.0000.00716.85
8.0.50.0000.00816.82
8.0.30.0070.01516.95
8.0.20.0110.00917.40
8.0.10.0080.00017.05
8.0.00.0110.00716.80
7.4.330.0050.00015.03
7.4.320.0030.00316.43
7.4.300.0040.00416.47
7.4.290.0000.00716.52
7.4.280.0000.01016.43
7.4.270.0070.00016.45
7.4.260.0040.00416.39
7.4.250.0050.00316.41
7.4.240.0050.00216.48
7.4.230.0070.00016.64
7.4.220.0120.00616.39
7.4.210.0040.01216.56
7.4.200.0070.00016.24
7.4.160.0050.01016.26
7.4.150.0100.01017.40
7.4.140.0090.01017.86
7.4.130.0080.00916.35
7.4.120.0050.01316.39
7.4.110.0090.00916.37
7.4.100.0090.00916.39
7.4.90.0040.01316.38
7.4.80.0120.01216.13
7.4.70.0110.00916.55
7.4.60.0070.01116.34
7.4.50.0030.00516.13
7.4.40.0100.01016.24
7.4.30.0120.00916.36
7.4.00.0120.00614.82
7.3.330.0000.00512.86
7.3.320.0070.00713.06
7.3.310.0000.00716.20
7.3.300.0000.00716.11
7.3.290.0080.00816.13
7.3.280.0100.00916.11
7.3.270.0130.00417.40
7.3.260.0030.01516.05
7.3.250.0130.00516.28
7.3.240.0100.00716.17
7.3.230.0030.01416.39
7.3.210.0130.00316.37
7.3.200.0070.01119.39
7.3.190.0060.01515.96
7.3.180.0110.00516.26
7.3.170.0060.01216.29
7.3.160.0160.00416.16
7.3.120.0100.00714.59
7.3.110.0050.01014.74
7.3.100.0080.00614.60
7.3.90.0030.00814.81
7.3.80.0060.00614.79
7.3.70.0040.01114.55
7.3.60.0020.00914.68
7.3.50.0070.00514.71
7.3.40.0070.00814.61
7.3.30.0080.00814.82
7.3.20.0050.00816.58
7.3.10.0050.00716.62
7.3.00.0030.00916.38
7.2.330.0060.01216.30
7.2.320.0090.00916.42
7.2.310.0140.00416.48
7.2.300.0070.01016.26
7.2.290.0110.01116.53
7.2.250.0030.01414.73
7.2.240.0070.00914.80
7.2.230.0060.00614.81
7.2.220.0050.00714.79
7.2.210.0100.00514.71
7.2.200.0030.01114.70
7.2.190.0080.00714.68
7.2.180.0030.00714.82
7.2.170.0090.00914.76
7.2.60.0100.00016.87
7.1.330.0030.01315.70
7.1.320.0050.00715.77
7.1.310.0070.00415.82
7.1.300.0050.00715.60
7.1.290.0070.00415.75
7.1.280.0070.00515.59
7.1.270.0050.01115.55
7.1.260.0070.00615.42
7.1.200.0100.00715.69
7.1.100.0040.00717.38
7.1.70.0000.00816.94
7.1.60.0070.01719.46
7.1.50.0090.01216.89
7.1.00.0030.07722.50
7.0.200.0070.00714.88
7.0.140.0030.03322.18
7.0.60.0030.07319.96
7.0.50.0030.09317.77
7.0.40.0000.05020.27
7.0.30.0330.07320.00
7.0.20.0170.04720.09
7.0.10.0070.05020.34
7.0.00.0030.04320.30
5.6.280.0000.08021.05
5.6.210.0170.06720.50
5.6.200.0070.08718.11
5.6.190.0030.05320.43
5.6.180.0370.04320.46
5.6.170.0270.05020.33
5.6.160.0100.05320.48
5.6.150.0070.08318.18
5.6.140.0070.07318.11
5.6.130.0030.05718.20
5.6.120.0070.05721.11
5.6.110.0130.08321.04
5.6.100.0070.07720.98
5.6.90.0030.04020.94
5.6.80.0100.04020.43
5.5.350.0130.05020.29
5.5.340.0230.05018.02
5.5.330.0230.06320.56
5.5.320.0030.08720.48
5.5.310.0330.05320.50
5.5.300.0030.08717.91
5.5.290.0100.05017.92
5.5.280.0070.06320.76
5.5.270.0030.06320.88
5.5.260.0070.04020.86
5.5.250.0100.07720.65
5.5.240.0200.03720.21
5.4.450.0130.06019.59
5.4.440.0930.06719.58
5.4.430.0900.05719.31
5.4.420.1100.04019.25
5.4.410.0700.05319.36
5.4.400.0970.07719.26
5.4.390.0170.06318.53
5.4.380.0130.06018.49
5.4.370.0130.06018.67
5.4.360.0100.07718.61
5.4.350.0200.07018.75
5.4.340.0130.07718.61
5.4.320.0200.07018.61
5.4.310.0200.06318.68
5.4.300.0130.07318.73
5.4.290.0230.06718.57
5.4.280.0070.08018.66
5.4.270.0200.06718.67
5.4.260.0270.05718.69
5.4.250.0130.07318.71
5.4.240.0170.07318.58
5.4.230.0200.06718.76
5.4.220.0130.07318.45
5.4.210.0270.06018.45
5.4.200.0170.06716.75
5.4.190.0130.07318.70
5.4.180.0170.07318.66
5.4.170.0070.08318.61
5.4.160.0200.06718.71
5.4.150.0270.06018.66
5.4.140.0130.07016.25
5.4.130.0200.06016.15
5.4.120.0170.06316.22
5.4.110.0170.06016.06
5.4.100.0100.07016.26
5.4.90.0170.06316.16
5.4.80.0030.07016.11
5.4.70.0200.04316.05
5.4.60.0000.06316.07
5.4.50.0070.05716.32
5.4.40.0070.05716.27
5.4.30.0100.05016.31
5.4.20.0130.05316.13
5.4.10.0100.07016.13
5.4.00.0100.06715.64
5.3.290.0100.06714.59
5.3.280.0170.05314.57
5.3.270.0100.06014.52
5.3.260.0100.06014.60
5.3.250.0100.05314.64
5.3.240.0070.05314.64
5.3.230.0070.05714.59
5.3.220.0100.05314.55
5.3.210.0130.05314.65
5.3.200.0030.05714.55
5.3.190.0130.04714.55
5.3.180.0070.05314.48
5.3.170.0070.05714.61
5.3.160.0100.05314.54
5.3.150.0070.05314.51
5.3.140.0170.05014.53
5.3.130.0030.05714.50
5.3.120.0070.05714.45
5.3.110.0070.05314.54
5.3.100.0030.05714.02
5.3.90.0130.05013.93
5.3.80.0070.05313.96
5.3.70.0170.05013.95
5.3.60.0030.06313.91
5.3.50.0030.06713.84
5.3.40.0130.05313.91
5.3.30.0200.04713.87
5.3.20.0100.05713.67
5.3.10.0130.06013.61
5.3.00.0030.06013.75
5.2.170.0070.05311.09
5.2.160.0070.04311.07
5.2.150.0130.04011.05
5.2.140.0030.05011.05
5.2.130.0300.02711.08
5.2.120.0070.04711.08
5.2.110.0100.04711.05
5.2.100.0130.04311.06
5.2.90.0030.05311.14
5.2.80.0130.04011.07
5.2.70.0070.04711.04
5.2.60.0170.04011.10
5.2.50.0130.04011.04
5.2.40.0100.04310.95
5.2.30.0070.05011.00
5.2.20.0100.04011.11
5.2.10.0200.03311.01
5.2.00.0100.03710.86
5.1.60.0000.04010.11
5.1.50.0070.03310.00
5.1.40.0070.0379.95
5.1.30.0100.03710.34
5.1.20.0100.03310.41
5.1.10.0130.03310.16
5.1.00.0000.04010.11
5.0.50.0070.0278.61
5.0.40.0030.0308.43
5.0.30.0100.0508.29
5.0.20.0130.0308.23
5.0.10.0070.0408.16
5.0.00.0000.0578.29
4.4.90.0100.0235.96
4.4.80.0130.0205.84
4.4.70.0030.0235.88
4.4.60.0000.0275.85
4.4.50.0000.0305.88
4.4.40.0100.0305.81
4.4.30.0030.0235.88
4.4.20.0000.0275.88
4.4.10.0030.0275.97
4.4.00.0000.0405.93
4.3.110.0100.0205.81
4.3.100.0030.0235.83
4.3.90.0100.0275.86
4.3.80.0070.0405.91
4.3.70.0030.0305.77
4.3.60.0000.0335.80
4.3.50.0070.0305.83
4.3.40.0000.0475.75
4.3.30.0030.0304.58
4.3.20.0070.0274.55
4.3.10.0070.0234.46
4.3.00.0330.02714.59

preferences:
38.74 ms | 401 KiB | 5 Q