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('product' => 'test3', 'sku' => 't3'); var_dump($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.50
8.3.50.0140.00322.94
8.3.40.0150.00618.59
8.3.30.0130.00718.70
8.3.20.0000.00720.21
8.3.10.0080.00021.77
8.3.00.0070.00317.25
8.2.180.0100.01018.54
8.2.170.0120.00322.96
8.2.160.0030.01620.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0150.00426.16
8.2.120.0080.00021.09
8.2.110.0030.00620.86
8.2.100.0000.01117.72
8.2.90.0040.00418.03
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0040.00417.92
8.2.50.0030.00518.07
8.2.40.0040.00418.09
8.2.30.0050.00517.99
8.2.20.0040.00417.64
8.2.10.0070.00017.87
8.2.00.0040.00417.55
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.66
8.1.230.0040.00720.88
8.1.220.0040.00417.74
8.1.210.0000.00818.92
8.1.200.0050.01017.00
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00318.60
8.1.160.0000.00821.98
8.1.150.0000.00718.65
8.1.140.0070.00017.25
8.1.130.0040.00417.75
8.1.120.0080.00017.41
8.1.110.0050.00317.31
8.1.100.0040.00417.32
8.1.90.0060.00317.36
8.1.80.0060.00317.38
8.1.70.0000.00717.23
8.1.60.0030.00517.36
8.1.50.0000.00917.34
8.1.40.0030.00617.40
8.1.30.0080.00017.54
8.1.20.0000.00717.57
8.1.10.0040.00417.33
8.1.00.0040.00417.30
8.0.300.0050.00319.95
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0000.00717.19
8.0.260.0000.00617.26
8.0.250.0000.00716.92
8.0.240.0000.00716.85
8.0.230.0060.00316.97
8.0.220.0000.00716.88
8.0.210.0080.00016.86
8.0.200.0040.00416.89
8.0.190.0080.00016.84
8.0.180.0040.00416.75
8.0.170.0050.00216.79
8.0.160.0110.00016.83
8.0.150.0070.00016.82
8.0.140.0090.00316.79
8.0.130.0080.00013.29
8.0.120.0000.00816.92
8.0.110.0070.00016.80
8.0.100.0000.00716.70
8.0.90.0000.00816.88
8.0.80.0070.01016.91
8.0.70.0000.00716.74
8.0.60.0050.00216.76
8.0.50.0000.00716.87
8.0.30.0110.00816.83
8.0.20.0150.00917.40
8.0.10.0000.00716.97
8.0.00.0090.01116.71
7.4.330.0050.00015.00
7.4.320.0060.00016.56
7.4.300.0000.00616.50
7.4.290.0080.00016.45
7.4.280.0040.00416.33
7.4.270.0000.00716.54
7.4.260.0040.00416.41
7.4.250.0030.00316.49
7.4.240.0020.00516.35
7.4.230.0030.00316.35
7.4.220.0140.00716.59
7.4.210.0140.00016.45
7.4.200.0030.00316.26
7.4.160.0060.00916.29
7.4.150.0110.00717.40
7.4.140.0090.00817.86
7.4.130.0100.01116.36
7.4.120.0100.00816.32
7.4.110.0070.01416.53
7.4.100.0100.00716.43
7.4.90.0110.00816.47
7.4.80.0120.00619.39
7.4.70.0130.00616.52
7.4.60.0070.01016.44
7.4.50.0030.00516.21
7.4.40.0040.01216.31
7.4.30.0060.00916.46
7.4.00.0030.01315.03
7.3.330.0000.00612.97
7.3.320.0030.00313.05
7.3.310.0080.00016.18
7.3.300.0000.00716.02
7.3.290.0060.00916.23
7.3.280.0110.00516.20
7.3.270.0180.00017.40
7.3.260.0040.01416.21
7.3.240.0130.00716.23
7.3.230.0080.00916.45
7.3.210.0110.00716.15
7.3.200.0150.00319.39
7.3.190.0060.01216.29
7.3.180.0140.00416.51
7.3.170.0100.00716.27
7.3.160.0110.00516.23
7.2.330.0080.01116.27
7.2.320.0100.00716.59
7.2.310.0120.00616.41
7.2.300.0120.00616.50
7.2.290.0090.00616.19
7.2.00.0090.00919.21
7.1.200.0080.00515.56
7.1.100.0070.00717.88
7.1.70.0040.00717.13
7.1.60.0110.01419.40
7.1.50.0130.01016.65
7.1.00.0070.07322.28
7.0.200.0080.00316.41
7.0.140.0100.06721.97
7.0.60.0030.05020.00
7.0.50.0100.08317.83
7.0.40.0070.04319.90
7.0.30.0500.05020.11
7.0.20.0270.03720.09
7.0.10.0170.08020.12
7.0.00.0070.04020.01
5.6.280.0000.07721.09
5.6.210.0030.05320.66
5.6.200.0130.07718.09
5.6.190.0030.05320.58
5.6.180.0330.06720.60
5.6.170.0230.08720.61
5.6.160.0000.04320.61
5.6.150.0030.05318.19
5.6.140.0070.08018.11
5.6.130.0070.08318.07
5.6.120.0130.07021.01
5.6.110.0130.06721.14
5.6.100.0230.08021.13
5.6.90.0130.05020.96
5.6.80.0070.03720.43
5.5.350.3370.03020.40
5.5.340.0070.08317.98
5.5.330.0070.07320.26
5.5.320.0370.07720.41
5.5.310.0300.05020.17
5.5.300.0030.06717.92
5.5.290.0030.04017.95
5.5.280.0130.08320.66
5.5.270.0130.06320.72
5.5.260.0070.07720.95
5.5.250.0170.07720.60
5.5.240.0200.06320.14
5.4.450.0270.04719.58
5.4.440.0800.04319.09
5.4.430.0270.04019.42
5.4.420.0230.04319.09
5.4.410.0430.04319.45
5.4.400.0570.02719.07
5.4.390.0400.04718.93
5.4.380.0530.06018.50
5.4.370.0400.05018.77
5.4.360.0300.06718.69
5.4.350.0270.06318.62
5.4.340.0430.05718.78
5.4.320.0060.05312.45
5.4.310.0060.03812.45
5.4.300.0070.04212.46
5.4.290.0100.03412.45
5.4.280.0070.03312.34
5.4.270.0060.03512.35
5.4.260.0050.03712.35
5.4.250.0050.04312.34
5.4.240.0040.04112.34
5.4.230.0090.03712.34
5.4.220.0070.03412.34
5.4.210.0090.03212.34
5.4.200.0090.03512.34
5.4.190.0070.03912.33
5.4.180.0050.03612.33
5.4.170.0030.03812.35
5.4.160.0040.03612.34
5.4.150.0060.03912.34
5.4.140.0050.04212.02
5.4.130.0070.03812.01
5.4.120.0060.03411.97
5.4.110.0040.03711.96
5.4.100.0070.03411.96
5.4.90.0110.04411.97
5.4.80.0080.03911.96
5.4.70.0030.03711.96
5.4.60.0050.04211.96
5.4.50.0060.04011.96
5.4.40.0030.03711.95
5.4.30.0080.03411.95
5.4.20.0060.03411.95
5.4.10.0060.04011.95
5.4.00.0100.04511.44
5.3.290.0060.04112.80
5.3.280.0050.03812.71
5.3.270.0080.03712.72
5.3.260.0060.04112.71
5.3.250.0060.04012.72
5.3.240.0120.03212.72
5.3.230.0050.03812.70
5.3.220.0050.03712.68
5.3.210.0040.04012.68
5.3.200.0090.03312.68
5.3.190.0090.04212.68
5.3.180.0060.03512.68
5.3.170.0050.03612.67
5.3.160.0080.03412.67
5.3.150.0040.03812.67
5.3.140.0040.03712.66
5.3.130.0060.03912.66
5.3.120.0070.03612.66
5.3.110.0050.03912.66
5.3.100.0060.03612.12
5.3.90.0020.03912.08
5.3.80.0060.03512.08
5.3.70.0080.03312.08
5.3.60.0070.04212.06
5.3.50.0030.03812.00
5.3.40.0100.03212.00
5.3.30.0040.03711.94
5.3.20.0050.03511.72
5.3.10.0040.03711.69
5.3.00.0040.03711.68
5.2.170.0030.0329.18
5.2.160.0070.0269.18
5.2.150.0080.0339.18
5.2.140.0030.0319.17
5.2.130.0040.0379.14
5.2.120.0050.0279.13
5.2.110.0010.0329.14
5.2.100.0080.0349.14
5.2.90.0040.0299.14
5.2.80.0060.0279.14
5.2.70.0020.0329.13
5.2.60.0040.0299.09
5.2.50.0030.0319.05
5.2.40.0010.0319.04
5.2.30.0050.0289.01
5.2.20.0060.0339.00
5.2.10.0030.0318.92
5.2.00.0080.0308.77
5.1.60.0040.0238.06
5.1.50.0050.0268.05
5.1.40.0070.0248.04
5.1.30.0050.0258.39
5.1.20.0070.0308.41
5.1.10.0080.0268.13
5.1.00.0040.0278.14
5.0.50.0060.0226.62
5.0.40.0040.0276.47
5.0.30.0040.0376.29
5.0.20.0020.0226.26
5.0.10.0030.0206.23
5.0.00.0040.0306.23
4.4.90.0020.0164.78
4.4.80.0050.0164.76
4.4.70.0070.0164.76
4.4.60.0030.0154.76
4.4.50.0030.0204.77
4.4.40.0040.0254.71
4.4.30.0020.0164.76
4.4.20.0030.0194.84
4.4.10.0040.0144.85
4.4.00.0070.0234.76
4.3.110.0010.0174.67
4.3.100.0020.0154.66
4.3.90.0030.0134.64
4.3.80.0020.0244.59
4.3.70.0040.0174.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0040.0234.53
4.3.30.0020.0163.28
4.3.20.0010.0163.25
4.3.10.0030.0203.21
4.3.00.0030.01715.90

preferences:
44.21 ms | 400 KiB | 5 Q