3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array(1,2,3),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)); $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.0070.00716.38
8.3.50.0090.00621.78
8.3.40.0070.00718.70
8.3.30.0140.00018.92
8.3.20.0040.00420.29
8.3.10.0040.00420.48
8.3.00.0040.00419.25
8.2.180.0040.01116.50
8.2.170.0110.00422.96
8.2.160.0150.00020.52
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0060.00321.09
8.2.110.0030.00620.47
8.2.100.0110.00018.03
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0040.00417.79
8.2.50.0000.00818.07
8.2.40.0030.00618.22
8.2.30.0080.00019.32
8.2.20.0040.00417.63
8.2.10.0080.00017.99
8.2.00.0000.00817.79
8.1.280.0110.00325.92
8.1.270.0000.00823.82
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0140.00723.91
8.1.230.0060.00618.96
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0000.00817.23
8.1.180.0040.00418.97
8.1.170.0040.00418.43
8.1.160.0050.00222.01
8.1.150.0050.00218.95
8.1.140.0080.00017.35
8.1.130.0040.00417.45
8.1.120.0040.00417.48
8.1.110.0040.00417.52
8.1.100.0040.00417.44
8.1.90.0070.00017.45
8.1.80.0070.00017.45
8.1.70.0030.00317.43
8.1.60.0030.00517.59
8.1.50.0070.00017.50
8.1.40.0000.00817.55
8.1.30.0030.00517.67
8.1.20.0050.00317.66
8.1.10.0040.00417.51
8.1.00.0040.00417.32
8.0.300.0030.00518.77
8.0.290.0040.00416.60
8.0.280.0000.00718.45
8.0.270.0030.00317.25
8.0.260.0040.00416.80
8.0.250.0000.00716.94
8.0.240.0040.00416.92
8.0.230.0070.00016.98
8.0.220.0000.00716.78
8.0.210.0070.00016.89
8.0.200.0030.00316.96
8.0.190.0040.00416.99
8.0.180.0040.00416.91
8.0.170.0030.00616.90
8.0.160.0050.00316.95
8.0.150.0050.00316.82
8.0.140.0000.01016.81
8.0.130.0080.00013.40
8.0.120.0080.00016.86
8.0.110.0040.00416.80
8.0.100.0040.00416.73
8.0.90.0000.00716.83
8.0.80.0060.00916.88
8.0.70.0000.00716.71
8.0.60.0000.00716.67
8.0.50.0070.00016.90
8.0.30.0140.00617.24
8.0.20.0110.01117.40
8.0.10.0070.00016.88
8.0.00.0190.01716.72
7.4.330.0050.00015.00
7.4.320.0030.00316.52
7.4.300.0000.00616.55
7.4.290.0030.00316.55
7.4.280.0050.00516.44
7.4.270.0000.00716.57
7.4.260.0030.00316.62
7.4.250.0000.00716.54
7.4.240.0020.00516.55
7.4.230.0000.00716.71
7.4.220.0090.00916.57
7.4.210.0070.01716.53
7.4.200.0020.00516.40
7.4.160.0060.00916.41
7.4.150.0070.01117.40
7.4.140.0120.01017.86
7.4.130.0070.01116.54
7.4.120.0080.00916.33
7.4.110.0070.01116.56
7.4.100.0130.00516.57
7.4.90.0160.00316.40
7.4.80.0140.00419.39
7.4.70.0170.01416.53
7.4.60.0050.01316.44
7.4.50.0030.00516.45
7.4.40.0040.01416.68
7.4.30.0130.01016.33
7.4.00.0060.00914.66
7.3.330.0050.00013.04
7.3.320.0000.00513.00
7.3.310.0070.00016.24
7.3.300.0060.00016.22
7.3.290.0040.01016.14
7.3.280.0090.00616.17
7.3.270.0070.01117.40
7.3.260.0040.01316.46
7.3.250.0060.01116.22
7.3.240.0160.00316.17
7.3.230.0030.01516.39
7.3.210.0070.01716.40
7.3.200.0120.00619.39
7.3.190.0070.01116.23
7.3.180.0070.01016.05
7.3.170.0040.01416.39
7.3.160.0130.00316.46
7.3.120.0080.00814.72
7.3.110.0100.00314.80
7.3.100.0040.01114.66
7.3.90.0030.01014.50
7.3.80.0030.01214.70
7.3.70.0030.01014.55
7.3.60.0000.01414.49
7.3.50.0030.00914.73
7.3.40.0060.00614.84
7.3.30.0060.00914.72
7.3.20.0060.00816.59
7.3.10.0000.01416.33
7.3.00.0060.01016.77
7.2.330.0160.01016.66
7.2.320.0060.01216.37
7.2.310.0150.00916.61
7.2.300.0070.01016.30
7.2.290.0100.00616.41
7.2.240.0130.00315.09
7.2.230.0070.01014.61
7.2.220.0110.00014.75
7.2.210.0030.01415.13
7.2.200.0060.00614.80
7.2.190.0060.00914.63
7.2.180.0110.00414.57
7.2.170.0030.01414.70
7.2.160.0070.00715.05
7.2.150.0030.01316.64
7.2.140.0000.01417.01
7.2.130.0070.00716.54
7.2.120.0070.00317.02
7.2.110.0090.00616.87
7.2.100.0100.00616.54
7.2.90.0070.01016.89
7.2.80.0080.00317.09
7.2.70.0000.01416.75
7.2.60.0070.00316.99
7.2.50.0060.00916.98
7.2.40.0090.00616.84
7.2.30.0070.00716.96
7.2.20.0060.00616.66
7.2.10.0040.01116.72
7.2.00.0100.00017.00
7.1.330.0000.01315.80
7.1.320.0090.00615.44
7.1.310.0040.01116.00
7.1.300.0110.00415.68
7.1.290.0060.01215.51
7.1.280.0070.00715.69
7.1.270.0120.00315.76
7.1.260.0030.01115.48
7.1.250.0040.00815.68
7.1.70.0000.00917.21
7.1.60.0090.01619.61
7.1.50.0100.01016.84
7.1.00.0000.08022.28
7.0.200.0030.00316.45
7.0.140.0070.07322.00
7.0.60.0070.03719.87
7.0.50.0030.04317.81
7.0.40.0130.08320.20
7.0.30.0330.07020.30
7.0.20.0230.06720.10
7.0.10.0070.06720.16
7.0.00.0100.05720.17
5.6.280.0100.06720.78
5.6.210.0100.04020.74
5.6.200.0070.08318.22
5.6.190.0070.09020.79
5.6.180.0370.05020.56
5.6.170.0070.05720.48
5.6.160.0100.08720.37
5.6.150.0070.04718.17
5.6.140.0070.08318.13
5.6.130.0070.04718.11
5.6.120.0070.08020.87
5.6.110.0130.07020.96
5.6.100.0070.08021.04
5.6.90.0170.07720.94
5.6.80.0100.07020.50
5.5.350.0100.04720.32
5.5.340.0100.05717.88
5.5.330.0030.09320.25
5.5.320.0030.08020.32
5.5.310.0230.05720.23
5.5.300.0130.07717.89
5.5.290.0030.07017.95
5.5.280.0070.06020.80
5.5.270.0130.07020.72
5.5.260.0130.06320.95
5.5.250.0070.09020.77
5.5.240.0100.07720.03
5.4.450.0570.07319.39
5.4.440.0030.03319.18
5.4.430.0800.05319.41
5.4.420.0730.05719.48
5.4.410.0770.05319.20
5.4.400.0870.06019.10
5.4.390.1170.06719.03
5.4.380.0230.05718.56
5.4.370.0170.06018.63
5.4.360.0300.05718.56
5.4.350.0170.08018.50
5.4.340.0330.04718.45
5.4.320.0060.03712.46
5.4.310.0100.03512.45
5.4.300.0050.03712.45
5.4.290.0090.03512.45
5.4.280.0070.03512.35
5.4.270.0060.03612.35
5.4.260.0060.03812.35
5.4.250.0070.03712.35
5.4.240.0060.03612.35
5.4.230.0090.03612.34
5.4.220.0040.03812.34
5.4.210.0050.03712.34
5.4.200.0050.04012.34
5.4.190.0070.03512.34
5.4.180.0090.03312.34
5.4.170.0100.03512.35
5.4.160.0090.03312.34
5.4.150.0050.03812.34
5.4.140.0060.04112.03
5.4.130.0090.03512.01
5.4.120.0050.03711.97
5.4.110.0050.03711.96
5.4.100.0090.03211.97
5.4.90.0090.03511.96
5.4.80.0040.04011.96
5.4.70.0070.03611.96
5.4.60.0070.04511.96
5.4.50.0090.03611.96
5.4.40.0120.04211.95
5.4.30.0070.04911.95
5.4.20.0090.04811.95
5.4.10.0090.04811.95
5.4.00.0100.04611.45
5.3.290.0120.03712.80
5.3.280.0130.04312.71
5.3.270.0090.03912.72
5.3.260.0060.04112.72
5.3.250.0110.03412.72
5.3.240.0060.03712.72
5.3.230.0070.03812.71
5.3.220.0070.03712.68
5.3.210.0140.03912.68
5.3.200.0030.04112.68
5.3.190.0050.04012.68
5.3.180.0150.03912.67
5.3.170.0050.03812.67
5.3.160.0050.03912.68
5.3.150.0070.03812.67
5.3.140.0090.04012.66
5.3.130.0120.03812.66
5.3.120.0070.03912.66
5.3.110.0070.04412.66
5.3.100.0050.04112.12
5.3.90.0060.03912.08
5.3.80.0090.03412.08
5.3.70.0110.03212.07
5.3.60.0060.03612.07
5.3.50.0050.03712.00
5.3.40.0060.03712.00
5.3.30.0060.03611.95
5.3.20.0070.03611.73
5.3.10.0050.03811.69
5.3.00.0060.03911.68
5.2.170.0060.0309.18
5.2.160.0050.0309.18
5.2.150.0030.0339.18
5.2.140.0040.0329.18
5.2.130.0040.0329.14
5.2.120.0060.0329.14
5.2.110.0040.0319.15
5.2.100.0060.0289.14
5.2.90.0060.0349.14
5.2.80.0050.0309.14
5.2.70.0080.0399.14
5.2.60.0120.0369.09
5.2.50.0080.0419.05
5.2.40.0100.0379.03
5.2.30.0080.0409.02
5.2.20.0050.0439.00
5.2.10.0060.0298.93
5.2.00.0060.0298.78
5.1.60.0030.0268.07
5.1.50.0050.0298.07
5.1.40.0050.0248.05
5.1.30.0020.0298.40
5.1.20.0060.0268.42
5.1.10.0050.0268.14
5.1.00.0040.0278.14
5.0.50.0050.0196.62
5.0.40.0020.0226.48
5.0.30.0030.0326.29
5.0.20.0010.0226.27
5.0.10.0040.0206.24
5.0.00.0020.0326.24
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0030.0164.76
4.4.60.0050.0144.75
4.4.50.0040.0154.77
4.4.40.0040.0254.71
4.4.30.0020.0174.76
4.4.20.0020.0184.84
4.4.10.0040.0154.85
4.4.00.0040.0244.76
4.3.110.0030.0154.67
4.3.100.0030.0154.67
4.3.90.0020.0174.64
4.3.80.0040.0254.58
4.3.70.0050.0204.63
4.3.60.0040.0204.63
4.3.50.0030.0154.62
4.3.40.0030.0264.54
4.3.30.0020.0183.29
4.3.20.0020.0173.26
4.3.10.0020.0173.23
4.3.00.0000.01313.92

preferences:
43.22 ms | 401 KiB | 5 Q