3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array("hola" => 1)); $b = array(array("como" => 2)); $f = array(array("andas" => 3)); $c = 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.50
8.3.50.0090.00722.04
8.3.40.0070.00718.89
8.3.30.0120.00319.07
8.3.20.0040.00420.25
8.3.10.0040.00420.21
8.3.00.0080.00019.13
8.2.180.0040.01116.50
8.2.170.0060.00922.96
8.2.160.0080.00820.46
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00421.08
8.2.110.0060.00322.08
8.2.100.0080.00417.72
8.2.90.0060.00317.59
8.2.80.0050.00317.97
8.2.70.0000.00817.92
8.2.60.0000.00818.04
8.2.50.0040.00418.10
8.2.40.0080.00020.50
8.2.30.0040.00419.32
8.2.20.0000.00717.55
8.2.10.0050.00319.82
8.2.00.0000.00817.63
8.1.280.0080.01125.92
8.1.270.0060.00323.71
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.18
8.1.230.0110.00019.16
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0070.00317.09
8.1.180.0040.00418.10
8.1.170.0040.00418.63
8.1.160.0050.00321.98
8.1.150.0000.00818.82
8.1.140.0040.00417.43
8.1.130.0070.00017.87
8.1.120.0000.00717.33
8.1.110.0000.00817.35
8.1.100.0030.00417.35
8.1.90.0000.00717.28
8.1.80.0040.00417.39
8.1.70.0070.00017.34
8.1.60.0120.00017.51
8.1.50.0030.00617.46
8.1.40.0030.00517.42
8.1.30.0030.00517.58
8.1.20.0040.00417.53
8.1.10.0050.00217.39
8.1.00.0050.00217.36
8.0.300.0040.00419.78
8.0.290.0000.00816.75
8.0.280.0070.00018.28
8.0.270.0030.00317.18
8.0.260.0000.00717.14
8.0.250.0050.00316.95
8.0.240.0030.00316.92
8.0.230.0000.00716.98
8.0.220.0070.00016.90
8.0.210.0040.00416.72
8.0.200.0030.00316.95
8.0.190.0030.00316.96
8.0.180.0030.00316.91
8.0.170.0050.00216.79
8.0.160.0040.00416.77
8.0.150.0050.00316.73
8.0.140.0100.00016.91
8.0.130.0000.00513.34
8.0.120.0000.00816.70
8.0.110.0020.00516.88
8.0.100.0040.00416.95
8.0.90.0040.00416.68
8.0.80.0070.01016.91
8.0.70.0080.00016.82
8.0.60.0070.00016.92
8.0.50.0000.00816.92
8.0.30.0100.01117.10
8.0.20.0040.01417.40
8.0.10.0030.00617.00
8.0.00.0060.01016.77
7.4.330.0060.00015.00
7.4.320.0060.00016.56
7.4.300.0000.00816.52
7.4.290.0040.00416.57
7.4.280.0070.00416.51
7.4.270.0050.00316.58
7.4.260.0060.00016.41
7.4.250.0000.00716.52
7.4.240.0030.00316.50
7.4.230.0030.00316.24
7.4.220.0040.01216.56
7.4.210.0050.00816.57
7.4.200.0000.00716.55
7.4.160.0090.00616.56
7.4.150.0100.00717.40
7.4.140.0140.00417.86
7.4.130.0110.00616.28
7.4.120.0040.01316.38
7.4.110.0150.00316.39
7.4.100.0090.01016.48
7.4.90.0060.00916.45
7.4.80.0080.00819.39
7.4.70.0130.00316.45
7.4.60.0060.01016.44
7.4.50.0030.00616.22
7.4.40.0120.00616.38
7.4.30.0070.01416.45
7.4.00.0070.01014.54
7.3.330.0050.00013.13
7.3.320.0000.00512.99
7.3.310.0070.00016.04
7.3.300.0000.00616.11
7.3.290.0070.00616.18
7.3.280.0120.00516.21
7.3.270.0110.00917.40
7.3.260.0050.01116.30
7.3.250.0150.00516.25
7.3.240.0060.01216.30
7.3.230.0160.00016.39
7.3.210.0130.00316.11
7.3.200.0120.00919.39
7.3.190.0080.00916.21
7.3.180.0100.00616.42
7.3.170.0100.00716.27
7.3.160.0100.00616.18
7.3.10.0060.00516.40
7.3.00.0030.00716.65
7.2.330.0090.00916.45
7.2.320.0170.00016.51
7.2.310.0030.01416.48
7.2.300.0030.01816.53
7.2.290.0110.00516.21
7.2.130.0030.00916.75
7.2.120.0030.01016.69
7.2.110.0070.00916.74
7.2.100.0080.00516.74
7.2.90.0080.01016.73
7.2.80.0050.01316.53
7.2.70.0070.00716.77
7.2.60.0070.00616.80
7.2.50.0090.00616.76
7.2.40.0030.00816.50
7.2.30.0080.00816.41
7.2.20.0080.00916.52
7.2.10.0040.00916.46
7.2.00.0040.00817.34
7.1.250.0070.00715.66
7.1.200.0030.00615.63
7.1.100.0040.00717.99
7.1.70.0000.00817.20
7.1.60.0070.01319.61
7.1.50.0090.01516.83
7.1.00.0000.07022.27
7.0.200.0040.00416.55
7.0.140.0170.06022.12
7.0.60.0070.07319.85
7.0.50.0100.08317.84
7.0.40.0000.04719.98
7.0.30.0300.07720.13
7.0.20.0230.06720.14
7.0.10.0070.05720.09
7.0.00.0000.09020.12
5.6.280.0000.07720.77
5.6.210.0030.04020.60
5.6.200.0000.07318.16
5.6.190.0030.04720.35
5.6.180.0300.06020.61
5.6.170.0270.07320.62
5.6.160.0030.04320.48
5.6.150.0030.08018.17
5.6.140.0130.07718.11
5.6.130.0070.03718.21
5.6.120.0070.08320.96
5.6.110.0130.07721.13
5.6.100.0100.07020.97
5.6.90.0170.07020.94
5.6.80.0070.05320.39
5.5.350.0070.07720.46
5.5.340.0300.02717.95
5.5.330.0070.04320.52
5.5.320.0070.06720.24
5.5.310.0270.08020.26
5.5.300.0130.07318.02
5.5.290.0070.07717.94
5.5.280.0070.08320.94
5.5.270.0030.05720.72
5.5.260.0100.03320.63
5.5.250.0100.06020.60
5.5.240.0300.05320.11
5.4.450.0630.05019.49
5.4.440.0970.08019.58
5.4.430.0570.06319.51
5.4.420.0200.05019.47
5.4.410.0970.06019.32
5.4.400.0830.04719.20
5.4.390.0900.05018.91
5.4.380.0230.05718.56
5.4.370.0330.05318.48
5.4.360.0100.06718.64
5.4.350.0400.05018.57
5.4.340.0330.07318.48
5.4.320.0070.04312.45
5.4.310.0060.04312.45
5.4.300.0080.03612.45
5.4.290.0070.03612.45
5.4.280.0080.03712.34
5.4.270.0060.03612.35
5.4.260.0070.04212.34
5.4.250.0120.04012.34
5.4.240.0080.03312.35
5.4.230.0060.04412.34
5.4.220.0060.03512.34
5.4.210.0100.03612.34
5.4.200.0050.04112.34
5.4.190.0050.03912.34
5.4.180.0070.03512.34
5.4.170.0080.04112.34
5.4.160.0140.03612.34
5.4.150.0060.04912.34
5.4.140.0090.03912.02
5.4.130.0070.03912.01
5.4.120.0100.03411.97
5.4.110.0090.03511.96
5.4.100.0080.03911.96
5.4.90.0080.03711.96
5.4.80.0070.03611.96
5.4.70.0050.03611.96
5.4.60.0120.02911.96
5.4.50.0090.03711.96
5.4.40.0090.04111.95
5.4.30.0040.03911.95
5.4.20.0080.03411.94
5.4.10.0060.03611.95
5.4.00.0060.03611.44
5.3.290.0070.04612.80
5.3.280.0090.04112.71
5.3.270.0100.03612.72
5.3.260.0060.04112.72
5.3.250.0100.04112.72
5.3.240.0060.03912.72
5.3.230.0090.04412.71
5.3.220.0070.04012.68
5.3.210.0080.04712.68
5.3.200.0090.04312.68
5.3.190.0110.04012.68
5.3.180.0100.03612.67
5.3.170.0040.04112.66
5.3.160.0090.03412.67
5.3.150.0070.04012.67
5.3.140.0070.03612.66
5.3.130.0070.03912.66
5.3.120.0080.04612.66
5.3.110.0050.04212.66
5.3.100.0090.04212.12
5.3.90.0070.04112.09
5.3.80.0080.03812.08
5.3.70.0080.03512.07
5.3.60.0060.03912.06
5.3.50.0080.03412.00
5.3.40.0070.04512.00
5.3.30.0080.03611.94
5.3.20.0040.03911.72
5.3.10.0110.03611.69
5.3.00.0060.04211.68
5.2.170.0070.0399.18
5.2.160.0030.0309.18
5.2.150.0020.0379.18
5.2.140.0040.0309.17
5.2.130.0080.0329.13
5.2.120.0040.0309.14
5.2.110.0060.0289.14
5.2.100.0060.0269.14
5.2.90.0050.0319.14
5.2.80.0030.0319.14
5.2.70.0040.0379.13
5.2.60.0040.0309.09
5.2.50.0060.0309.05
5.2.40.0030.0299.03
5.2.30.0060.0279.01
5.2.20.0050.0299.00
5.2.10.0030.0368.92
5.2.00.0050.0278.78
5.1.60.0030.0288.06
5.1.50.0040.0248.05
5.1.40.0060.0308.04
5.1.30.0030.0288.39
5.1.20.0050.0338.41
5.1.10.0070.0288.13
5.1.00.0040.0308.13
5.0.50.0030.0206.62
5.0.40.0050.0256.48
5.0.30.0030.0306.29
5.0.20.0020.0206.26
5.0.10.0050.0186.23
5.0.00.0050.0346.23
4.4.90.0040.0194.78
4.4.80.0020.0154.76
4.4.70.0020.0154.75
4.4.60.0020.0244.76
4.4.50.0000.0194.77
4.4.40.0020.0254.71
4.4.30.0030.0144.76
4.4.20.0040.0204.84
4.4.10.0030.0174.85
4.4.00.0030.0244.76
4.3.110.0030.0174.66
4.3.100.0030.0164.66
4.3.90.0020.0184.64
4.3.80.0030.0274.58
4.3.70.0030.0204.63
4.3.60.0050.0174.63
4.3.50.0010.0164.63
4.3.40.0060.0274.54
4.3.30.0030.0223.28
4.3.20.0000.0173.26
4.3.10.0020.0233.21
4.3.00.0170.0177.55

preferences:
51.64 ms | 401 KiB | 5 Q