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.0100.00316.13
8.3.50.0130.00322.83
8.3.40.0140.00318.59
8.3.30.0140.00718.84
8.3.20.0070.00020.21
8.3.10.0040.00421.69
8.3.00.0070.00417.25
8.2.180.0100.00716.32
8.2.170.0070.00722.96
8.2.160.0110.00820.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0140.00026.16
8.2.120.0040.00421.04
8.2.110.0060.00321.00
8.2.100.0060.00617.59
8.2.90.0040.00419.25
8.2.80.0030.00617.97
8.2.70.0000.00917.47
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00917.98
8.2.20.0000.00717.61
8.2.10.0000.00718.01
8.2.00.0000.00717.66
8.1.280.0130.00625.92
8.1.270.0050.00323.97
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00320.93
8.1.230.0090.00619.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00617.36
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0080.00018.56
8.1.160.0040.00421.97
8.1.150.0040.00418.84
8.1.140.0030.00517.39
8.1.130.0040.00417.73
8.1.120.0070.00017.43
8.1.110.0030.00617.34
8.1.100.0040.00417.43
8.1.90.0030.00717.23
8.1.80.0050.00517.32
8.1.70.0000.00717.25
8.1.60.0040.00417.39
8.1.50.0000.00817.31
8.1.40.0040.00417.36
8.1.30.0060.00317.42
8.1.20.0000.00717.57
8.1.10.0040.00417.48
8.1.00.0040.00417.44
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0000.00717.07
8.0.260.0060.00017.18
8.0.250.0030.00316.86
8.0.240.0030.00316.92
8.0.230.0060.00316.85
8.0.220.0050.00316.74
8.0.210.0030.00316.74
8.0.200.0030.00316.86
8.0.190.0080.00016.86
8.0.180.0000.00816.74
8.0.170.0040.00416.88
8.0.160.0100.00016.73
8.0.150.0070.00016.68
8.0.140.0000.01016.77
8.0.130.0060.00013.19
8.0.120.0040.00416.76
8.0.110.0000.00816.76
8.0.100.0000.00816.83
8.0.90.0080.00016.63
8.0.80.0090.00916.86
8.0.70.0070.00016.86
8.0.60.0070.00016.68
8.0.50.0050.00216.77
8.0.30.0170.00616.86
8.0.20.0160.00517.40
8.0.10.0000.00816.80
8.0.00.0110.00716.86
7.4.330.0030.00315.00
7.4.320.0060.00016.45
7.4.300.0050.00216.36
7.4.290.0000.00716.41
7.4.280.0030.00416.51
7.4.270.0000.00716.30
7.4.260.0030.00316.40
7.4.250.0040.00416.53
7.4.240.0040.00416.44
7.4.230.0030.00316.63
7.4.220.0120.00916.49
7.4.210.0030.01316.55
7.4.200.0000.00816.33
7.4.160.0060.00916.45
7.4.150.0090.01217.40
7.4.140.0100.00917.86
7.4.130.0130.00416.39
7.4.120.0080.01116.46
7.4.110.0070.01816.40
7.4.100.0140.00716.44
7.4.90.0100.00716.29
7.4.80.0040.01519.39
7.4.70.0070.01516.52
7.4.60.0090.00616.46
7.4.50.0040.00416.47
7.4.40.0070.01016.30
7.4.30.0150.00316.37
7.4.00.0090.00614.97
7.3.330.0050.00012.97
7.3.320.0030.00312.97
7.3.310.0030.00515.91
7.3.300.0030.00316.17
7.3.290.0070.00716.16
7.3.280.0080.01016.14
7.3.270.0130.01017.40
7.3.260.0090.00916.09
7.3.250.0130.00416.32
7.3.240.0140.00316.21
7.3.230.0050.01116.39
7.3.210.0040.01516.02
7.3.200.0090.00919.39
7.3.190.0120.00616.11
7.3.180.0110.01116.22
7.3.170.0080.00816.27
7.3.160.0100.00616.23
7.3.00.0060.00916.16
7.2.330.0070.01016.32
7.2.320.0120.01316.14
7.2.310.0030.01316.34
7.2.300.0140.01116.32
7.2.290.0080.00816.57
7.2.130.0070.00716.65
7.2.120.0030.01016.63
7.2.110.0030.01016.73
7.2.100.0030.00916.55
7.2.90.0100.00316.74
7.2.80.0100.00716.86
7.2.70.0080.00616.56
7.2.60.0120.00316.45
7.2.50.0060.00816.66
7.2.40.0140.00016.79
7.2.30.0040.01116.88
7.2.20.0030.01016.77
7.2.10.0070.00716.80
7.2.00.0070.01017.79
7.1.250.0060.01015.61
7.1.240.0090.00615.57
7.1.230.0090.00615.67
7.1.220.0060.00615.48
7.1.210.0040.01115.73
7.1.200.0040.00815.38
7.1.190.0030.01315.49
7.1.180.0000.01115.59
7.1.170.0060.00315.50
7.1.160.0030.00615.75
7.1.150.0060.00315.65
7.1.140.0030.00615.48
7.1.130.0060.00915.59
7.1.120.0130.00015.61
7.1.110.0030.01015.56
7.1.100.0030.00716.68
7.1.90.0000.00815.38
7.1.80.0030.01015.74
7.1.70.0070.00816.24
7.1.60.0130.00717.54
7.1.50.0090.00716.32
7.1.40.0030.00615.36
7.1.30.0060.00615.65
7.1.20.0000.01315.48
7.1.10.0000.01515.42
7.1.00.0060.04119.03
7.0.330.0100.00715.30
7.0.320.0030.01015.16
7.0.310.0030.01015.25
7.0.300.0060.00315.40
7.0.290.0040.01115.09
7.0.280.0090.00315.16
7.0.270.0000.01215.52
7.0.260.0040.00415.56
7.0.250.0100.00615.32
7.0.240.0000.00915.02
7.0.230.0080.00315.04
7.0.220.0070.00315.36
7.0.210.0070.00715.13
7.0.200.0090.00316.07
7.0.190.0090.00315.17
7.0.180.0040.00715.30
7.0.170.0060.00615.14
7.0.160.0060.00315.32
7.0.150.0040.00415.17
7.0.140.0050.04018.58
7.0.130.0080.00315.22
7.0.120.0000.01115.40
7.0.110.0070.00415.37
7.0.100.0060.00615.13
7.0.90.0000.00815.36
7.0.80.0030.00615.49
7.0.70.0060.00915.50
7.0.60.0080.04117.51
7.0.50.0070.04416.62
7.0.40.0080.04716.81
7.0.30.0180.04316.61
7.0.20.0100.02716.75
7.0.10.0050.02716.79
7.0.00.0090.04416.63
5.6.380.0070.00714.41
5.6.370.0070.00414.45
5.6.360.0070.00713.71
5.6.350.0030.01414.13
5.6.340.0030.00714.16
5.6.330.0070.00014.42
5.6.320.0040.00414.04
5.6.310.0040.01113.95
5.6.300.0080.00613.94
5.6.290.0060.00614.02
5.6.280.0040.04317.65
5.6.270.0060.00914.29
5.6.260.0000.01214.05
5.6.250.0030.00914.25
5.6.240.0050.00513.99
5.6.230.0070.00714.55
5.6.220.0060.00614.35
5.6.210.0080.03617.32
5.6.200.0040.03016.28
5.6.190.0090.03617.20
5.6.180.0120.02517.41
5.6.170.0120.02417.29
5.6.160.0070.04717.48
5.6.150.0040.03316.27
5.6.140.0110.04016.26
5.6.130.0050.02616.10
5.6.120.0050.04117.67
5.6.110.0050.04817.52
5.6.100.0090.03817.71
5.6.90.0080.02317.56
5.6.80.0050.04517.33
5.6.70.0030.01013.79
5.6.60.0080.00514.15
5.6.50.0060.00614.29
5.6.40.0040.00814.44
5.6.30.0100.00314.18
5.6.20.0040.00714.44
5.6.10.0070.00414.27
5.6.00.0060.00614.07
5.5.380.0070.00411.18
5.5.370.0060.00311.18
5.5.360.0090.00011.18
5.5.350.2270.02215.81
5.5.340.0070.04314.54
5.5.330.0070.04315.66
5.5.320.0150.04215.74
5.5.310.0220.03715.71
5.5.300.0070.04314.58
5.5.290.0040.03214.56
5.5.280.0030.02815.99
5.5.270.0070.04316.06
5.5.260.0040.02116.01
5.5.250.0050.03015.91
5.5.240.0090.04015.68
5.5.230.0040.00811.18
5.5.220.0030.00711.18
5.5.210.0030.00611.18
5.5.200.0000.00811.18
5.5.190.0040.00411.18
5.5.180.0040.00311.18
5.5.170.0000.00811.18
5.5.160.0000.00711.18
5.5.150.0030.00511.18
5.5.140.0060.00311.18
5.5.130.0000.00711.18
5.5.120.0000.01111.18
5.5.110.0000.01011.18
5.5.100.0000.00711.18
5.5.90.0030.00611.18
5.5.80.0000.00511.18
5.5.70.0060.00611.18
5.5.60.0100.00011.18
5.5.50.0110.00011.18
5.5.40.0070.00711.18
5.5.30.0000.01111.18
5.5.20.0030.00611.18
5.5.10.0040.00811.18
5.5.00.0030.00311.18
5.4.450.0430.03415.35
5.4.440.0390.03615.23
5.4.430.0330.03515.30
5.4.420.0430.03015.40
5.4.410.0430.02715.29
5.4.400.0540.02615.01
5.4.390.0330.03315.09
5.4.380.0080.03514.92
5.4.370.0180.02514.82
5.4.360.0150.02014.89
5.4.350.0040.02311.57
5.4.340.0070.02411.57
5.4.330.0030.01011.18
5.4.320.0070.02411.81
5.4.310.0060.02111.81
5.4.300.0020.02311.81
5.4.290.0060.02511.81
5.4.280.0050.02211.76
5.4.270.0070.02011.76
5.4.260.0070.02311.76
5.4.250.0060.02011.76
5.4.240.0050.02211.76
5.4.230.0050.02111.76
5.4.220.0020.02211.76
5.4.210.0040.02211.76
5.4.200.0040.02211.76
5.4.190.0020.02311.75
5.4.180.0050.02211.75
5.4.170.0040.02211.76
5.4.160.0050.02211.76
5.4.150.0050.02211.76
5.4.140.0030.02411.60
5.4.130.0050.02211.59
5.4.120.0070.01811.57
5.4.110.0080.02011.57
5.4.100.0060.02011.57
5.4.90.0040.02011.57
5.4.80.0040.02311.57
5.4.70.0060.01711.57
5.4.60.0060.02211.57
5.4.50.0060.02611.57
5.4.40.0020.02311.56
5.4.30.0060.02111.56
5.4.20.0050.01911.56
5.4.10.0040.02311.56
5.4.00.0070.02111.30
5.3.290.0070.02211.99
5.3.280.0060.02211.94
5.3.270.0040.02511.95
5.3.260.0030.02511.95
5.3.250.0030.02111.95
5.3.240.0060.02111.95
5.3.230.0080.02011.94
5.3.220.0080.01911.93
5.3.210.0050.02311.93
5.3.200.0060.02011.93
5.3.190.0020.02511.93
5.3.180.0030.02011.92
5.3.170.0050.02111.92
5.3.160.0050.02211.92
5.3.150.0050.02211.92
5.3.140.0050.02411.92
5.3.130.0060.02311.92
5.3.120.0060.02111.92
5.3.110.0020.02411.92
5.3.100.0040.02011.65
5.3.90.0070.01911.63
5.3.80.0090.01911.63
5.3.70.0040.01911.63
5.3.60.0050.02011.62
5.3.50.0080.02011.59
5.3.40.0050.02311.59
5.3.30.0050.01911.56
5.3.20.0060.01911.45
5.3.10.0050.01811.43
5.3.00.0040.02211.43
5.2.170.0040.01710.18
5.2.160.0040.01610.18
5.2.150.0050.01710.18
5.2.140.0030.02010.18
5.2.130.0040.01710.15
5.2.120.0050.01710.15
5.2.110.0050.01510.16
5.2.100.0060.01510.16
5.2.90.0030.01710.16
5.2.80.0050.01810.15
5.2.70.0030.02210.15
5.2.60.0060.01710.13
5.2.50.0030.02110.12
5.2.40.0040.01610.10
5.2.30.0070.01510.09
5.2.20.0040.01610.09
5.2.10.0040.01810.05
5.2.00.0050.0179.98
5.1.60.0040.0169.62
5.1.50.0070.0119.62
5.1.40.0040.0179.61
5.1.30.0050.0139.78
5.1.20.0050.0169.79
5.1.10.0050.0189.65
5.1.00.0070.0149.65
5.0.50.0030.0118.89
5.0.40.0030.0118.82
5.0.30.0030.0218.73
5.0.20.0050.0128.72
5.0.10.0050.0128.71
5.0.00.0050.0178.70
4.4.90.0020.0157.98
4.4.80.0010.0107.96
4.4.70.0020.0147.96
4.4.60.0030.0127.96
4.4.50.0020.0117.97
4.4.40.0020.0137.94
4.4.30.0020.0107.97
4.4.20.0020.0118.01
4.4.10.0020.0118.01
4.4.00.0040.0137.96
4.3.110.0010.0107.92
4.3.100.0030.0087.92
4.3.90.0040.0087.91
4.3.80.0020.0167.88
4.3.70.0050.0097.90
4.3.60.0030.0087.90
4.3.50.0040.0097.90
4.3.40.0030.0147.86
4.3.30.0010.0107.23
4.3.20.0020.0117.21
4.3.10.0010.0147.20
4.3.00.0070.0179.26

preferences:
50.56 ms | 401 KiB | 5 Q