3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $b = array(array(1),array(2),3); $f = array(array(2),array(3),4); $c = array(array_merge($a, $b, $f)); var_dump($c); $d = array_unique($c); var_dump($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.3.60.0120.00316.50
8.3.50.0070.00921.99
8.3.40.0070.00718.68
8.3.30.0070.00718.97
8.3.20.0000.00820.21
8.3.10.0080.00020.57
8.3.00.0030.00619.13
8.2.180.0090.00616.38
8.2.170.0110.00422.96
8.2.160.0100.00320.44
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00421.11
8.2.110.0030.00620.58
8.2.100.0090.00317.85
8.2.90.0040.00418.22
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0090.00318.09
8.2.30.0000.01119.47
8.2.20.0040.00417.74
8.2.10.0040.00417.98
8.2.00.0040.00417.80
8.1.280.0140.00725.92
8.1.270.0080.00023.69
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00723.86
8.1.230.0110.00020.96
8.1.220.0030.00617.78
8.1.210.0040.00418.85
8.1.200.0070.00317.35
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0050.00518.48
8.1.160.0030.00522.01
8.1.150.0070.00018.93
8.1.140.0000.00717.41
8.1.130.0070.00017.40
8.1.120.0000.00717.45
8.1.110.0050.00317.43
8.1.100.0000.00817.34
8.1.90.0000.00817.40
8.1.80.0020.00517.46
8.1.70.0000.00817.33
8.1.60.0000.00817.59
8.1.50.0030.00517.50
8.1.40.0020.00517.45
8.1.30.0050.00317.48
8.1.20.0030.00517.60
8.1.10.0030.00617.48
8.1.00.0000.00817.30
8.0.300.0040.00420.07
8.0.290.0000.00716.75
8.0.280.0000.00718.48
8.0.270.0030.00317.31
8.0.260.0030.00516.81
8.0.250.0070.00016.85
8.0.240.0030.00316.92
8.0.230.0040.00416.93
8.0.220.0070.00016.92
8.0.210.0000.00716.86
8.0.200.0000.00616.89
8.0.190.0040.00416.92
8.0.180.0030.00316.80
8.0.170.0050.00316.95
8.0.160.0070.00016.94
8.0.150.0000.00716.84
8.0.140.0040.00416.86
8.0.130.0030.00313.38
8.0.120.0000.00816.86
8.0.110.0050.00316.91
8.0.100.0040.00416.86
8.0.90.0030.00516.77
8.0.80.0000.01616.86
8.0.70.0070.00016.88
8.0.60.0000.00716.88
8.0.50.0000.00716.87
8.0.30.0140.00516.97
8.0.20.0100.01317.41
8.0.10.0040.00416.86
8.0.00.0140.00516.75
7.4.330.0050.00015.16
7.4.320.0000.00616.59
7.4.300.0030.00316.64
7.4.290.0070.00016.44
7.4.280.0060.00616.58
7.4.270.0000.00816.61
7.4.260.0040.00416.35
7.4.250.0030.00316.33
7.4.240.0070.00016.47
7.4.230.0040.00416.69
7.4.220.0040.01416.51
7.4.210.0090.00616.59
7.4.200.0000.00816.38
7.4.160.0150.00316.50
7.4.150.0120.00917.40
7.4.140.0140.00617.86
7.4.130.0110.00916.31
7.4.120.0150.00316.49
7.4.110.0100.00816.36
7.4.100.0100.01016.54
7.4.90.0100.00716.54
7.4.80.0220.00019.39
7.4.70.0140.01116.46
7.4.60.0040.01416.38
7.4.50.0000.00816.53
7.4.40.0120.00416.63
7.4.30.0140.01016.69
7.4.00.0070.01014.95
7.3.330.0000.00513.04
7.3.320.0000.00513.01
7.3.310.0030.00316.16
7.3.300.0000.00716.09
7.3.290.0030.01216.13
7.3.280.0090.00916.24
7.3.270.0100.01017.40
7.3.260.0070.01016.31
7.3.250.0100.00816.21
7.3.240.0060.01216.15
7.3.230.0100.01016.39
7.3.210.0120.00616.43
7.3.200.0070.01419.39
7.3.190.0150.00316.50
7.3.180.0120.00316.61
7.3.170.0090.01516.27
7.3.160.0080.00816.56
7.3.120.0090.00714.54
7.3.110.0050.01014.64
7.3.100.0050.00814.77
7.3.90.0020.01114.90
7.3.80.0070.01214.74
7.3.70.0070.00514.79
7.3.60.0050.00714.74
7.3.50.0080.00514.61
7.3.40.0020.01214.70
7.3.30.0020.00914.75
7.3.20.0070.00616.66
7.3.10.0050.01016.66
7.3.00.0080.00616.56
7.2.330.0090.01816.28
7.2.320.0060.01516.62
7.2.310.0110.00616.58
7.2.300.0060.01116.60
7.2.290.0170.00016.58
7.2.250.0080.00815.11
7.2.240.0050.01115.04
7.2.230.0060.01014.91
7.2.220.0030.01014.91
7.2.210.0060.01114.80
7.2.200.0060.00814.94
7.2.190.0080.00214.97
7.2.180.0060.00615.07
7.2.170.0060.00614.97
7.2.160.0070.00715.04
7.2.150.0090.00316.86
7.2.140.0000.01316.88
7.2.130.0070.01016.76
7.2.120.0060.00616.92
7.2.110.0150.00316.84
7.2.100.0030.01016.73
7.2.90.0110.00316.61
7.2.80.0100.00716.77
7.2.70.0030.00816.81
7.2.60.0080.00516.72
7.2.50.0040.01416.83
7.2.40.0040.01116.84
7.2.30.0030.00916.91
7.2.20.0030.01516.65
7.2.10.0070.01016.82
7.2.00.0060.00817.96
7.1.330.0050.00715.76
7.1.320.0070.00515.50
7.1.310.0070.00315.56
7.1.300.0060.00815.72
7.1.290.0040.00815.55
7.1.280.0060.00315.67
7.1.270.0070.00715.67
7.1.260.0070.00615.83
7.1.250.0340.00615.60
7.1.200.0040.00715.59
7.1.100.0040.00418.19
7.1.70.0040.00416.86
7.1.60.0120.01219.61
7.1.50.0100.01416.50
7.1.00.0000.08022.45
7.0.200.0000.00816.63
7.0.140.0030.07322.09
7.0.60.0030.06720.04
7.0.50.0030.07317.81
7.0.40.0070.04720.23
7.0.30.0430.03720.04
7.0.20.0370.07720.16
7.0.10.0070.08320.17
7.0.00.0030.08020.19
5.6.280.0070.07020.92
5.6.210.0070.03720.50
5.6.200.0070.07318.14
5.6.190.0070.07720.61
5.6.180.0330.08320.41
5.6.170.0230.05720.54
5.6.160.0070.08720.70
5.6.150.0070.07718.15
5.6.140.0070.03718.24
5.6.130.0100.03318.11
5.6.120.0070.04021.04
5.6.110.0070.09021.00
5.6.100.0100.07321.12
5.6.90.0130.07720.87
5.6.80.0070.08320.30
5.5.350.0430.06020.39
5.5.340.0200.04317.98
5.5.330.0300.05020.56
5.5.320.0130.07320.29
5.5.310.0370.07320.12
5.5.300.0100.07317.98
5.5.290.0170.07317.95
5.5.280.0070.04320.76
5.5.270.0130.08020.78
5.5.260.0030.04020.86
5.5.250.0100.07720.55
5.5.240.0100.07320.14
5.4.450.0830.06019.41
5.4.440.0200.05319.60
5.4.430.0070.06719.51
5.4.420.0070.06019.48
5.4.410.0070.06319.51
5.4.400.0170.05719.27
5.4.390.0200.05019.19
5.4.380.0230.06318.67
5.4.370.0230.05718.66
5.4.360.0330.07718.77
5.4.350.0230.04718.66
5.4.340.0270.05018.60
5.4.320.0060.03812.46
5.4.310.0060.03912.45
5.4.300.0070.03412.45
5.4.290.0050.03812.45
5.4.280.0070.03412.35
5.4.270.0070.03412.35
5.4.260.0050.03712.35
5.4.250.0040.03812.35
5.4.240.0030.03812.34
5.4.230.0030.04112.34
5.4.220.0080.03412.34
5.4.210.0080.03312.34
5.4.200.0120.03212.34
5.4.190.0050.03712.34
5.4.180.0060.03512.34
5.4.170.0050.03812.34
5.4.160.0080.03412.34
5.4.150.0050.03712.34
5.4.140.0050.03812.02
5.4.130.0060.03612.01
5.4.120.0050.03611.96
5.4.110.0040.03711.97
5.4.100.0070.03511.96
5.4.90.0060.03711.96
5.4.80.0080.03611.96
5.4.70.0040.03711.96
5.4.60.0040.03811.96
5.4.50.0060.03411.96
5.4.40.0060.03511.95
5.4.30.0050.03611.95
5.4.20.0090.04911.95
5.4.10.0060.03811.95
5.4.00.0030.04211.43
5.3.290.0060.04012.80
5.3.280.0060.03812.71
5.3.270.0080.03712.73
5.3.260.0040.04212.72
5.3.250.0060.03912.72
5.3.240.0070.03712.71
5.3.230.0050.03812.71
5.3.220.0050.03812.68
5.3.210.0120.03412.68
5.3.200.0110.03412.68
5.3.190.0090.03512.68
5.3.180.0070.03812.68
5.3.170.0090.03812.67
5.3.160.0040.03912.68
5.3.150.0060.03712.67
5.3.140.0070.04412.66
5.3.130.0060.04212.66
5.3.120.0100.03712.66
5.3.110.0070.03912.66
5.3.100.0050.03912.12
5.3.90.0090.03612.08
5.3.80.0060.03912.08
5.3.70.0080.03812.08
5.3.60.0070.03612.06
5.3.50.0060.03612.00
5.3.40.0060.03712.00
5.3.30.0080.03411.94
5.3.20.0070.03411.72
5.3.10.0060.03411.69
5.3.00.0080.03411.68
5.2.170.0050.0309.18
5.2.160.0050.0299.18
5.2.150.0040.0319.18
5.2.140.0070.0299.18
5.2.130.0030.0309.14
5.2.120.0050.0279.14
5.2.110.0050.0289.15
5.2.100.0100.0229.14
5.2.90.0040.0309.14
5.2.80.0080.0269.14
5.2.70.0070.0279.14
5.2.60.0040.0319.09
5.2.50.0070.0279.05
5.2.40.0070.0299.03
5.2.30.0060.0299.01
5.2.20.0040.0309.00
5.2.10.0050.0298.92
5.2.00.0070.0308.78
5.1.60.0070.0268.07
5.1.50.0070.0288.06
5.1.40.0060.0228.05
5.1.30.0060.0248.40
5.1.20.0050.0258.41
5.1.10.0050.0268.14
5.1.00.0050.0258.14
5.0.50.0050.0196.62
5.0.40.0030.0216.48
5.0.30.0030.0326.29
5.0.20.0050.0196.27
5.0.10.0080.0186.25
5.0.00.0030.0346.24
4.4.90.0020.0184.78
4.4.80.0020.0164.76
4.4.70.0020.0164.75
4.4.60.0040.0144.75
4.4.50.0000.0184.77
4.4.40.0020.0264.70
4.4.30.0030.0154.76
4.4.20.0040.0144.85
4.4.10.0040.0144.85
4.4.00.0040.0244.75
4.3.110.0050.0144.67
4.3.100.0040.0144.67
4.3.90.0070.0114.64
4.3.80.0030.0244.59
4.3.70.0040.0144.63
4.3.60.0040.0144.63
4.3.50.0010.0184.63
4.3.40.0030.0234.54
4.3.30.0010.0173.28
4.3.20.0020.0173.26
4.3.10.0050.0133.23
4.3.00.0170.0277.56

preferences:
43.24 ms | 401 KiB | 5 Q