3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = Array(607,608,609,610); $second = Array(607,608,609,800); $Fcount = count($first); $arr = array_merge($first, $second); $arrc= array_diff($arr, array_diff_assoc($arr, array_unique($arr))); foreach ($arrc as $value){ echo key($value); if($arrc >= $Fcount){ echo "first array". $value; }else{ echo "second array" . $value; } }

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.0090.00616.61
8.3.50.0070.00716.25
8.3.40.0040.01118.79
8.3.30.0080.00618.71
8.3.20.0050.00321.74
8.3.10.0000.00823.78
8.3.00.0050.00319.68
8.2.180.0070.00718.66
8.2.170.0060.00922.96
8.2.160.0110.01120.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00320.38
8.2.120.0000.00726.35
8.2.110.0030.00620.48
8.2.100.0080.00317.84
8.2.90.0080.00019.13
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0030.00617.93
8.2.50.0000.00818.10
8.2.40.0060.00420.44
8.2.30.0000.00820.97
8.2.20.0040.00417.98
8.2.10.0050.00318.03
8.2.00.0040.00418.06
8.1.280.0150.00625.92
8.1.270.0000.00820.52
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0220.00020.79
8.1.230.0060.00919.08
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0080.00017.36
8.1.180.0050.00318.10
8.1.170.0000.00918.62
8.1.160.0050.00219.03
8.1.150.0040.00420.72
8.1.140.0000.00719.54
8.1.130.0040.00420.71
8.1.120.0000.00717.52
8.1.110.0040.00417.41
8.1.100.0070.00017.49
8.1.90.0050.00217.48
8.1.80.0000.00717.35
8.1.70.0000.00717.39
8.1.60.0000.00817.46
8.1.50.0030.00517.52
8.1.40.0030.00617.53
8.1.30.0000.00717.71
8.1.20.0070.00017.61
8.1.10.0060.00317.62
8.1.00.0040.00417.44
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0030.00518.43
8.0.270.0030.00317.20
8.0.260.0000.00718.89
8.0.250.0030.00317.04
8.0.240.0040.00416.98
8.0.230.0000.00716.99
8.0.220.0040.00416.93
8.0.210.0040.00417.00
8.0.200.0070.00417.08
8.0.190.0030.00617.02
8.0.180.0040.00416.94
8.0.170.0000.00816.91
8.0.160.0030.00316.86
8.0.150.0030.00416.85
8.0.140.0050.00316.93
8.0.130.0000.00813.44
8.0.120.0070.00016.80
8.0.110.0000.00716.84
8.0.100.0000.00816.84
8.0.90.0050.00216.91
8.0.80.0120.00416.87
8.0.70.0040.00416.84
8.0.60.0070.00016.99
8.0.50.0000.00716.87
8.0.30.0100.00717.06
8.0.20.0070.01117.40
8.0.10.0000.00717.11
8.0.00.0070.01416.56
7.4.330.0000.00515.55
7.4.320.0060.00016.43
7.4.300.0000.00616.47
7.4.290.0030.00316.58
7.4.280.0040.00416.41
7.4.270.0030.00316.52
7.4.260.0070.00016.49
7.4.250.0070.00016.37
7.4.240.0000.00716.65
7.4.230.0030.00316.59
7.4.220.0100.00716.59
7.4.210.0070.00716.61
7.4.200.0000.00716.40
7.4.160.0100.00616.53
7.4.150.0140.00317.40
7.4.140.0100.01017.86
7.4.130.0070.01316.47
7.4.120.0110.00816.51
7.4.110.0130.00316.25
7.4.100.0030.01416.62
7.4.90.0130.00316.55
7.4.80.0110.01219.39
7.4.70.0070.01016.60
7.4.60.0120.00316.60
7.4.50.0000.01716.56
7.4.40.0080.00816.40
7.4.30.0090.01516.64
7.4.00.0030.01415.04
7.3.330.0070.00013.28
7.3.320.0050.00013.07
7.3.310.0060.00016.37
7.3.300.0000.00716.38
7.3.290.0070.00916.35
7.3.280.0080.00816.35
7.3.270.0100.00617.40
7.3.260.0130.00416.45
7.3.250.0100.00716.41
7.3.240.0120.00516.53
7.3.230.0130.00316.36
7.3.210.0100.00716.57
7.3.200.0090.00616.25
7.3.190.0120.00916.57
7.3.180.0070.01016.43
7.3.170.0100.00616.35
7.3.160.0040.01116.48
7.2.330.0120.00916.75
7.2.320.0100.00716.70
7.2.310.0060.01016.48
7.2.300.0030.01416.59
7.2.290.0100.00716.64
7.2.60.0070.00717.06
7.2.00.0080.00419.29
7.1.200.0070.00315.96
7.1.70.0070.00716.89
7.1.60.0670.01333.32
7.1.50.1300.01332.93
7.1.40.0700.01332.64
7.1.30.0830.00732.77
7.1.20.0500.02032.48
7.1.10.0600.00714.55
7.1.00.0500.01014.99
7.0.200.0770.00014.93
7.0.190.0630.00714.98
7.0.180.0630.01314.70
7.0.170.0500.01714.53
7.0.160.0430.01014.51
7.0.150.0530.00714.51
7.0.140.0570.01014.50
7.0.130.0670.01314.89
7.0.120.0670.01314.76
7.0.110.0770.00714.57
7.0.100.0670.01314.43
7.0.90.0730.01014.57
7.0.80.0430.01314.78
7.0.70.0730.00714.66
7.0.60.0500.01014.14
7.0.50.0470.00314.68
7.0.40.0500.01314.64
7.0.30.0400.01014.68
7.0.20.0470.00714.38
7.0.10.0470.00714.64
7.0.00.0430.00314.82

preferences:
40.2 ms | 400 KiB | 5 Q