3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $arr1 = ['test', 'test', 'foo']; $arr2 = ['test1', 'test', 'bar']; \var_dump(array_intersect(\array_unique($arr1), \array_unique($arr2)));

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.0030.01318.28
8.3.50.0170.00317.95
8.3.40.0170.00318.60
8.3.30.0170.00018.46
8.3.20.0090.00620.11
8.3.10.0080.00020.74
8.3.00.0040.00420.77
8.2.180.0140.00016.35
8.2.170.0110.00422.96
8.2.160.0110.00718.96
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0060.00320.58
8.2.100.0070.00317.78
8.2.90.0040.00420.47
8.2.80.0040.00420.57
8.2.70.0040.00417.80
8.2.60.0080.00318.22
8.2.50.0040.00418.10
8.2.40.0090.00022.33
8.2.30.0040.00419.15
8.2.20.0070.00017.99
8.2.10.0040.00417.87
8.2.00.0060.00318.01
8.1.280.0080.00625.92
8.1.270.0080.00022.06
8.1.260.0130.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.47
8.1.230.0080.00420.64
8.1.220.0030.00517.74
8.1.210.0060.00318.91
8.1.200.0060.00317.23
8.1.190.0040.00416.98
8.1.180.0030.00518.10
8.1.170.0040.00418.58
8.1.160.0030.00318.89
8.1.150.0050.00318.86
8.1.140.0000.00819.41
8.1.130.0000.00718.80
8.1.120.0000.00717.45
8.1.110.0040.00417.34
8.1.100.0030.00517.30
8.1.90.0080.00017.34
8.1.80.0040.00417.35
8.1.70.0050.00217.35
8.1.60.0040.00417.49
8.1.50.0000.00817.44
8.1.40.0040.00417.42
8.1.30.0020.00517.58
8.1.20.0040.00417.56
8.1.10.0040.00417.37
8.1.00.0040.00417.25
8.0.300.0050.00320.14
8.0.290.0000.00716.58
8.0.280.0030.00318.28
8.0.270.0070.00017.16
8.0.260.0000.00718.86
8.0.250.0000.00716.71
8.0.240.0030.00316.76
8.0.230.0080.00016.86
8.0.220.0070.00016.67
8.0.210.0030.00316.79
8.0.200.0030.00316.90
8.0.190.0030.00516.86
8.0.180.0000.00716.86
8.0.170.0000.00716.87
8.0.160.0040.00416.75
8.0.150.0050.00316.61
8.0.140.0040.00416.77
8.0.130.0000.00513.30
8.0.120.0020.00516.75
8.0.110.0040.00416.71
8.0.100.0000.00716.77
8.0.90.0000.00716.69
8.0.80.0070.01016.83
8.0.70.0000.00816.83
8.0.60.0070.00016.59
8.0.50.0040.00416.87
8.0.30.0130.00317.15
8.0.20.0110.00817.40
8.0.10.0040.00416.98
8.0.00.0060.01216.79
7.4.330.0020.00215.55
7.4.320.0060.00016.53
7.4.300.0060.00016.52
7.4.290.0030.00316.43
7.4.280.0030.00516.32
7.4.270.0070.00016.44
7.4.260.0070.00016.50
7.4.250.0000.00716.39
7.4.240.0040.00416.51
7.4.230.0030.00316.59
7.4.220.0060.01216.50
7.4.210.0000.01416.54
7.4.200.0040.00416.54
7.4.160.0130.00816.27
7.4.150.0170.00017.40
7.4.140.0100.00917.86
7.4.130.0150.01116.55
7.4.120.0080.01016.35
7.4.110.0070.01016.30
7.4.100.0070.01016.43
7.4.90.0130.00816.43
7.4.80.0160.00619.39
7.4.70.0100.00716.41
7.4.60.0030.01316.45
7.4.50.0040.00816.35
7.4.40.0060.01016.36
7.4.30.0140.00316.39
7.4.00.0040.01215.00
7.3.330.0030.00312.93
7.3.320.0050.00013.00
7.3.310.0070.00016.08
7.3.300.0030.00316.17
7.3.290.0060.00916.16
7.3.280.0080.00916.14
7.3.270.0140.00317.40
7.3.260.0230.01716.15
7.3.250.0090.00916.20
7.3.240.0090.00816.11
7.3.230.0110.00616.52
7.3.210.0100.00716.13
7.3.200.0090.00716.29
7.3.190.0080.00816.10
7.3.180.0040.01316.09
7.3.170.0120.00616.25
7.3.160.0100.00616.10
7.3.10.0030.00816.45
7.3.00.0070.00316.39
7.2.330.0090.00916.20
7.2.320.0120.00916.38
7.2.310.0030.01316.55
7.2.300.0110.00616.41
7.2.290.0030.01316.53
7.2.130.0060.00616.54
7.2.120.0060.00516.68
7.2.110.0120.00416.56
7.2.100.0030.00916.67
7.2.90.0060.00816.75
7.2.80.0050.00716.70
7.2.70.0050.00916.68
7.2.60.0070.00616.50
7.2.50.0050.00716.74
7.2.40.0040.00916.68
7.2.30.0090.00516.56
7.2.20.0030.01116.66
7.2.10.0050.00816.49
7.2.00.0010.01216.54
7.1.250.0040.00715.63
7.1.240.0030.00715.67
7.1.230.0030.00715.75
7.1.220.0050.00515.67
7.1.210.0080.00315.64
7.1.200.0010.01015.67
7.1.190.0080.00415.73
7.1.180.0000.00915.88
7.1.170.0000.01515.69
7.1.160.0070.00715.56
7.1.150.0120.00015.50
7.1.140.0090.00615.63
7.1.130.0000.01315.57
7.1.120.0070.00715.75
7.1.110.0060.00315.81
7.1.100.0040.00815.57
7.1.90.0030.00915.66
7.1.80.0040.01115.60
7.1.70.0080.00815.54
7.1.60.1040.00724.32
7.1.50.1600.00524.31
7.1.40.1130.00823.88
7.1.30.0930.01024.15
7.1.20.0790.00924.07
7.1.10.0780.00615.22
7.1.00.0720.00715.38
7.0.330.0100.00715.25
7.0.320.0030.00615.06
7.0.310.0040.00415.54
7.0.300.0070.00715.16
7.0.290.0040.00415.36
7.0.280.0080.00315.11
7.0.270.0110.00415.23
7.0.260.0120.00615.30
7.0.250.0040.00715.31
7.0.240.0030.00615.21
7.0.230.0040.00814.96
7.0.220.0110.00415.17
7.0.210.0040.00414.97
7.0.200.1430.00614.95
7.0.190.1220.01214.95
7.0.180.1480.01214.78
7.0.170.0790.00914.69
7.0.160.0950.00914.72
7.0.150.0720.00514.59
7.0.140.0720.00914.63
7.0.130.0770.00314.97
7.0.120.0750.00814.68
7.0.110.0990.00614.85
7.0.100.0780.00614.83
7.0.90.0730.00914.89
7.0.80.0810.00814.69
7.0.70.0770.00314.80
7.0.60.0710.00914.75
7.0.50.0710.00514.92
7.0.40.0660.00414.01
7.0.30.0650.01214.10
7.0.20.0680.01013.84
7.0.10.0650.01013.84
7.0.00.0740.00913.77
5.6.380.0030.01214.13

preferences:
33.94 ms | 400 KiB | 5 Q