3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array(1,2,3),array(2),3); $b = array(array(1,2,3),array(2),3); $f = array(array(2,3,4),array(3),4); $c = array(array_merge($a, $b, $f,34)); $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.0060.00916.50
8.3.50.0100.01021.82
8.3.40.0070.00718.58
8.3.30.0040.01119.08
8.3.20.0040.00420.36
8.3.10.0060.00320.39
8.3.00.0030.00619.25
8.2.180.0110.00416.63
8.2.170.0120.00622.96
8.2.160.0130.00620.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.16
8.2.110.0000.01019.45
8.2.100.0080.00317.78
8.2.90.0000.00719.14
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00717.68
8.2.50.0080.00318.07
8.2.40.0040.00418.09
8.2.30.0050.00519.49
8.2.20.0040.00417.72
8.2.10.0040.00418.05
8.2.00.0050.00217.73
8.1.280.0140.00325.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01022.06
8.1.230.0060.00618.91
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0080.00417.23
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0090.00018.71
8.1.160.0040.00421.97
8.1.150.0070.00018.69
8.1.140.0070.00017.39
8.1.130.0070.00017.83
8.1.120.0080.00017.43
8.1.110.0020.00517.35
8.1.100.0070.00017.40
8.1.90.0020.00517.45
8.1.80.0040.00417.41
8.1.70.0000.00717.37
8.1.60.0040.00417.48
8.1.50.0080.00017.39
8.1.40.0000.00717.51
8.1.30.0030.00617.63
8.1.20.0050.00317.49
8.1.10.0070.00017.52
8.1.00.0000.00817.39
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0000.00717.19
8.0.260.0070.00017.20
8.0.250.0050.00217.00
8.0.240.0000.00716.89
8.0.230.0070.00016.96
8.0.220.0000.00616.81
8.0.210.0030.00316.91
8.0.200.0030.00316.82
8.0.190.0050.00216.91
8.0.180.0000.00716.91
8.0.170.0040.00416.94
8.0.160.0000.00716.88
8.0.150.0070.00016.82
8.0.140.0000.01016.74
8.0.130.0030.00313.31
8.0.120.0040.00416.73
8.0.110.0020.00516.83
8.0.100.0040.00416.80
8.0.90.0030.00616.83
8.0.80.0060.00916.95
8.0.70.0040.00416.96
8.0.60.0070.00016.82
8.0.50.0040.00416.78
8.0.30.0100.01217.14
8.0.20.0080.01417.40
8.0.10.0040.00416.89
8.0.00.0110.00616.59
7.4.330.0000.00615.00
7.4.320.0060.00016.43
7.4.300.0060.00016.46
7.4.290.0020.00516.43
7.4.280.0030.00716.50
7.4.270.0000.00716.48
7.4.260.0030.00316.49
7.4.250.0080.00016.37
7.4.240.0050.00216.52
7.4.230.0070.00016.26
7.4.220.0030.01516.52
7.4.210.0040.01116.67
7.4.200.0030.00316.34
7.4.160.0040.01216.41
7.4.150.0140.01017.40
7.4.140.0160.00617.86
7.4.130.0090.01116.61
7.4.120.0150.00216.62
7.4.110.0030.01316.71
7.4.100.0060.01216.46
7.4.90.0130.00316.53
7.4.80.0130.01019.39
7.4.70.0140.00616.59
7.4.60.0120.00616.47
7.4.50.0030.00516.29
7.4.40.0170.00316.59
7.4.30.0040.01516.46
7.4.00.0090.00814.96
7.3.330.0020.00213.19
7.3.320.0050.00013.25
7.3.310.0000.00716.23
7.3.300.0080.00016.24
7.3.290.0090.00616.36
7.3.280.0090.00616.26
7.3.270.0100.01117.40
7.3.260.0070.01416.29
7.3.250.0040.01316.41
7.3.240.0120.00616.52
7.3.230.0080.00816.39
7.3.210.0100.01316.21
7.3.200.0090.01319.39
7.3.190.0100.00716.15
7.3.180.0080.00816.55
7.3.170.0100.00716.55
7.3.160.0090.00616.33
7.3.120.0050.01214.72
7.3.110.0050.01114.70
7.3.100.0110.00514.77
7.3.90.0020.00914.87
7.3.80.0050.00814.69
7.3.70.0050.00914.79
7.3.60.0040.00914.78
7.3.50.0080.00614.83
7.3.40.0060.00814.69
7.3.30.0120.00514.83
7.3.20.0020.01516.61
7.3.10.0080.00616.58
7.3.00.0030.01216.53
7.2.330.0130.00916.45
7.2.320.0070.01416.62
7.2.310.0030.01416.44
7.2.300.0120.00616.68
7.2.290.0040.01116.26
7.2.250.0110.00915.09
7.2.240.0050.01514.78
7.2.230.0070.00915.03
7.2.220.0040.00914.99
7.2.210.0040.00714.88
7.2.200.0060.00915.06
7.2.190.0060.00814.86
7.2.180.0110.00514.72
7.2.170.0080.00815.05
7.2.60.0060.00916.88
7.2.50.0180.00016.68
7.1.330.0050.01015.70
7.1.320.0050.00815.65
7.1.310.0060.00815.70
7.1.300.0050.01115.75
7.1.290.0070.01015.58
7.1.280.0060.00715.78
7.1.270.0060.00915.74
7.1.260.0050.00715.73
7.1.200.0100.00315.76
7.1.70.0060.00317.22
7.1.60.0090.01519.61
7.1.50.0070.01616.94
7.1.00.0030.07722.34
7.0.200.0030.00616.61
7.0.140.0000.07722.21
7.0.60.0030.06720.01
7.0.50.0000.06717.80
7.0.40.0070.08720.07
7.0.30.0500.03720.32
7.0.20.0300.06320.09
7.0.10.0130.07320.30
7.0.00.0230.07020.12
5.6.280.0030.07320.81
5.6.210.0130.06720.54
5.6.200.0130.07318.21
5.6.190.0100.03720.61
5.6.180.3270.04020.39
5.6.170.0270.05020.62
5.6.160.0130.03720.43
5.6.150.0070.08318.16
5.6.140.0070.03718.18
5.6.130.0070.08018.14
5.6.120.0100.08020.99
5.6.110.0200.07321.05
5.6.100.0130.04321.00
5.6.90.0070.08320.96
5.6.80.0100.06020.43
5.6.70.0300.05320.31
5.5.350.0270.07320.43
5.5.340.0030.05718.02
5.5.330.0070.04020.25
5.5.320.0400.07720.13
5.5.310.0170.04320.32
5.5.300.0000.04317.98
5.5.290.0070.03717.88
5.5.280.0100.03320.87
5.5.270.0100.08320.81
5.5.260.0130.08320.72
5.5.250.0030.09020.49
5.5.240.0100.06720.07
5.4.450.0400.06719.63
5.4.440.0230.07019.48
5.4.430.0930.05319.54
5.4.420.0670.06019.56
5.4.410.0670.04719.09
5.4.400.0130.04718.85
5.4.390.0770.05719.21
5.4.380.0230.05718.50
5.4.370.0100.06318.49
5.4.360.0130.05318.48
5.4.350.0070.06318.57
5.4.340.0100.06318.63
5.4.320.0100.05112.46
5.4.310.0050.03912.45
5.4.300.0080.03912.45
5.4.290.0110.05712.45
5.4.280.0070.03512.35
5.4.270.0080.03712.35
5.4.260.0060.04112.35
5.4.250.0090.04012.35
5.4.240.0080.04412.35
5.4.230.0070.04212.34
5.4.220.0070.03712.34
5.4.210.0060.04112.34
5.4.200.0060.03812.34
5.4.190.0040.04112.34
5.4.180.0060.04012.34
5.4.170.0070.03512.35
5.4.160.0080.04012.35
5.4.150.0080.04012.34
5.4.140.0090.05112.03
5.4.130.0070.03812.01
5.4.120.0100.03811.97
5.4.110.0070.04511.97
5.4.100.0090.03811.96
5.4.90.0080.03611.96
5.4.80.0110.03711.96
5.4.70.0090.04111.96
5.4.60.0060.04311.96
5.4.50.0080.03711.96
5.4.40.0070.03411.95
5.4.30.0040.04211.95
5.4.20.0070.03911.95
5.4.10.0030.03811.95
5.4.00.0060.04111.44
5.3.290.0070.04212.80
5.3.280.0040.04012.71
5.3.270.0080.03912.72
5.3.260.0090.03912.72
5.3.250.0080.04012.72
5.3.240.0040.04012.72
5.3.230.0060.04412.71
5.3.220.0060.03812.68
5.3.210.0070.04212.68
5.3.200.0090.04212.68
5.3.190.0080.04012.68
5.3.180.0070.03812.67
5.3.170.0120.04012.67
5.3.160.0090.03912.67
5.3.150.0070.03812.67
5.3.140.0080.04812.66
5.3.130.0100.04312.66
5.3.120.0080.04512.66
5.3.110.0110.04012.66
5.3.100.0100.03912.12
5.3.90.0060.03912.08
5.3.80.0060.03812.07
5.3.70.0080.04312.07
5.3.60.0070.03912.06
5.3.50.0070.04612.00
5.3.40.0100.04012.00
5.3.30.0100.04011.95
5.3.20.0080.04111.72
5.3.10.0090.03411.69
5.3.00.0070.04611.68
5.2.170.0080.0339.18
5.2.160.0080.0339.18
5.2.150.0070.0329.18
5.2.140.0040.0319.18
5.2.130.0040.0409.14
5.2.120.0090.0299.14
5.2.110.0040.0309.15
5.2.100.0040.0309.14
5.2.90.0070.0309.14
5.2.80.0020.0359.14
5.2.70.0050.0359.14
5.2.60.0060.0319.09
5.2.50.0060.0319.06
5.2.40.0050.0309.03
5.2.30.0050.0339.01
5.2.20.0040.0369.00
5.2.10.0040.0388.92
5.2.00.0040.0318.78
5.1.60.0040.0268.07
5.1.50.0050.0298.06
5.1.40.0060.0248.05
5.1.30.0080.0258.40
5.1.20.0070.0298.42
5.1.10.0040.0268.14
5.1.00.0050.0258.14
5.0.50.0060.0196.62
5.0.40.0050.0346.48
5.0.30.0050.0406.29
5.0.20.0080.0236.27
5.0.10.0040.0216.24
5.0.00.0040.0316.23
4.4.90.0050.0144.78
4.4.80.0020.0174.75
4.4.70.0030.0154.76
4.4.60.0060.0134.75
4.4.50.0030.0224.77
4.4.40.0050.0264.70
4.4.30.0040.0214.76
4.4.20.0030.0164.85
4.4.10.0040.0224.85
4.4.00.0050.0264.75
4.3.110.0020.0164.67
4.3.100.0020.0164.66
4.3.90.0060.0174.63
4.3.80.0060.0244.59
4.3.70.0010.0164.63
4.3.60.0030.0154.62
4.3.50.0020.0184.63
4.3.40.0080.0304.54
4.3.30.0020.0213.29
4.3.20.0030.0163.27
4.3.10.0020.0203.22
4.3.00.0000.0276.95

preferences:
39.89 ms | 401 KiB | 5 Q