3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['one', 'two', 'three']; $arr2 = ['three', 'four']; $arr3 = ['two', 'five', 'six', 'seven']; print_r( array_unique( $arr1 + $arr2 + $arr3) );

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.70.0030.01216.38
8.3.60.0150.00318.31
8.3.50.0120.00317.37
8.3.40.0000.01418.59
8.3.30.0100.00618.41
8.3.20.0040.00418.77
8.3.10.0050.00221.65
8.3.00.0040.00420.84
8.2.190.0090.00618.16
8.2.180.0140.00718.16
8.2.170.0040.01122.96
8.2.160.0030.01022.04
8.2.150.0000.00725.66
8.2.140.0050.00224.66
8.2.130.0050.00220.55
8.2.120.0000.00826.16
8.2.110.0030.00720.94
8.2.100.0080.00318.16
8.2.90.0080.00219.05
8.2.80.0060.00317.97
8.2.70.0030.00517.50
8.2.60.0050.00217.80
8.2.50.0080.00018.07
8.2.40.0070.00318.03
8.2.30.0050.00318.09
8.2.20.0030.00518.00
8.2.10.0000.00818.04
8.2.00.0070.00017.98
8.1.280.0110.00325.92
8.1.270.0000.00823.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00023.86
8.1.230.0070.00418.84
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0040.00418.81
8.1.150.0050.00320.62
8.1.140.0000.00719.50
8.1.130.0000.00818.86
8.1.120.0040.00417.30
8.1.110.0030.00517.38
8.1.100.0080.00017.38
8.1.90.0040.00717.41
8.1.80.0030.00317.38
8.1.70.0030.00617.32
8.1.60.0000.00717.50
8.1.50.0050.00317.43
8.1.40.0040.00417.43
8.1.30.0000.00717.43
8.1.20.0050.00317.64
8.1.10.0030.00517.34
8.1.00.0030.00517.43
8.0.300.0000.00918.77
8.0.290.0060.00316.75
8.0.280.0060.00318.33
8.0.270.0030.00516.72
8.0.260.0000.00716.81
8.0.250.0030.00316.93
8.0.240.0100.00016.92
8.0.230.0090.00016.96
8.0.220.0030.00316.74
8.0.210.0050.00216.89
8.0.200.0020.00516.86
8.0.190.0040.00416.94
8.0.180.0000.00716.89
8.0.170.0070.00016.93
8.0.160.0040.00416.95
8.0.150.0070.00016.81
8.0.140.0040.00416.74
8.0.130.0000.00513.32
8.0.120.0070.00016.80
8.0.110.0040.00416.71
8.0.100.0040.00416.70
8.0.90.0000.00716.76
8.0.80.0060.01516.81
8.0.70.0000.00716.94
8.0.60.0000.00716.83
8.0.50.0000.00716.84
8.0.30.0120.00516.91
8.0.20.0120.00717.40
8.0.10.0030.00317.00
8.0.00.0140.00416.65
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0000.00616.52
7.4.290.0020.00516.43
7.4.280.0060.00316.34
7.4.270.0000.00816.34
7.4.260.0000.00513.13
7.4.250.0050.00316.40
7.4.240.0040.00416.38
7.4.230.0050.00216.31
7.4.220.0030.01416.47
7.4.210.0090.01116.45
7.4.200.0000.00716.41
7.4.160.0060.01016.40
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0040.01616.37
7.4.120.0090.00816.39
7.4.110.0090.00916.33
7.4.100.0110.01016.46
7.4.90.0130.00316.53
7.4.80.0060.01319.39
7.4.70.0030.01316.34
7.4.60.0080.00816.30
7.4.50.0070.00716.43
7.4.40.0120.00316.24
7.4.30.0060.01216.49
7.4.00.0070.01014.93
7.3.330.0000.00513.02
7.3.320.0020.00212.95
7.3.310.0000.00716.00
7.3.300.0060.00016.21
7.3.290.0030.00316.10
7.3.280.0090.00816.18
7.3.270.0030.01417.40
7.3.260.0120.00616.38
7.3.250.0100.00916.32
7.3.240.0090.01016.25
7.3.230.0030.01316.55
7.3.210.0090.00916.15
7.3.200.0110.00516.32
7.3.190.0090.00616.32
7.3.180.0130.00316.32
7.3.170.0120.00416.25
7.3.160.0060.01016.21
7.2.330.0100.01016.55
7.2.320.0110.01116.42
7.2.310.0060.01016.55
7.2.300.0060.01016.53
7.2.290.0080.00916.41
7.2.60.0030.01316.61
7.1.200.0000.01415.79
7.1.70.0150.00016.72
7.1.60.0700.00333.31
7.1.50.0630.01032.82
7.1.40.0630.01032.68
7.1.30.0670.01032.62
7.1.20.0770.01732.82
7.1.10.0700.00714.56
7.1.00.0530.01014.78
7.0.200.0500.00714.79
7.0.190.0530.00714.70
7.0.180.0500.01314.25
7.0.170.0800.01314.27
7.0.160.0530.00714.27
7.0.150.0600.00714.39
7.0.140.0530.01014.19
7.0.130.1070.00714.56
7.0.120.0530.00714.37
7.0.110.0600.00314.45
7.0.100.0600.00714.48
7.0.90.0500.01314.31
7.0.80.0570.00714.36
7.0.70.0530.01014.62
7.0.60.0570.00314.23
7.0.50.0500.01014.29
7.0.40.0500.01014.32
7.0.30.0430.01314.43
7.0.20.0530.00714.61
7.0.10.0530.00714.43
7.0.00.0570.00314.25

preferences:
20.03 ms | 401 KiB | 5 Q