3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ array (105, 44, 20, 0), array (106, 44, 21, 2), array (107, 45, 20, 0), ]; $arr2 = [ array (124, 44, 20, 1), array (105, 44, 20, 0), array (107, 45, 20, 0), ]; print_R(array_uintersect($arr2, $arr1, function($a2, $a1){ return $a2 === $a1 ? 0 : -1; }));

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.40.0140.00018.57
8.3.30.0080.00618.63
8.3.20.0070.00020.20
8.3.10.0050.00323.70
8.3.00.0000.00723.64
8.2.170.0140.00019.09
8.2.160.0070.00722.96
8.2.150.0070.00024.18
8.2.140.0090.00624.66
8.2.130.0030.00720.85
8.2.120.0140.00326.35
8.2.110.0060.00322.24
8.2.100.0070.00417.93
8.2.90.0030.00619.22
8.2.80.0080.00018.04
8.2.70.0060.00317.38
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0040.00422.15
8.2.30.0040.00420.63
8.2.20.0050.00217.58
8.2.10.0080.00018.20
8.2.00.0000.00718.12
8.1.270.0040.00423.80
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0000.01119.11
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0000.00817.34
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0080.00020.77
8.1.150.0040.00418.81
8.1.140.0030.00619.54
8.1.130.0030.00317.62
8.1.120.0030.00317.38
8.1.110.0000.00717.41
8.1.100.0040.00417.48
8.1.90.0070.00017.45
8.1.80.0030.00617.43
8.1.70.0000.00717.49
8.1.60.0000.00917.54
8.1.50.0000.00817.45
8.1.40.0050.00317.56
8.1.30.0070.00017.66
8.1.20.0040.00417.70
8.1.10.0050.00317.55
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0030.00318.29
8.0.270.0030.00317.16
8.0.260.0000.00717.14
8.0.250.0040.00416.89
8.0.240.0000.00716.88
8.0.230.0000.00716.93
8.0.220.0000.00616.88
8.0.210.0070.00016.88
8.0.200.0050.00216.92
8.0.190.0030.00316.96
8.0.180.0070.00016.93
8.0.170.0030.00516.84
8.0.160.0000.00816.90
8.0.150.0000.00816.90
8.0.140.0030.00316.90
8.0.130.0030.00313.30
8.0.120.0000.00816.77
8.0.110.0040.00416.85
8.0.100.0030.00616.93
8.0.90.0000.00716.89
8.0.80.0060.00916.94
8.0.70.0040.00416.96
8.0.60.0000.00816.96
8.0.50.0030.00516.94
8.0.30.0160.00417.21
8.0.20.0100.00817.40
8.0.10.0040.00416.82
8.0.00.0090.01016.69
7.4.330.0000.00516.82
7.4.320.0000.00616.41
7.4.300.0030.00316.45
7.4.290.0080.00016.61
7.4.280.0070.00316.50
7.4.270.0050.00216.56
7.4.260.0030.00316.49
7.4.250.0050.00216.44
7.4.240.0010.00616.63
7.4.230.0000.00716.42
7.4.220.0120.00616.51
7.4.210.0070.00716.57
7.4.200.0040.00416.50
7.4.160.0030.01716.63
7.4.150.0180.00417.40
7.4.140.0110.00617.86
7.4.130.0100.00816.52
7.4.120.0110.00916.56
7.4.110.0130.00616.26
7.4.100.0150.00316.50
7.4.90.0130.00716.60
7.4.80.0140.00619.39
7.4.70.0100.00616.51
7.4.60.0090.00916.61
7.4.50.0090.00616.18
7.4.40.0060.01116.23
7.4.30.0110.01416.47
7.4.00.0070.01114.94
7.3.330.0050.00013.23
7.3.320.0030.00313.29
7.3.310.0030.00316.26
7.3.300.0040.00416.29
7.3.290.0070.00016.17
7.3.280.0080.00916.28
7.3.270.0160.00717.40
7.3.260.0030.01316.35
7.3.250.0110.00616.37
7.3.240.0130.00716.47
7.3.230.0120.01216.39
7.3.210.0120.00616.46
7.3.200.0100.00619.39
7.3.190.0090.00616.40
7.3.180.0080.00816.23
7.3.170.0030.01516.27
7.3.160.0090.00916.45
7.3.120.0040.01114.86
7.3.110.0030.01314.71
7.3.100.0110.00315.07
7.3.90.0030.00614.49
7.3.80.0050.00514.67
7.3.70.0080.00414.45
7.3.60.0100.00314.71
7.3.50.0140.00014.96
7.3.40.0090.00614.63
7.3.30.0040.00814.89
7.3.20.0060.00616.53
7.3.10.0090.00516.64
7.3.00.0070.00616.61
7.2.330.0110.00616.44
7.2.320.0030.01716.35
7.2.310.0060.01716.71
7.2.300.0140.00716.62
7.2.290.0100.00616.45
7.2.250.0060.01215.14
7.2.240.0090.00915.11
7.2.230.0060.00915.14
7.2.220.0100.00614.55
7.2.210.0130.00315.07
7.2.200.0030.01015.01
7.2.190.0030.00914.81
7.2.180.0000.01114.80
7.2.170.0040.01114.97
7.2.160.0060.00615.01
7.2.150.0040.00816.69
7.2.140.0060.00916.78
7.2.130.0040.00716.74
7.2.120.0060.00616.73
7.2.110.0060.00916.67
7.2.100.0070.00516.76
7.2.90.0080.00816.70
7.2.80.0060.00816.62
7.2.70.0050.00916.66
7.2.60.0080.00616.88
7.2.50.0050.00816.85
7.2.40.0030.01216.76
7.2.30.0060.00916.92
7.2.20.0040.00716.57
7.2.10.0070.00716.72
7.2.00.0050.00917.38
7.1.330.0100.00715.79
7.1.320.0080.00815.68
7.1.310.0040.01115.71
7.1.300.0030.01415.79
7.1.290.0100.00715.65
7.1.280.0080.00415.82
7.1.270.0040.01115.89
7.1.260.0120.00315.51
7.1.250.0050.00615.71
7.1.240.0050.00615.34
7.1.230.0060.01015.60
7.1.220.0010.00715.53
7.1.210.0060.00815.60
7.1.200.0100.00315.66
7.1.190.0060.00715.68
7.1.180.0070.00815.67
7.1.170.0050.01115.71
7.1.160.0040.01015.59
7.1.150.0060.00515.66
7.1.140.0080.00415.71
7.1.130.0120.00115.61
7.1.120.0070.00815.62
7.1.110.0090.00515.77
7.1.100.0040.00816.49
7.1.90.0040.00915.50
7.1.80.0050.00815.71
7.1.70.0050.00716.04
7.1.60.0100.00416.84
7.1.50.0100.00616.05
7.1.40.0040.00915.73
7.1.30.0080.00615.58
7.1.20.0050.00615.63
7.1.10.0080.00415.68
7.1.00.0070.02917.81
7.0.330.0080.00615.26
7.0.320.0050.00615.25
7.0.310.0080.00815.28
7.0.300.0050.00715.29
7.0.290.0060.00815.25
7.0.280.0090.00215.22
7.0.270.0080.00615.35
7.0.260.0050.00515.12
7.0.250.0030.01015.43
7.0.240.0080.00315.33
7.0.230.0070.00715.32
7.0.220.0050.00615.45
7.0.210.0040.01015.25
7.0.200.0320.00914.99
7.0.190.0030.01115.29
7.0.180.0020.01215.31
7.0.170.0100.00315.42
7.0.160.0020.01115.39
7.0.150.0070.00515.30
7.0.140.0080.00315.48
7.0.130.0060.00815.30
7.0.120.0070.00615.42
7.0.110.0030.00915.28
7.0.100.0050.00915.22
7.0.90.0100.00515.16
7.0.80.0080.00315.22
7.0.70.0060.00415.38
7.0.60.0060.03017.47
7.0.50.0050.01816.27
7.0.40.0010.02415.59
7.0.30.0100.03115.63
7.0.20.0110.02615.68
7.0.10.0030.03715.55
7.0.00.0070.03115.67
5.6.400.0040.00414.09
5.6.390.0060.00914.33
5.6.380.0020.01014.11
5.6.370.0050.00514.12
5.6.360.0050.00914.53
5.6.350.0070.00514.41
5.6.340.0040.00914.13
5.6.330.0030.01014.18
5.6.320.0000.01314.55
5.6.310.0080.00614.33
5.6.300.0070.00814.49
5.6.290.0030.00713.95
5.6.280.0050.02216.72
5.6.270.0030.00814.09
5.6.260.0040.01014.23
5.6.250.0040.00914.23
5.6.240.0020.00914.24
5.6.230.0080.00914.29
5.6.220.0070.00314.15
5.6.210.0060.03016.36
5.6.200.0090.02715.68
5.6.190.0080.02516.37
5.6.180.0190.02916.35
5.6.170.0120.02116.18
5.6.160.0060.02516.38
5.6.150.0050.01915.43
5.6.140.0070.03015.72
5.6.130.0050.03615.46
5.6.120.0040.01716.67
5.6.110.0060.02416.45
5.6.100.0070.03316.43
5.6.90.0080.02916.40
5.6.80.0080.02416.18
5.6.70.0050.00614.13
5.6.60.0060.00614.11
5.6.50.0050.01014.09
5.6.40.0030.01214.15
5.6.30.0110.00414.17
5.6.20.0110.00314.15
5.6.10.0110.00314.15
5.6.00.0060.00814.01
5.5.380.0020.00812.64
5.5.370.0060.00612.76
5.5.360.0050.00812.75
5.5.350.0170.02915.29
5.5.340.0080.03014.44
5.5.330.0050.01915.25
5.5.320.0150.03015.25
5.5.310.0040.02115.18
5.5.300.0060.03414.49
5.5.290.0070.03014.36
5.5.280.0060.01615.37
5.5.270.0060.02915.42
5.5.260.0070.02915.25
5.5.250.0100.02515.33
5.5.240.0150.02415.09
5.5.230.0050.00812.68
5.5.220.0050.00712.68
5.5.210.0050.00712.49
5.5.200.0070.00812.72
5.5.190.0040.00512.72
5.5.180.0060.00112.52
5.5.170.0040.00512.66
5.5.160.0040.00812.65
5.5.150.0050.00912.70
5.5.140.0050.00712.50
5.5.130.0020.01112.67
5.5.120.0080.00312.57
5.5.110.0080.00312.67
5.5.100.0070.00312.34
5.5.90.0060.00612.45
5.5.80.0050.00612.62
5.5.70.0050.00712.70
5.5.60.0030.00712.59
5.5.50.0040.00612.53
5.5.40.0060.00612.52
5.5.30.0050.01012.55
5.5.20.0060.00312.60
5.5.10.0030.01012.40
5.5.00.0050.00712.56

preferences:
37.64 ms | 400 KiB | 5 Q