3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1, 4, 5, 7]; $arr2 = [2, 3, 4, 6]; $arrint = array_uintersect($arr1, $arr2, function ($a, $b) { return ($a === $b) ? 0 : ($a > $b) ? 1 : -1; }); var_dump($arrint);

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.63
8.3.50.0100.00521.04
8.3.40.0130.00318.81
8.3.30.0100.00318.63
8.3.20.0040.00420.20
8.3.10.0080.00023.61
8.3.00.0000.00919.56
8.2.180.0070.00718.38
8.2.170.0070.00722.96
8.2.160.0100.01020.57
8.2.150.0080.00024.18
8.2.140.0020.00524.66
8.2.130.0000.00726.16
8.2.120.0060.00317.63
8.2.110.0040.00820.35
8.2.100.0040.00717.93
8.2.90.0000.00818.63
8.2.80.0060.00317.97
8.2.70.0090.00017.38
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00421.11
8.2.30.0000.00720.53
8.2.20.0000.00717.48
8.2.10.0040.00417.98
8.2.00.0040.00417.79
8.1.280.0040.01125.92
8.1.270.0030.00523.96
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0070.00322.48
8.1.230.0090.00517.42
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0030.00617.10
8.1.180.0030.00518.10
8.1.170.0070.00018.61
8.1.160.0000.00721.94
8.1.150.0000.00718.81
8.1.140.0040.00717.38
8.1.130.0030.00317.47
8.1.120.0030.00317.33
8.1.110.0070.00317.36
8.1.100.0040.00417.28
8.1.90.0030.00517.32
8.1.80.0030.00517.19
8.1.70.0040.00417.28
8.1.60.0030.00617.47
8.1.50.0000.00817.32
8.1.40.0050.00217.41
8.1.30.0000.00817.51
8.1.20.0030.00517.53
8.1.10.0050.00317.26
8.1.00.0000.00717.32
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.35
8.0.270.0040.00417.12
8.0.260.0030.00317.17
8.0.250.0000.00716.87
8.0.240.0030.00316.79
8.0.230.0050.00516.81
8.0.220.0050.00216.80
8.0.210.0060.00016.88
8.0.200.0000.00716.89
8.0.190.0040.00416.82
8.0.180.0040.00416.79
8.0.170.0030.00616.84
8.0.160.0000.00716.89
8.0.150.0080.00016.63
8.0.140.0000.00716.75
8.0.130.0000.00513.27
8.0.120.0040.00416.76
8.0.110.0000.00716.85
8.0.100.0070.00016.61
8.0.90.0030.00416.82
8.0.80.0130.00916.79
8.0.70.0060.00316.67
8.0.60.0040.00416.78
8.0.50.0030.00416.70
8.0.30.0110.00516.96
8.0.20.0130.00517.40
8.0.10.0030.00516.72
8.0.00.0090.01416.54
7.4.330.0000.00515.16
7.4.320.0000.00616.52
7.4.300.0000.00616.54
7.4.290.0030.00316.57
7.4.280.0040.00716.47
7.4.270.0030.00316.59
7.4.260.0030.00316.46
7.4.250.0070.00016.60
7.4.240.0030.00316.46
7.4.230.0070.00016.39
7.4.220.0040.01416.50
7.4.210.0070.01016.55
7.4.200.0070.00016.40
7.4.160.0060.00916.57
7.4.150.0070.01017.40
7.4.140.0120.01117.86
7.4.130.0050.01216.55
7.4.120.0100.00616.61
7.4.110.0060.01816.52
7.4.100.0070.01116.51
7.4.90.0030.01316.44
7.4.80.0070.01019.39
7.4.70.0110.00716.50
7.4.60.0100.00716.43
7.4.50.0040.00416.46
7.4.40.0110.01216.67
7.4.30.0100.00916.37
7.4.00.0060.00815.17
7.3.330.0000.00513.17
7.3.320.0030.00213.43
7.3.310.0030.00316.41
7.3.300.0070.00016.36
7.3.290.0070.00916.31
7.3.280.0130.00616.36
7.3.270.0110.00717.40
7.3.260.0250.00716.57
7.3.250.0080.01016.37
7.3.240.0090.00916.29
7.3.230.0100.00716.46
7.3.210.0030.01316.32
7.3.200.0040.01616.59
7.3.190.0100.00716.38
7.3.180.0070.01016.64
7.3.170.0120.00416.39
7.3.160.0060.00916.24
7.2.330.0030.01616.43
7.2.320.0110.01416.60
7.2.310.0030.01316.55
7.2.300.0120.00616.42
7.2.290.0070.01116.63
7.1.100.0080.00318.07
7.1.70.0030.01317.16
7.1.60.0090.01519.50
7.1.50.0090.01216.84
7.1.00.0000.08022.45
7.0.200.0040.00416.75
7.0.60.0270.06320.09
7.0.50.0030.04017.94
7.0.40.0130.08020.26
7.0.30.0330.05320.20
7.0.20.0370.07320.33
7.0.10.0030.08720.20
7.0.00.0030.05320.19
5.6.280.0000.03720.78
5.6.210.0070.08720.43
5.6.200.0130.05018.12
5.6.190.0130.05020.63
5.6.180.0200.05320.47
5.6.170.0300.03320.41
5.6.160.0030.07320.54
5.6.150.0100.03718.18
5.6.140.0070.08318.18
5.6.130.0070.08018.14
5.6.120.0030.08721.11
5.6.110.0100.08320.98
5.6.100.0100.08020.99
5.6.90.0000.06021.13
5.6.80.0070.06020.38
5.5.350.0030.07720.43
5.5.340.0070.08017.95
5.5.330.0170.08020.27
5.5.320.3870.03320.34
5.5.310.0230.05720.30
5.5.300.0170.06718.08
5.5.290.0000.05317.92
5.5.280.0070.08320.98
5.5.270.0130.05720.88
5.5.260.0130.07720.76
5.5.250.0070.05720.62
5.5.240.0100.06720.29
5.4.450.0700.06019.70
5.4.440.0630.05719.45
5.4.430.0730.05319.61
5.4.420.0770.06019.46
5.4.410.0670.06719.50
5.4.400.0730.06018.88
5.4.390.0830.06319.14
5.4.380.0970.07019.15
5.4.370.0870.06019.11
5.4.360.0770.08719.32
5.4.350.0830.05719.29
5.4.340.0570.05019.13
5.4.320.0130.05319.30
5.4.310.0570.07018.84
5.4.300.0870.04719.29
5.4.290.0700.07019.12
5.4.280.0130.07318.84
5.4.270.0230.06719.27
5.4.260.0170.05018.84
5.4.250.0400.05718.86
5.4.240.0430.05718.83
5.4.230.0430.07018.83
5.4.220.0330.07019.22
5.4.210.0230.07319.28
5.4.200.0230.05019.27
5.4.190.0270.05719.15
5.4.180.0200.05719.14
5.4.170.0200.06319.29
5.4.160.0330.04718.99
5.4.150.0170.06318.84
5.4.140.0200.06016.54
5.4.130.0300.05716.39
5.4.120.0170.06016.54
5.4.110.0200.05716.21
5.4.100.0270.05016.64
5.4.90.0170.05716.42
5.4.80.0170.06016.23
5.4.70.0270.05716.34
5.4.60.0070.04316.49
5.4.50.0070.04016.38
5.4.40.0270.04316.34
5.4.30.0300.04316.48
5.4.20.0370.05316.32

preferences:
47.07 ms | 401 KiB | 5 Q