3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = Array(607,608,609,610); $second = Array(607,608,609); $Fcount = count($first); $arr = array_merge($first, $second); $arrc= key(array_diff($arr, array_diff_assoc($arr, array_unique($arr)))); echo $arrc;

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.36
8.3.50.0110.00416.23
8.3.40.0040.01118.60
8.3.30.0100.00618.50
8.3.20.0080.00021.73
8.3.10.0100.00023.51
8.3.00.0030.00519.56
8.2.180.0110.00718.21
8.2.170.0120.00622.96
8.2.160.0070.00720.56
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00420.32
8.2.120.0030.00526.35
8.2.110.0030.00722.19
8.2.100.0030.01017.78
8.2.90.0040.00419.30
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0030.00620.54
8.2.30.0050.00321.03
8.2.20.0000.00718.11
8.2.10.0020.00518.09
8.2.00.0070.00018.09
8.1.280.0120.00625.92
8.1.270.0040.00420.65
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0110.00023.92
8.1.230.0000.01122.08
8.1.220.0030.00517.76
8.1.210.0030.00618.77
8.1.200.0000.01017.23
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.43
8.1.160.0070.00018.90
8.1.150.0040.00418.88
8.1.140.0040.00419.57
8.1.130.0000.00718.75
8.1.120.0000.00717.44
8.1.110.0050.00317.34
8.1.100.0040.00417.43
8.1.90.0070.00017.41
8.1.80.0000.00717.37
8.1.70.0030.00317.33
8.1.60.0000.00817.56
8.1.50.0030.00517.48
8.1.40.0000.00817.40
8.1.30.0000.00817.61
8.1.20.0000.00817.51
8.1.10.0000.00817.39
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0040.00418.45
8.0.270.0030.00517.18
8.0.260.0070.00018.75
8.0.250.0040.00416.93
8.0.240.0000.00716.82
8.0.230.0000.00716.90
8.0.220.0000.00716.74
8.0.210.0000.00716.84
8.0.200.0100.00016.88
8.0.190.0060.00316.89
8.0.180.0000.00816.73
8.0.170.0000.00716.91
8.0.160.0000.00716.90
8.0.150.0000.00716.80
8.0.140.0040.00416.83
8.0.130.0040.00413.32
8.0.120.0080.00016.80
8.0.110.0000.00716.77
8.0.100.0050.00316.74
8.0.90.0000.00716.68
8.0.80.0060.00916.88
8.0.70.0000.00816.81
8.0.60.0040.00416.77
8.0.50.0040.00416.90
8.0.30.0100.00916.88
8.0.20.0080.01017.40
8.0.10.0050.00216.94
8.0.00.0060.01516.87
7.4.330.0000.00515.55
7.4.320.0030.00316.64
7.4.300.0030.00316.49
7.4.290.0040.00416.60
7.4.280.0080.00016.63
7.4.270.0030.00316.49
7.4.260.0030.00316.57
7.4.250.0040.00416.55
7.4.240.0040.00416.61
7.4.230.0030.00316.38
7.4.220.0070.01116.39
7.4.210.0030.01116.47
7.4.200.0000.00816.49
7.4.160.0130.00416.40
7.4.150.0140.00317.40
7.4.140.0110.00717.86
7.4.130.0120.00616.57
7.4.120.0090.00816.49
7.4.110.0120.00616.57
7.4.100.0110.01116.42
7.4.90.0140.00316.48
7.4.80.0070.01719.39
7.4.70.0060.00916.47
7.4.60.0130.00316.55
7.4.50.0080.00716.44
7.4.40.0070.01016.53
7.4.30.0190.00316.52
7.4.10.0060.01314.76
7.4.00.0030.01415.07
7.3.330.0030.00313.18
7.3.320.0050.00012.94
7.3.310.0040.00416.29
7.3.300.0070.00016.13
7.3.290.0080.00716.19
7.3.280.0080.00916.16
7.3.270.0100.00717.40
7.3.260.0100.00716.24
7.3.250.0100.01016.18
7.3.240.0120.00516.26
7.3.230.0170.00416.24
7.3.210.0120.00416.57
7.3.200.0060.01016.41
7.3.190.0130.00416.24
7.3.180.0060.00916.17
7.3.170.0110.00616.64
7.3.160.0120.01216.27
7.3.130.0130.00714.77
7.3.120.0040.00914.81
7.3.110.0070.01014.82
7.3.100.0090.00514.91
7.3.90.0090.00214.82
7.3.80.0060.01014.74
7.3.70.0040.00914.64
7.3.60.0030.01114.72
7.3.50.0080.00214.63
7.3.40.0070.00714.59
7.3.30.0050.00714.57
7.3.20.0050.00516.63
7.3.10.0050.00816.56
7.3.00.0060.00816.60
7.2.330.0090.00916.71
7.2.320.0070.01016.51
7.2.310.0140.00316.84
7.2.300.0160.00616.70
7.2.290.0090.00916.73
7.2.260.0030.01714.99
7.2.250.0130.00615.01
7.2.240.0030.01315.03
7.2.230.0090.00915.12
7.2.220.0040.01214.94
7.2.210.0050.01215.01
7.2.200.0110.00514.73
7.2.190.0100.00514.67
7.2.180.0070.00514.89
7.2.170.0030.01214.78
7.2.160.0070.00314.62
7.2.150.0030.01016.79
7.2.140.0030.01116.95
7.2.130.0070.00716.85
7.2.120.0040.01216.75
7.2.110.0030.01016.96
7.2.100.0030.01216.72
7.2.90.0040.00816.60
7.2.80.0040.01116.77
7.2.70.0000.01316.82
7.2.60.0050.00916.88
7.2.50.0050.00916.88
7.2.40.0030.01316.86
7.2.30.0060.00616.92
7.2.20.0040.00916.74
7.2.10.0040.00716.86
7.2.00.0030.01216.95
7.1.330.0110.00115.57
7.1.320.0040.01115.83
7.1.310.0050.00915.70
7.1.300.0110.00315.79
7.1.290.0040.00715.67
7.1.280.0030.00815.85
7.1.270.0050.00615.76
7.1.260.0070.00815.50
7.1.250.0030.01015.71
7.1.240.0030.01015.53
7.1.230.0090.00615.86
7.1.220.0000.01615.50
7.1.210.0000.00915.62
7.1.200.0060.00715.84
7.1.190.0040.00815.35
7.1.180.0080.00815.83
7.1.170.0040.00815.68
7.1.160.0000.00815.55
7.1.150.0060.00315.75
7.1.140.0080.00415.88
7.1.130.0000.01515.84
7.1.120.0000.01215.67
7.1.110.0000.01015.81
7.1.100.0000.01315.71
7.1.90.0030.01015.80
7.1.80.0080.00315.95
7.1.70.0090.00916.34
7.1.60.0230.00824.50
7.1.50.0180.01224.39
7.1.40.0220.01224.16
7.1.30.0270.01024.24
7.1.20.0260.01024.37
7.1.10.0120.00515.36
7.1.00.0140.00915.20
7.0.330.0000.01115.45
7.0.320.0110.00315.59
7.0.310.0090.00615.36
7.0.300.0040.00415.29
7.0.290.0060.00615.30
7.0.280.0100.00315.31
7.0.270.0070.00415.40
7.0.260.0080.00015.37
7.0.250.0100.00315.32
7.0.240.0030.01015.04
7.0.230.0040.00815.42
7.0.220.0040.00715.41
7.0.210.0070.00315.51
7.0.200.0070.01314.96
7.0.190.0140.00515.10
7.0.180.0180.00615.03
7.0.170.0110.01014.82
7.0.160.0150.00715.04
7.0.150.0060.00714.87
7.0.140.0210.00814.78
7.0.130.0130.00815.00
7.0.120.0160.00415.09
7.0.110.0170.01014.81
7.0.100.0150.00914.79
7.0.90.0180.01014.87
7.0.80.0100.01014.78
7.0.70.0150.01114.88
7.0.60.0150.00914.81
7.0.50.0150.01314.97
7.0.40.0200.00513.99
7.0.30.0200.01013.97
7.0.20.0250.00814.12
7.0.10.0120.01413.95
7.0.00.0200.01014.01
5.6.400.0070.00714.22
5.6.390.0040.01114.21
5.6.380.0070.00714.59
5.6.370.0100.00714.14
5.6.360.0090.00313.92
5.6.350.0130.00014.24
5.6.340.0030.00613.86
5.6.330.0130.00314.27
5.6.320.0040.01114.26
5.6.310.0040.01114.53
5.6.300.0060.00614.27
5.6.290.0030.01314.00
5.6.280.0060.00814.34
5.6.270.0060.00614.38
5.6.260.0030.00914.49
5.6.250.0120.00314.18
5.6.240.0070.01113.93
5.6.230.0120.00614.03
5.6.220.0060.01314.13
5.6.210.0030.00714.35
5.6.200.0000.01414.29
5.6.190.0030.01214.33
5.6.180.0060.00914.16
5.6.170.0110.00714.01
5.6.160.0070.01114.17
5.6.150.0030.01014.12
5.6.140.0000.00914.38
5.6.130.0060.00314.43
5.6.120.0030.00614.45
5.6.110.0130.00014.43
5.6.100.0040.01114.33
5.6.90.0090.00014.19
5.6.80.0100.00613.89
5.6.70.0000.01414.09
5.6.60.0070.00714.28
5.6.50.0060.00914.38
5.6.40.0040.00914.13
5.6.30.0060.00613.89
5.6.20.0030.00614.18
5.6.10.0040.00814.30
5.6.00.0060.00614.06

preferences:
62.46 ms | 400 KiB | 5 Q