3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<pre>'; $bdd['80395']= array('80396','80397','80398','777'); $folder['80395']= array('80396','80397','666','80398','154223'); $folder['80397']= array('34','35','36','45','57'); echo '<hr>'; function multidimensional_array_diff($a1,$a2) { $r = array(); foreach ($a2 as $key => $second) { foreach ($a1 as $key => $first) { if (isset($a2[$key])) { foreach ($first as $first_value) { foreach ($second as $second_value) { if ($first_value == $second_value) { $true = true; break; } } if (!isset($true)) { $r[$key][] = $first_value; } unset($true); } } else { $r[$key] = $first; } } } return $r; } print_r(single_diff_assoc($folder,$bdd));

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.0060.01218.84
8.3.30.0060.00919.21
8.3.20.0050.00320.34
8.3.10.0070.00723.48
8.3.00.0120.00319.50
8.2.170.0040.01119.04
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0120.00624.66
8.2.130.0000.00826.16
8.2.120.0070.00722.25
8.2.110.0000.00922.25
8.2.100.0110.00017.97
8.2.90.0060.00319.21
8.2.80.0000.00818.00
8.2.70.0090.00017.63
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0040.00418.34
8.2.30.0060.00318.03
8.2.20.0000.00917.82
8.2.10.0000.00718.00
8.2.00.0050.00317.86
8.1.270.0080.00024.02
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0060.00323.83
8.1.230.0040.00719.01
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0000.00817.52
8.1.180.0050.00318.10
8.1.170.0030.00618.68
8.1.160.0000.00721.88
8.1.150.0050.00218.59
8.1.140.0000.00717.36
8.1.130.0070.00017.66
8.1.120.0000.00717.35
8.1.110.0060.00317.26
8.1.100.0000.00717.38
8.1.90.0000.00717.32
8.1.80.0040.00417.24
8.1.70.0000.00717.27
8.1.60.0050.00217.49
8.1.50.0000.00717.43
8.1.40.0040.00417.39
8.1.30.0090.00017.55
8.1.20.0080.00017.57
8.1.10.0050.00217.49
8.1.00.0050.00317.45
8.0.300.0000.00818.77
8.0.290.0000.00717.04
8.0.280.0000.00718.49
8.0.270.0040.00417.34
8.0.260.0000.00716.95
8.0.250.0000.00616.99
8.0.240.0030.00317.01
8.0.230.0030.00316.98
8.0.220.0080.00016.83
8.0.210.0070.00016.88
8.0.200.0030.00316.88
8.0.190.0000.00816.85
8.0.180.0070.00016.98
8.0.170.0000.00716.98
8.0.160.0040.00416.92
8.0.150.0000.00816.77
8.0.140.0040.00416.77
8.0.130.0060.00013.35
8.0.120.0040.00416.80
8.0.110.0080.00016.85
8.0.100.0000.00716.91
8.0.90.0050.00316.97
8.0.80.0090.01216.87
8.0.70.0050.00216.72
8.0.60.0040.00416.92
8.0.50.0040.00416.86
8.0.30.0120.01016.95
8.0.20.0110.00817.40
8.0.10.0000.00716.98
8.0.00.0100.00816.68
7.4.330.0030.00315.04
7.4.320.0040.00416.47
7.4.300.0060.00016.52
7.4.290.0070.00016.55
7.4.280.0030.00316.62
7.4.270.0000.00716.66
7.4.260.0030.00316.60
7.4.250.0000.00716.53
7.4.240.0040.00316.68
7.4.230.0030.00316.41
7.4.220.0140.01016.58
7.4.210.0090.00616.63
7.4.200.0040.00416.57
7.4.190.0030.00316.77
7.4.160.0060.01016.29
7.4.150.0150.00617.40
7.4.140.0120.00717.86
7.4.130.0120.00516.56
7.4.120.0080.01016.53
7.4.110.0090.00916.66
7.4.100.0090.01216.73
7.4.90.0080.01216.61
7.4.80.0140.00919.39
7.4.70.0090.00616.49
7.4.60.0070.01016.49
7.4.50.0040.00416.58
7.4.40.0030.01022.77
7.4.30.0100.00716.63
7.4.10.0000.01214.74
7.4.00.0080.00915.03
7.3.330.0000.00613.39
7.3.320.0050.00013.46
7.3.310.0000.00716.28
7.3.300.0000.00716.30
7.3.290.0000.01516.34
7.3.280.0080.00916.39
7.3.270.0030.01417.40
7.3.260.0090.00916.37
7.3.250.0150.00616.62
7.3.240.0060.00916.54
7.3.230.0110.01116.39
7.3.210.0070.01016.41
7.3.200.0130.00619.39
7.3.190.0030.01716.53
7.3.180.0150.00016.44
7.3.170.0110.00716.42
7.3.160.0030.01516.45
7.3.130.0030.01414.53
7.3.120.0050.01214.90
7.3.110.0100.01014.92
7.3.100.0000.01514.73
7.3.90.0000.00914.99
7.3.80.0100.00014.94
7.3.70.0060.00914.63
7.3.60.0050.00314.48
7.3.50.0040.00814.64
7.3.40.0040.01114.73
7.3.30.0070.01014.77
7.3.20.0060.00316.48
7.3.10.0110.00416.63
7.3.00.0070.00816.57
7.2.330.0270.02116.72
7.2.320.0100.00716.71
7.2.310.0100.01316.66
7.2.300.0170.00016.30
7.2.290.0080.00816.69
7.2.260.0060.01315.02
7.2.250.0150.00314.55
7.2.240.0110.00415.12
7.2.230.0070.01014.79
7.2.220.0030.01014.77
7.2.210.0040.01114.55
7.2.200.0060.00315.17
7.2.190.0110.00415.19
7.2.180.0000.01014.69
7.2.170.0050.00515.08
7.2.160.0100.00314.90
7.2.150.0110.00316.68
7.2.140.0110.00416.89
7.2.130.0070.00716.67
7.2.120.0070.00916.88
7.2.110.0100.00616.66
7.2.100.0160.00216.90
7.2.90.0070.00816.85
7.2.80.0070.00916.72
7.2.70.0130.00416.74
7.2.60.0080.01016.81
7.2.50.0050.01016.87
7.2.40.0060.01116.79
7.2.30.0110.00516.79
7.2.20.0090.00616.88
7.2.10.0080.00816.80
7.2.00.0080.00717.49
7.1.330.0000.01515.75
7.1.320.0040.01115.80
7.1.310.0030.00915.95
7.1.300.0030.01015.73
7.1.290.0000.01515.63
7.1.280.0000.01315.61
7.1.270.0030.00715.71
7.1.260.0030.00915.93
7.1.250.0060.00915.58
7.1.240.0070.00715.51
7.1.230.0060.00915.75
7.1.220.0000.01315.62
7.1.210.0100.00315.48
7.1.200.0050.00515.83
7.1.190.0000.01315.71
7.1.180.0030.00915.61
7.1.170.0030.00615.49
7.1.160.0070.00715.75
7.1.150.0000.01115.86
7.1.140.0110.00315.70
7.1.130.0040.00415.66
7.1.120.0000.00915.68
7.1.110.0080.00815.85
7.1.100.0070.00715.48
7.1.90.0060.00315.86
7.1.80.0030.01215.73
7.1.70.0110.00516.43
7.1.60.0070.00816.38
7.1.50.0060.01116.42
7.1.40.0130.00315.48
7.1.30.0030.01015.57
7.1.20.0060.00915.77
7.1.10.0030.01015.82
7.1.00.0020.04318.94
7.0.330.0090.00315.20
7.0.320.0030.00615.26
7.0.310.0000.01115.28
7.0.300.0080.00015.21
7.0.290.0060.00915.21
7.0.280.0060.00615.55
7.0.270.0040.01115.36
7.0.260.0060.00615.11
7.0.250.0060.00815.33
7.0.240.0030.00615.48
7.0.230.0080.00315.28
7.0.220.0040.01415.52
7.0.210.0000.01715.27
7.0.200.0050.01116.08
7.0.190.0090.00615.38
7.0.180.0070.00315.31
7.0.170.0030.01015.18
7.0.160.0040.00815.41
7.0.150.0040.00715.16
7.0.140.0080.03518.66
7.0.130.0100.00315.45
7.0.120.0040.00415.39
7.0.110.0070.00715.46
7.0.100.0070.00315.43
7.0.90.0060.01015.21
7.0.80.0080.00815.04
7.0.70.0080.00815.43
7.0.60.0100.03817.72
7.0.50.0070.04316.66
7.0.40.0110.02516.80
7.0.30.0250.03216.68
7.0.20.0130.02516.82
7.0.10.0110.04316.86
7.0.00.0120.04216.82
5.6.400.0070.00614.60
5.6.390.0040.01114.13
5.6.380.0000.01014.27
5.6.370.0090.00614.52
5.6.360.0060.00614.47
5.6.350.0000.00914.56
5.6.340.0060.00914.11
5.6.330.0030.01314.50
5.6.320.0030.01214.62
5.6.310.0080.00814.25
5.6.300.0040.00714.38
5.6.290.0090.00614.26
5.6.280.0040.04217.77
5.6.270.0070.00714.19
5.6.260.0120.00314.10
5.6.250.0110.00414.39
5.6.240.0030.00814.09
5.6.230.0030.01314.34
5.6.220.0030.01014.28
5.6.210.0050.04817.45
5.6.200.0040.02616.20
5.6.190.0090.03417.38
5.6.180.0150.02817.55
5.6.170.0140.02517.35
5.6.160.0050.05017.44
5.6.150.0090.04316.37
5.6.140.0050.04316.24
5.6.130.0020.03216.29
5.6.120.0100.04117.63
5.6.110.0030.04817.63
5.6.100.0150.04117.63
5.6.90.0140.03217.81
5.6.80.0050.02217.47
5.6.70.2300.01817.33
5.6.60.0070.00314.41
5.6.50.0030.01014.11
5.6.40.0060.00814.51
5.6.30.0110.00414.43
5.6.20.0000.01314.02
5.6.10.0000.01414.30
5.6.00.0070.00314.51
5.5.380.0000.01714.14
5.5.370.0120.00314.29
5.5.360.0000.01114.21
5.5.350.0070.04217.29
5.5.340.0050.02516.23
5.5.330.0070.02417.32
5.5.320.0220.03717.28
5.5.310.0160.02417.19
5.5.300.0080.04016.03
5.5.290.0020.02416.05
5.5.280.0050.04217.49
5.5.270.0130.04317.47
5.5.260.0080.03317.43
5.5.250.0050.04017.37
5.5.240.0050.02017.30
5.5.230.0070.00714.00
5.5.220.0030.00714.16
5.5.210.0040.00714.23
5.5.200.0100.00314.07
5.5.190.0090.00014.48
5.5.180.0100.00714.36
5.5.170.0070.00714.11
5.5.160.0070.00414.33
5.5.150.0040.01114.14
5.5.140.0070.00314.07
5.5.130.0060.00614.23
5.5.120.0070.00713.93
5.5.110.0110.00414.30
5.5.100.0030.01314.20
5.5.90.0030.00714.23
5.5.80.0070.00714.11
5.5.70.0040.01114.24
5.5.60.0030.01414.29
5.5.50.0040.00814.02
5.5.40.0030.00914.35
5.5.30.0030.01314.24
5.5.20.0040.01113.79
5.5.10.0090.00613.84
5.5.00.0080.00014.29
5.4.450.0390.02715.73
5.4.440.0300.02815.74
5.4.430.0280.03215.76
5.4.420.0380.03315.77
5.4.410.0250.03515.54
5.4.400.0320.03015.65
5.4.390.0070.03015.47
5.4.380.0220.03715.36
5.4.370.0130.03015.36
5.4.360.0170.02615.28
5.4.350.0150.02915.22
5.4.340.0230.03915.36
5.4.330.0030.00711.98
5.4.320.0050.02212.24
5.4.310.0060.02412.24
5.4.300.0060.02512.24
5.4.290.0040.02212.24
5.4.280.0040.02412.19
5.4.270.0050.02212.19
5.4.260.0080.01912.19
5.4.250.0040.02412.19
5.4.240.0070.01912.19
5.4.230.0060.02612.19
5.4.220.0040.02812.19
5.4.210.0070.01912.18
5.4.200.0020.02712.19
5.4.190.0050.02812.18
5.4.180.0080.02612.18
5.4.170.0080.02312.19
5.4.160.0130.02312.18
5.4.150.0090.02612.18
5.4.140.0140.02212.03
5.4.130.0100.02812.02
5.4.120.0100.02512.00
5.4.110.0110.02212.00
5.4.100.0070.02812.00
5.4.90.0110.02311.99
5.4.80.0140.02312.00
5.4.70.0130.02411.99
5.4.60.0130.02211.99
5.4.50.0120.02311.99
5.4.40.0130.02111.98
5.4.30.0090.02611.98
5.4.20.0070.02511.98
5.4.10.0090.02511.98
5.4.00.0060.02611.73
5.3.290.0060.02412.39
5.3.280.0040.02512.34
5.3.270.0090.02512.35
5.3.260.0080.02712.35
5.3.250.0130.02412.35
5.3.240.0100.02612.35
5.3.230.0090.02612.34
5.3.220.0080.02612.33
5.3.210.0110.02512.33
5.3.200.0100.02612.33
5.3.190.0110.02412.33
5.3.180.0130.02312.32
5.3.170.0110.02412.32
5.3.160.0110.02212.33
5.3.150.0110.02512.32
5.3.140.0070.02812.32
5.3.130.0110.02412.32
5.3.120.0100.02612.32
5.3.110.0070.02612.32
5.3.100.0120.02212.05
5.3.90.0100.02412.04
5.3.80.0070.02612.04
5.3.70.0100.02412.04
5.3.60.0080.02512.03
5.3.50.0060.02712.00
5.3.40.0090.02712.00
5.3.30.0090.02411.99
5.3.20.0110.02411.87
5.3.10.0080.02611.86
5.3.00.0070.02711.85
5.2.170.0090.0399.22
5.2.160.0090.0389.22
5.2.150.0120.0369.21
5.2.140.0110.0379.22
5.2.130.0150.0329.18
5.2.120.0110.0369.18
5.2.110.0090.0409.18
5.2.100.0110.0369.19
5.2.90.0140.0339.18
5.2.80.0140.0349.18
5.2.70.0140.0349.17
5.2.60.0150.0339.13
5.2.50.0130.0349.10
5.2.40.0150.0329.07
5.2.30.0160.0319.04
5.2.20.0200.0579.04
5.2.10.0130.0348.95
5.2.00.0190.0268.80
5.1.60.0100.0298.09
5.1.50.0100.0318.09
5.1.40.0100.0308.07
5.1.30.0120.0318.41
5.1.20.0130.0308.45
5.1.10.0170.0318.16
5.1.00.0110.0328.16
5.0.50.0090.0256.66
5.0.40.0080.0266.51
5.0.30.0100.0356.33
5.0.20.0100.0246.29
5.0.10.0090.0236.27
5.0.00.0090.0366.27
4.4.90.0070.0184.78
4.4.80.0100.0154.75
4.4.70.0070.0194.75
4.4.60.0090.0174.75
4.4.50.0060.0194.77
4.4.40.0120.0244.71
4.4.30.0060.0204.76
4.4.20.0080.0174.84
4.4.10.0070.0194.84
4.4.00.0060.0294.76
4.3.110.0060.0214.66
4.3.100.0080.0174.66
4.3.90.0100.0174.63
4.3.80.0080.0274.59
4.3.70.0070.0184.63
4.3.60.0060.0184.63
4.3.50.0080.0174.63
4.3.40.0090.0264.54
4.3.30.0040.0193.32
4.3.20.0080.0153.30
4.3.10.0070.0163.27
4.3.00.0300.01315.59

preferences:
49.16 ms | 400 KiB | 5 Q