3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = ['1','14','31']; $array2 = [[1,'',14,28],[2,1,14,29],[3,1,14,30],[4,1,14,31]]; Foreach($array2 as $key => $arr){ $match[$key] = array_intersect($arr, $array1); } Var_dump($match);

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.4.120.0090.01220.52
8.4.110.0100.01218.85
8.4.100.0110.00917.45
8.4.90.0120.00918.71
8.4.80.0130.00717.48
8.4.70.0070.00117.68
8.4.60.0110.00918.98
8.4.50.0140.00619.65
8.4.40.0040.00417.54
8.4.30.0060.01319.24
8.4.20.0170.00319.65
8.4.10.0080.00818.59
8.3.250.0110.00818.79
8.3.240.0110.00518.75
8.3.230.0090.01016.85
8.3.220.0050.00317.29
8.3.210.0080.01116.74
8.3.200.0050.00416.48
8.3.190.0090.01017.09
8.3.180.0110.01016.68
8.3.170.0150.00317.09
8.3.160.0070.00316.48
8.3.150.0070.01120.42
8.3.140.0090.00918.31
8.3.130.0040.00418.45
8.3.120.0000.00920.63
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0060.00318.43
8.3.70.0070.01318.18
8.3.60.0120.00318.56
8.3.50.0100.00617.03
8.3.40.0120.00318.71
8.3.30.0140.00018.54
8.3.20.0090.00019.01
8.3.10.0030.00521.73
8.3.00.0080.00017.80
8.2.290.0110.00420.57
8.2.280.0110.00618.63
8.2.270.0060.00317.05
8.2.260.0050.00318.53
8.2.250.0050.00316.38
8.2.240.0120.00617.25
8.2.230.0060.00322.58
8.2.220.0180.00437.54
8.2.210.0090.00026.77
8.2.200.0060.00316.63
8.2.190.0090.00616.58
8.2.180.0130.00318.38
8.2.170.0040.01122.96
8.2.160.0000.01419.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.83
8.2.120.0070.00026.35
8.2.110.0070.00319.16
8.2.100.0120.00017.72
8.2.90.0030.00617.84
8.2.80.0060.00318.03
8.2.70.0000.00817.61
8.2.60.0040.00418.22
8.2.50.0040.00418.10
8.2.40.0040.00419.48
8.2.30.0080.00019.50
8.2.20.0000.00818.02
8.2.10.0000.00718.06
8.2.00.0040.00419.36
8.1.330.0110.00821.80
8.1.320.0090.01016.22
8.1.310.0140.00416.65
8.1.300.0150.00320.20
8.1.290.0030.00630.84
8.1.280.0140.00725.92
8.1.270.0030.00523.83
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0060.00322.48
8.1.230.0060.00620.89
8.1.220.0000.00717.74
8.1.210.0000.00918.87
8.1.200.0000.00817.25
8.1.190.0040.00417.23
8.1.180.0090.00018.10
8.1.170.0060.00318.65
8.1.160.0050.00218.92
8.1.150.0040.00418.88
8.1.140.0040.00417.70
8.1.130.0060.00619.05
8.1.120.0080.00417.43
8.1.110.0060.00317.43
8.1.100.0070.00017.41
8.1.90.0040.00417.35
8.1.80.0080.00017.45
8.1.70.0100.00017.48
8.1.60.0080.00017.61
8.1.50.0020.00517.51
8.1.40.0050.00317.47
8.1.30.0040.00417.48
8.1.20.0000.00717.64
8.1.10.0000.00917.53
8.1.00.0030.00517.29
8.0.300.0000.00820.01
8.0.290.0040.00416.75
8.0.280.0000.00818.37
8.0.270.0030.00317.09
8.0.260.0000.00717.20
8.0.250.0030.00316.79
8.0.240.0040.00416.85
8.0.230.0030.00316.83
8.0.220.0080.00016.88
8.0.210.0040.00416.84
8.0.200.0070.00016.96
8.0.190.0080.00016.81
8.0.180.0030.00516.78
8.0.170.0040.00416.89
8.0.160.0000.00816.78
8.0.150.0050.00316.80
8.0.140.0040.00416.81
8.0.130.0050.00013.37
8.0.120.0030.00616.84
8.0.110.0000.00716.78
8.0.100.0040.00416.83
8.0.90.0030.00516.82
8.0.80.0100.01016.85
8.0.70.0040.00416.79
8.0.60.0040.00416.74
8.0.50.0080.00016.75
8.0.30.0080.01016.99
8.0.20.0090.01117.40
8.0.10.0040.00417.07
8.0.00.0100.00716.68
7.4.330.0060.00015.55
7.4.320.0030.00316.40
7.4.300.0030.00316.38
7.4.290.0070.00016.53
7.4.280.0030.00616.50
7.4.270.0060.00316.39
7.4.260.0040.00416.55
7.4.250.0000.00716.47
7.4.240.0040.00416.51
7.4.230.0030.00316.62
7.4.220.0040.00416.70
7.4.210.0050.00916.57
7.4.200.0030.00316.24
7.4.160.0070.00716.44
7.4.140.0080.01117.86
7.4.130.0140.01116.58
7.4.120.0130.00516.52
7.4.110.0130.00416.69
7.4.100.0040.01416.55
7.4.90.0090.01416.40
7.4.80.0130.00619.39
7.4.70.0060.00916.63
7.4.60.0120.00816.57
7.4.50.0070.01416.54
7.4.40.0060.01216.46
7.4.00.0090.00814.91
7.3.330.0000.00613.15
7.3.320.0030.00313.11
7.3.310.0040.00416.39
7.3.300.0000.00616.21
7.3.290.0030.00316.31
7.3.280.0080.00916.30
7.3.260.0070.01216.44
7.3.240.0060.01116.39
7.3.230.0120.00616.62
7.3.210.0090.01216.30
7.3.200.0100.01716.60
7.3.190.0080.01116.25
7.3.180.0100.00616.57
7.3.170.0150.00616.30
7.3.160.0030.01316.53
7.3.120.0040.01214.92
7.3.110.0080.00714.87
7.3.100.0070.00914.80
7.3.90.0070.00914.79
7.3.80.0050.00914.85
7.3.70.0060.00714.88
7.3.60.0020.01214.86
7.3.50.0050.00914.74
7.3.40.0050.01014.74
7.3.30.0050.00814.87
7.3.20.0030.01016.54
7.3.10.0050.00916.70
7.3.00.0070.00816.73
7.2.330.0000.01816.65
7.2.320.0100.01216.68
7.2.310.0030.01516.38
7.2.300.0110.00816.61
7.2.290.0080.00816.52
7.2.250.0080.01015.03
7.2.240.0080.01015.13
7.2.230.0030.01215.04
7.2.220.0070.00714.97
7.2.210.0030.01215.00
7.2.200.0090.00515.08
7.2.190.0030.01014.90
7.2.180.0070.00715.04
7.2.170.0050.00715.02
7.2.160.0070.00714.92
7.2.150.0050.01216.91
7.2.140.0100.00016.80
7.2.130.0070.01016.84
7.2.120.0030.01016.74
7.2.110.0050.00816.77
7.2.100.0080.00516.87
7.2.90.0060.00816.91
7.2.80.0040.01016.70
7.2.70.0040.01116.82
7.2.60.0070.00716.85
7.2.50.0090.00516.94
7.2.40.1220.00717.19
7.2.30.0080.00817.26
7.2.20.0080.00917.20
7.2.10.0810.01017.24
7.2.00.0220.00617.17
7.1.330.0080.00815.81
7.1.320.0060.00815.97
7.1.310.0060.00715.78
7.1.300.0080.00515.87
7.1.290.0060.00715.69
7.1.280.0070.00615.72
7.1.270.0070.00715.88
7.1.260.0060.00715.67
7.1.250.0080.00515.88
7.1.240.0020.01115.88
7.1.230.0080.00715.71
7.1.220.0020.01015.78
7.1.210.0020.00915.92
7.1.200.0070.00715.83
7.1.190.0050.00615.90
7.1.180.0070.00415.92
7.1.170.0060.00815.90
7.1.160.0780.00615.98
7.1.150.0890.01216.30
7.1.140.0080.00716.27
7.1.130.0110.00715.95
7.1.120.0150.00716.00
7.1.110.0050.01115.97
7.1.100.0930.00915.80
7.1.90.1000.00415.84
7.1.80.1050.01316.03
7.1.70.1050.00915.67
7.1.60.1310.00721.52
7.1.50.0120.01121.49
7.1.40.0100.01321.45
7.1.30.0690.01221.38
7.1.20.0120.01121.48
7.1.10.1020.00615.45
7.1.00.0900.00915.56
7.0.330.0010.01115.32
7.0.320.0000.01315.44
7.0.310.0090.00415.34
7.0.300.0020.00915.33
7.0.290.0090.00515.36
7.0.280.0000.01215.46
7.0.270.0000.01115.40
7.0.260.0050.00715.46
7.0.250.0020.00915.36
7.0.240.0070.00715.46
7.0.230.0030.00915.41
7.0.220.0070.00715.28
7.0.210.0110.00315.32
7.0.200.0030.01215.50
7.0.190.0090.00515.37
7.0.180.0040.00815.57
7.0.170.0050.01015.20
7.0.160.0040.01015.52
7.0.150.0070.00615.30
7.0.140.0040.01015.33
7.0.130.0020.01215.37
7.0.120.0100.00515.47
7.0.110.0060.00915.38
7.0.100.0050.00715.32
7.0.90.0040.00715.30
7.0.80.0060.00615.21
7.0.70.0030.00815.45
7.0.60.0030.01015.26
7.0.50.0080.00515.63
7.0.40.0020.01314.22
7.0.30.0080.00314.12
7.0.20.0020.01414.19
7.0.10.0060.00714.18
7.0.00.0040.00714.15
5.6.400.0030.01214.54
5.6.390.0030.01014.66
5.6.380.0030.00814.60
5.6.370.0040.00714.65
5.6.360.0090.00514.64
5.6.350.0030.01014.76
5.6.340.0070.00714.62
5.6.330.0030.00814.71
5.6.320.0030.00914.42
5.6.310.0080.00814.66
5.6.300.0070.00614.48
5.6.290.0060.00914.65
5.6.280.0010.01214.68
5.6.270.0090.00514.47
5.6.260.0090.00314.61
5.6.250.0020.01314.62
5.6.240.0070.00714.58
5.6.230.0070.00714.64
5.6.220.0020.01114.59
5.6.210.0080.00514.68
5.6.200.0080.00714.71
5.6.190.0030.01014.60
5.6.180.0060.01014.64
5.6.170.0060.00714.61
5.6.160.0070.00514.64
5.6.150.0080.00514.56
5.6.140.0070.00414.68
5.6.130.0080.00714.70
5.6.120.0090.00514.75
5.6.110.0050.00914.63
5.6.100.0120.00514.71
5.6.90.0030.01014.54
5.6.80.0060.00514.48
5.6.70.0040.00914.64
5.6.60.0020.01014.55
5.6.50.0020.01314.69
5.6.40.0040.00914.54
5.6.30.0080.00514.54
5.6.20.0050.00714.50
5.6.10.0020.00814.68
5.6.00.0040.01014.63

preferences:
65.59 ms | 403 KiB | 5 Q