3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_1 = array( array('product' => 'test1', 'sku' => 't1'), array('product' => 'test2', 'sku' => 't2'), ); // $test_2 = array(); // $test_2 = array('teet', 'sefsefse'); $test_2 = array(array('product' => 'test3', 'sku' => 't3')); var_dump(array_merge($test_1, $test_2));

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.0070.00716.38
8.3.50.0100.00622.76
8.3.40.0120.00318.59
8.3.30.0090.00618.96
8.3.20.0000.00820.38
8.3.10.0000.00821.63
8.3.00.0070.00317.25
8.2.180.0150.00416.38
8.2.170.0100.00722.96
8.2.160.0160.00320.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00920.90
8.2.110.0060.00320.53
8.2.100.0080.00417.72
8.2.90.0040.00419.10
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0030.00617.80
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0000.01017.89
8.2.20.0000.00717.59
8.2.10.0000.00717.86
8.2.00.0040.00417.60
8.1.280.0070.01325.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0080.00023.89
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0000.00821.85
8.1.150.0000.00818.79
8.1.140.0000.00717.29
8.1.130.0030.00317.81
8.1.120.0030.00317.39
8.1.110.0000.00817.33
8.1.100.0030.00517.34
8.1.90.0040.00717.27
8.1.80.0050.00517.35
8.1.70.0030.00317.28
8.1.60.0050.00317.54
8.1.50.0000.00817.43
8.1.40.0000.00817.44
8.1.30.0000.00817.52
8.1.20.0000.00817.58
8.1.10.0030.00617.39
8.1.00.0000.00717.30
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0040.00418.35
8.0.270.0030.00317.10
8.0.260.0000.00617.18
8.0.250.0030.00316.87
8.0.240.0000.00816.87
8.0.230.0030.00616.90
8.0.220.0030.00316.70
8.0.210.0070.00016.82
8.0.200.0060.00016.79
8.0.190.0030.00616.88
8.0.180.0040.00416.80
8.0.170.0050.00316.82
8.0.160.0040.00416.73
8.0.150.0030.00316.65
8.0.140.0030.00716.66
8.0.130.0050.00513.23
8.0.120.0000.00816.74
8.0.110.0050.00216.73
8.0.100.0000.00716.69
8.0.90.0000.00716.70
8.0.80.0090.00616.81
8.0.70.0040.00416.82
8.0.60.0000.00716.88
8.0.50.0070.00016.61
8.0.30.0110.00916.74
8.0.20.0130.00817.40
8.0.10.0040.00416.79
8.0.00.0070.01116.57
7.4.330.0030.00315.09
7.4.320.0030.00316.45
7.4.300.0030.00316.54
7.4.290.0030.00316.43
7.4.280.0000.00716.44
7.4.270.0070.00016.38
7.4.260.0030.00316.50
7.4.250.0040.00416.54
7.4.240.0000.00716.42
7.4.230.0070.00016.60
7.4.220.0120.00916.59
7.4.210.0030.01116.55
7.4.200.0070.00016.62
7.4.160.0080.00616.53
7.4.150.0150.00417.40
7.4.140.0050.01317.86
7.4.130.0100.01416.40
7.4.120.0060.01416.44
7.4.110.0100.01316.43
7.4.100.0090.00916.48
7.4.90.0060.01216.18
7.4.80.0150.00719.39
7.4.70.0200.00316.26
7.4.60.0160.00016.39
7.4.50.0040.00416.50
7.4.40.0130.00816.46
7.4.30.0100.00716.40
7.4.00.0090.00914.95
7.3.330.0030.00312.89
7.3.320.0000.00512.95
7.3.310.0030.00316.09
7.3.300.0000.00715.91
7.3.290.0030.01316.18
7.3.280.0110.00816.14
7.3.270.0070.01417.40
7.3.260.0100.01016.14
7.3.240.0120.00916.17
7.3.230.0140.00316.51
7.3.210.0100.00716.47
7.3.200.0060.01219.39
7.3.190.0140.00416.02
7.3.180.0060.00916.29
7.3.170.0030.01316.27
7.3.160.0090.00616.13
7.2.330.0100.00716.53
7.2.320.0130.01016.43
7.2.310.0140.00316.36
7.2.300.0120.01216.49
7.2.290.0030.01416.47
7.2.00.0160.00319.13
7.1.200.0040.00815.84
7.1.100.0050.00517.50
7.1.70.0040.00416.97
7.1.60.0060.01619.40
7.1.50.0100.00316.94
7.1.00.0030.07722.36
7.0.200.0000.00916.72
7.0.140.0000.07721.95
7.0.60.0070.07720.02
7.0.50.0070.08317.84
7.0.40.0070.05020.21
7.0.30.0200.04720.09
7.0.20.0270.04320.17
7.0.10.0030.06320.11
7.0.00.0000.06720.08
5.6.280.0030.07321.09
5.6.210.0100.07720.60
5.6.200.0030.04018.19
5.6.190.0070.09020.64
5.6.180.0070.04020.52
5.6.170.0270.05020.33
5.6.160.0070.06020.71
5.6.150.0100.07718.20
5.6.140.0070.04018.12
5.6.130.0030.04318.20
5.6.120.0000.04720.89
5.6.110.0100.08720.95
5.6.100.0030.04321.00
5.6.90.0030.08021.11
5.6.80.0170.07020.35
5.5.350.0100.07320.43
5.5.340.0070.06317.92
5.5.330.0130.06020.28
5.5.320.0300.08020.29
5.5.310.0370.07320.32
5.5.300.0170.07017.95
5.5.290.0100.08318.00
5.5.280.0170.07320.96
5.5.270.0170.07020.85
5.5.260.0000.04320.74
5.5.250.0170.07320.70
5.5.240.0100.06720.25
5.4.450.0530.06319.13
5.4.440.0670.08019.63
5.4.430.0870.06019.40
5.4.420.0100.07719.32
5.4.410.1170.05319.04
5.4.400.1030.04719.14
5.4.390.1000.05319.21
5.4.380.0400.05718.59
5.4.370.0400.05318.48
5.4.360.0400.04718.50
5.4.350.0300.06318.50
5.4.340.0670.05318.59
5.4.320.0080.03412.45
5.4.310.0070.04312.45
5.4.300.0090.03412.45
5.4.290.0080.03712.45
5.4.280.0060.03912.35
5.4.270.0120.03312.34
5.4.260.0080.03812.35
5.4.250.0090.03612.34
5.4.240.0120.03112.35
5.4.230.0080.04012.34
5.4.220.0040.03812.34
5.4.210.0060.03612.34
5.4.200.0130.03312.34
5.4.190.0060.04112.34
5.4.180.0020.04112.34
5.4.170.0060.03512.34
5.4.160.0050.03612.34
5.4.150.0080.03312.34
5.4.140.0050.03812.02
5.4.130.0060.03512.01
5.4.120.0050.03611.96
5.4.110.0030.03711.96
5.4.100.0070.03311.96
5.4.90.0110.03211.96
5.4.80.0060.03611.96
5.4.70.0070.03511.96
5.4.60.0060.03411.96
5.4.50.0080.03311.96
5.4.40.0050.03511.95
5.4.30.0070.03411.95
5.4.20.0070.03411.95
5.4.10.0060.03411.95
5.4.00.0020.03911.44
5.3.290.0090.04412.80
5.3.280.0020.04112.70
5.3.270.0060.03912.72
5.3.260.0090.03612.72
5.3.250.0060.03712.72
5.3.240.0080.03512.72
5.3.230.0090.03512.71
5.3.220.0030.04212.68
5.3.210.0060.03812.68
5.3.200.0080.03512.68
5.3.190.0060.03812.68
5.3.180.0040.04012.68
5.3.170.0050.03812.67
5.3.160.0050.03712.67
5.3.150.0060.04112.67
5.3.140.0070.03512.66
5.3.130.0070.04112.66
5.3.120.0100.03512.66
5.3.110.0070.03812.66
5.3.100.0080.03512.12
5.3.90.0070.03612.09
5.3.80.0080.03312.07
5.3.70.0050.03612.08
5.3.60.0040.03812.07
5.3.50.0100.03212.00
5.3.40.0090.03412.00
5.3.30.0090.03211.95
5.3.20.0090.03311.72
5.3.10.0040.03711.69
5.3.00.0070.03511.68
5.2.170.0050.0309.18
5.2.160.0030.0319.17
5.2.150.0060.0299.18
5.2.140.0040.0319.17
5.2.130.0030.0309.13
5.2.120.0070.0269.14
5.2.110.0050.0289.14
5.2.100.0050.0289.14
5.2.90.0060.0289.14
5.2.80.0040.0319.14
5.2.70.0050.0309.14
5.2.60.0030.0319.09
5.2.50.0020.0329.06
5.2.40.0050.0329.04
5.2.30.0090.0419.00
5.2.20.0050.0299.00
5.2.10.0020.0308.92
5.2.00.0050.0298.78
5.1.60.0060.0318.06
5.1.50.0040.0288.05
5.1.40.0050.0258.04
5.1.30.0100.0298.39
5.1.20.0060.0318.41
5.1.10.0040.0358.13
5.1.00.0050.0268.14
5.0.50.0040.0206.61
5.0.40.0050.0186.47
5.0.30.0060.0296.29
5.0.20.0030.0206.26
5.0.10.0050.0216.24
5.0.00.0070.0346.23
4.4.90.0030.0164.78
4.4.80.0010.0174.75
4.4.70.0030.0154.76
4.4.60.0030.0164.75
4.4.50.0040.0144.77
4.4.40.0040.0234.70
4.4.30.0010.0164.76
4.4.20.0030.0154.84
4.4.10.0030.0174.85
4.4.00.0020.0254.76
4.3.110.0020.0164.66
4.3.100.0030.0154.67
4.3.90.0030.0144.64
4.3.80.0050.0224.59
4.3.70.0030.0144.62
4.3.60.0050.0124.63
4.3.50.0020.0164.62
4.3.40.0030.0234.54
4.3.30.0010.0173.28
4.3.20.0030.0153.26
4.3.10.0020.0153.21
4.3.00.0100.0307.20

preferences:
46.64 ms | 401 KiB | 5 Q