3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( 105 => '101,Utility,\N', 102 => '101,Utility,\N', 103 => '105,Parker,Peter', 104 => 'Rahul Ippar' ); $arr2 = array( 108 => '101,Utility1,Floor', 120 => '101,Utility2,\N', 130 => '105,Parker,Peter', 140 => 'Rahul Ippar' ); $result = array_combine( array_keys(array_intersect( $arr2, $arr1 )), array_keys(array_intersect( $arr1, $arr2 )) ); var_dump($result);

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.0110.01116.48
8.3.50.0120.00617.92
8.3.40.0120.00918.73
8.3.30.0060.00918.97
8.3.20.0000.00720.17
8.3.10.0050.00321.90
8.3.00.0000.00817.38
8.2.180.0180.00418.29
8.2.170.0060.01219.00
8.2.160.0070.01122.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00417.63
8.2.110.0070.01122.25
8.2.100.0040.00817.50
8.2.90.0000.00819.05
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0060.00317.91
8.2.50.0030.00518.07
8.2.40.0000.00919.82
8.2.30.0030.00518.09
8.2.20.0000.00717.53
8.2.10.0000.00718.05
8.2.00.0040.00418.04
8.1.280.0150.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.18
8.1.230.0080.00317.55
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0090.00018.10
8.1.170.0040.00418.48
8.1.160.0040.00421.86
8.1.150.0000.00718.82
8.1.140.0070.00017.38
8.1.130.0040.00417.68
8.1.120.0080.00017.42
8.1.110.0030.00417.40
8.1.100.0030.00317.29
8.1.90.0000.00917.42
8.1.80.0040.00417.29
8.1.70.0000.00817.42
8.1.60.0030.00617.54
8.1.50.0000.00817.42
8.1.40.0030.00517.39
8.1.30.0040.00417.64
8.1.20.0000.00717.63
8.1.10.0040.00417.47
8.1.00.0040.00417.34
8.0.300.0050.00318.77
8.0.290.0000.00716.58
8.0.280.0070.00018.38
8.0.270.0070.00016.76
8.0.260.0000.00617.20
8.0.250.0030.00316.95
8.0.240.0070.00016.90
8.0.230.0030.00316.91
8.0.220.0050.00216.83
8.0.210.0030.00316.75
8.0.200.0030.00316.82
8.0.190.0050.00216.82
8.0.180.0070.00016.73
8.0.170.0080.00016.82
8.0.160.0000.00716.70
8.0.150.0000.00816.80
8.0.140.0000.00816.67
8.0.130.0060.00013.22
8.0.120.0040.00416.82
8.0.110.0040.00416.82
8.0.100.0030.00616.69
8.0.90.0000.00716.82
8.0.80.0000.01716.84
8.0.70.0040.00416.84
8.0.60.0000.00716.64
8.0.50.0070.00016.64
8.0.30.0090.00917.15
8.0.20.0090.01017.40
8.0.10.0040.00417.01
8.0.00.0100.00716.63
7.4.330.0030.00315.04
7.4.320.0030.00316.55
7.4.300.0060.00016.39
7.4.290.0000.00716.52
7.4.280.0100.00016.61
7.4.270.0030.00316.55
7.4.260.0040.00416.46
7.4.250.0000.00816.50
7.4.240.0020.00516.50
7.4.230.0000.00716.63
7.4.220.0060.00916.56
7.4.210.0060.00916.45
7.4.200.0000.00716.60
7.4.160.0090.00616.42
7.4.150.0130.00617.40
7.4.140.0120.01017.86
7.4.130.0120.00816.42
7.4.120.0150.00616.44
7.4.110.0090.00916.41
7.4.100.0090.01316.45
7.4.90.0130.00316.45
7.4.80.0130.01019.39
7.4.70.0120.00916.28
7.4.60.0140.00316.37
7.4.50.0000.00616.45
7.4.40.0090.00916.30
7.4.30.0080.00816.54
7.4.00.0080.00815.09
7.3.330.0000.00613.07
7.3.320.0000.00513.06
7.3.310.0000.00716.17
7.3.300.0070.00016.14
7.3.290.0060.00016.04
7.3.280.0080.00816.15
7.3.270.0100.00717.40
7.3.260.0070.01016.17
7.3.250.0130.00516.30
7.3.240.0040.01416.18
7.3.230.0110.00716.39
7.3.210.0110.00716.08
7.3.200.0060.00919.39
7.3.190.0030.01216.12
7.3.180.0090.01216.53
7.3.170.0030.01616.27
7.3.160.0060.01016.26
7.2.330.0100.00716.27
7.2.320.0160.00916.22
7.2.310.0130.00716.58
7.2.300.0090.00916.44
7.2.290.0130.00416.61
7.2.60.0040.00816.77
7.2.00.0070.00719.04
7.1.200.0070.01115.67
7.1.100.0060.00618.03
7.1.70.0090.00316.89
7.1.60.0070.01719.59
7.1.50.0080.01316.80
7.1.00.0070.07322.33
7.0.200.0110.00416.75
7.0.60.0270.07319.96
7.0.50.0030.04717.78
7.0.40.0130.07320.09
7.0.30.0270.07320.13
7.0.20.0300.08320.34
7.0.10.0100.08320.22
7.0.00.0100.07020.32
5.6.280.0030.09721.09
5.6.210.0100.08020.60
5.6.200.0100.06018.08
5.6.190.0070.07720.41
5.6.180.0500.07020.45
5.6.170.0230.06720.51
5.6.160.0130.07318.22
5.6.150.0000.04318.19
5.6.140.0100.08018.16
5.6.130.0130.08018.20
5.6.120.0070.04021.12
5.6.110.0230.07321.00
5.6.100.0100.08321.04
5.6.90.0100.08321.05
5.6.80.0100.05020.53
5.5.350.0200.07020.38
5.5.340.0030.04018.00
5.5.330.0070.04320.15
5.5.320.0330.07020.27
5.5.310.0200.04320.23
5.5.300.0030.05317.96
5.5.290.0100.08717.92
5.5.280.0130.06320.87
5.5.270.0130.07020.73
5.5.260.0130.07320.76
5.5.250.0070.05720.54
5.5.240.0230.04320.06
5.4.450.3700.04019.25
5.4.440.3400.04319.29
5.4.430.5030.04719.21
5.4.420.3770.04719.29
5.4.410.3530.03719.20
5.4.400.3800.04318.97
5.4.390.3730.03019.04
5.4.380.3600.03719.20
5.4.370.3670.03719.13
5.4.360.4070.03718.87
5.4.350.4670.04318.93
5.4.340.3730.03719.09
5.4.320.3970.03718.92
5.4.310.5030.04019.26
5.4.300.4500.04319.25
5.4.290.3970.03319.26
5.4.280.3600.03718.87
5.4.270.4500.03318.87
5.4.260.4300.03318.87
5.4.250.3600.03719.19
5.4.240.3570.03719.19
5.4.230.4400.03718.92
5.4.220.4500.04018.88
5.4.210.4000.04019.25
5.4.200.3400.03318.92
5.4.190.0070.07018.96
5.4.180.1600.03319.03
5.4.170.3870.03319.15
5.4.160.3730.03719.21
5.4.150.3630.03318.97
5.4.140.3500.04016.28
5.4.130.3670.03716.42
5.4.120.3330.03316.34
5.4.110.3770.03316.35
5.4.100.3930.03316.49
5.4.90.3830.03716.46
5.4.80.0170.06716.55
5.4.70.2870.04016.14
5.4.60.4270.03716.36
5.4.50.4700.03316.32
5.4.40.3630.03716.36
5.4.30.4070.02716.36
5.4.20.4000.02716.47
5.4.10.3470.04016.43
5.4.00.4070.03715.68
5.3.290.3600.04014.64
5.3.280.4830.03714.51
5.3.270.3600.04014.53
5.3.260.3470.03314.53
5.3.250.3800.04314.48
5.3.240.3430.03714.62
5.3.230.3200.03714.52
5.3.220.4270.03014.50
5.3.210.3870.03714.49
5.3.200.3970.03314.48
5.3.190.3200.03714.50
5.3.180.0100.06714.48
5.3.170.0030.05314.54
5.3.160.4630.04714.52
5.3.150.4570.03314.46
5.3.140.4670.03014.64
5.3.130.3900.03714.46
5.3.120.4030.03714.49
5.3.110.3830.04314.52
5.3.100.4530.04014.14
5.3.90.4500.03313.81
5.3.80.4000.03314.03
5.3.70.3930.03013.94
5.3.60.1230.04313.95
5.3.50.0070.06013.89
5.3.40.4270.03713.77
5.3.30.4370.03013.83
5.3.20.3570.04313.63
5.3.10.3870.04013.59
5.3.00.3930.03713.57
5.2.170.0070.05711.12
5.2.160.0000.04711.16
5.2.150.3930.03011.15
5.2.140.3530.03711.04
5.2.130.3470.03011.00
5.2.120.3430.02711.08
5.2.110.3500.03011.04
5.2.100.3570.02711.09
5.2.90.3170.02711.20
5.2.80.3200.03011.06
5.2.70.2900.02311.08
5.2.60.3670.03310.98
5.2.50.3300.02710.97
5.2.40.1770.03010.81
5.2.30.2470.03310.91
5.2.20.2600.02011.03
5.2.10.2500.02710.84
5.2.00.2430.02310.70
5.1.60.2470.0339.99
5.1.50.2370.02710.00
5.1.40.2700.02010.05
5.1.30.2500.02710.37
5.1.20.2400.02310.27
5.1.10.2930.02310.04
5.1.00.2670.02710.04
5.0.50.1830.0178.90
5.0.40.1470.0238.90
5.0.30.1530.0338.90
5.0.20.1500.0208.90
5.0.10.1770.0208.90
5.0.00.1700.0308.90
4.4.90.1270.0238.90
4.4.80.1400.0138.90
4.4.70.1230.0138.90
4.4.60.1400.0138.90
4.4.50.1230.0138.90
4.4.40.1200.0238.90
4.4.30.1470.0178.90
4.4.20.1530.0078.90
4.4.10.1500.0178.90
4.4.00.1400.0278.90
4.3.110.1470.0108.90
4.3.100.1630.0108.90
4.3.90.1530.0178.90
4.3.80.1530.0278.90
4.3.70.1800.0178.90
4.3.60.1700.0178.90
4.3.50.1700.0178.90
4.3.40.1700.0278.90
4.3.30.0770.0138.90
4.3.20.0900.0208.90
4.3.10.0870.0178.90
4.3.00.0930.0178.90

preferences:
62.96 ms | 400 KiB | 5 Q