3v4l.org

run code in 300+ PHP versions simultaneously
<?php function array_key_match($target, $match) { $targetKeys = array_keys($target); $diff = array_diff($target, $match); return ($diff == array_diff($diff, $match)); } print_r(array_diff([1, 2, 3, 4], [1, 4]));

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.0060.00918.30
8.3.50.0090.01221.89
8.3.40.0140.00718.52
8.3.30.0140.00318.72
8.3.20.0070.00020.33
8.3.10.0030.00521.90
8.3.00.0080.00019.26
8.2.180.0090.00616.32
8.2.170.0070.00722.96
8.2.160.0100.00320.11
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.23
8.2.110.0060.00319.44
8.2.100.0090.00317.63
8.2.90.0040.00419.16
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0090.00017.91
8.2.50.0050.00318.07
8.2.40.0080.00019.76
8.2.30.0040.00417.94
8.2.20.0030.00617.67
8.2.10.0000.00817.93
8.2.00.0000.00817.55
8.1.280.0070.00725.92
8.1.270.0060.00320.48
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.91
8.1.230.0120.00019.01
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0080.00017.23
8.1.190.0050.00317.00
8.1.180.0090.00018.10
8.1.170.0080.00018.84
8.1.160.0040.00421.96
8.1.150.0070.00018.68
8.1.140.0020.00517.39
8.1.130.0030.00517.77
8.1.120.0040.00417.31
8.1.110.0080.00017.23
8.1.100.0000.00717.20
8.1.90.0050.00217.33
8.1.80.0040.00417.31
8.1.70.0000.00717.34
8.1.60.0040.00417.44
8.1.50.0040.00417.39
8.1.40.0030.00617.38
8.1.30.0000.00917.35
8.1.20.0060.00317.43
8.1.10.0000.00817.43
8.1.00.0090.00017.31
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.32
8.0.270.0030.00517.13
8.0.260.0000.00817.04
8.0.250.0000.00716.79
8.0.240.0030.00316.74
8.0.230.0040.00416.84
8.0.220.0000.00716.71
8.0.210.0040.00416.66
8.0.200.0000.00616.80
8.0.190.0000.00916.86
8.0.180.0050.00316.71
8.0.170.0000.00816.82
8.0.160.0030.00416.71
8.0.150.0000.00716.68
8.0.140.0000.00716.72
8.0.130.0030.00313.23
8.0.120.0040.00416.72
8.0.110.0040.00416.68
8.0.100.0070.00016.77
8.0.90.0040.00416.68
8.0.80.0070.01116.75
8.0.70.0030.00616.66
8.0.60.0070.00016.71
8.0.50.0000.00716.66
8.0.30.0110.00816.88
8.0.20.0090.00917.40
8.0.10.0070.00016.68
8.0.00.0100.00816.73
7.4.330.0000.00515.03
7.4.320.0000.00616.30
7.4.300.0000.00616.48
7.4.290.0030.00316.39
7.4.280.0000.00716.38
7.4.270.0030.00316.45
7.4.260.0000.00716.36
7.4.250.0020.00516.35
7.4.240.0000.00716.36
7.4.230.0000.00716.24
7.4.220.0110.00716.37
7.4.210.0060.00916.35
7.4.200.0070.00016.37
7.4.160.0000.01516.23
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0080.01016.21
7.4.120.0070.01016.41
7.4.110.0150.00316.31
7.4.100.0070.01116.37
7.4.90.0100.00716.29
7.4.80.0130.00319.39
7.4.70.0120.00616.22
7.4.60.0070.01016.37
7.4.50.0090.00016.38
7.4.40.0140.01116.34
7.4.30.0060.01616.26
7.4.00.0100.00714.68
7.3.330.0000.00613.19
7.3.320.0070.00713.02
7.3.310.0030.00316.10
7.3.300.0000.00716.18
7.3.290.0080.00616.22
7.3.280.0100.00816.14
7.3.270.0220.01917.40
7.3.260.0120.01216.20
7.3.250.0120.00516.32
7.3.240.0110.01216.30
7.3.230.0100.00716.39
7.3.210.0030.01316.29
7.3.200.0090.00619.39
7.3.190.0060.01016.36
7.3.180.0040.01116.44
7.3.170.0190.00316.36
7.3.160.0070.01016.43
7.3.120.0040.00814.59
7.3.110.0070.01114.90
7.3.100.0110.00414.63
7.3.90.0040.00814.69
7.3.80.0080.00414.86
7.3.70.0070.00314.75
7.3.60.0090.00014.66
7.3.50.0100.00014.60
7.3.40.0060.00614.59
7.3.30.0030.01214.76
7.3.20.0060.00316.64
7.3.10.0060.00616.45
7.3.00.0040.01116.29
7.2.330.0030.01316.44
7.2.320.0060.01116.44
7.2.310.0140.00416.25
7.2.300.0040.01216.34
7.2.290.0100.00616.33
7.2.250.0070.01014.99
7.2.240.0030.01614.64
7.2.230.0040.01114.46
7.2.220.0060.00614.97
7.2.210.0100.00714.77
7.2.200.0080.00414.89
7.2.190.0040.01414.52
7.2.180.0030.00614.68
7.2.170.0040.01114.77
7.2.60.0090.00916.68
7.2.00.0070.01118.67
7.1.330.0040.00815.68
7.1.320.0060.00915.79
7.1.310.0040.00815.74
7.1.300.0060.01015.41
7.1.290.0060.00615.67
7.1.280.0060.00615.61
7.1.270.0070.00315.59
7.1.260.0040.01115.70
7.1.200.0100.00015.68
7.1.100.0080.00317.80
7.1.70.0070.00017.18
7.1.60.0030.01619.50
7.1.50.0040.01916.78
7.1.00.0070.07322.36
7.0.200.0180.00716.10
7.0.140.0100.03022.11
7.0.60.0000.04719.89
7.0.50.0100.07717.85
7.0.40.0170.07720.09
7.0.30.0300.05020.30
7.0.20.0170.04020.25
7.0.10.0300.06720.25
7.0.00.0070.04720.21
5.6.280.0030.07320.92
5.6.210.0100.09320.51
5.6.200.0030.09018.20
5.6.190.0070.08720.55
5.6.180.0300.07020.36
5.6.170.0130.05020.62
5.6.160.0000.04720.46
5.6.150.0070.08018.25
5.6.140.0000.04018.12
5.6.130.0170.07018.18
5.6.120.0170.07320.88
5.6.110.0070.05321.12
5.6.100.0170.06021.04
5.6.90.0000.05020.98
5.6.80.0130.07720.49
5.6.70.0270.07320.28
5.5.350.0270.04720.47
5.5.340.0130.04318.04
5.5.330.0000.08720.13
5.5.320.0070.03720.29
5.5.310.0370.04720.23
5.5.300.0070.07718.09
5.5.290.0000.08318.01
5.5.280.0030.07320.98
5.5.270.0100.05020.87
5.5.260.0070.05020.98
5.5.250.0170.07320.71
5.5.240.0130.07020.24
5.4.450.0200.06019.32
5.4.440.0200.08319.50
5.4.430.0270.07019.38
5.4.420.0230.07719.49
5.4.410.0300.06319.07
5.4.400.0130.06319.06
5.4.390.0330.07318.97
5.4.380.0300.06318.89
5.4.370.0300.06719.16
5.4.360.0230.04319.20
5.4.350.0270.06719.22
5.4.340.0200.04719.16
5.4.320.0300.06319.13
5.4.310.0230.05719.20
5.4.300.0230.05719.06
5.4.290.0300.06019.22
5.4.280.0300.05019.14
5.4.270.0230.05019.08
5.4.260.0200.05318.89
5.4.250.0200.07319.23
5.4.240.0330.06319.14
5.4.230.0300.03319.16
5.4.220.0270.07019.23
5.4.210.0300.07718.94
5.4.200.0270.07019.30
5.4.190.0170.04719.23
5.4.180.0200.07319.14
5.4.170.0270.05718.83
5.4.160.0200.04019.06
5.4.150.0300.07318.85
5.4.140.0230.07016.29
5.4.130.0230.06716.50
5.4.120.0270.04016.41
5.4.110.0200.05716.26
5.4.100.0230.04016.46
5.4.90.0130.04316.28
5.4.80.0200.05316.35
5.4.70.0230.05016.55
5.4.60.0300.06316.49
5.4.50.0200.07016.34
5.4.40.0270.06316.42
5.4.30.0330.04316.42
5.4.20.0270.05316.53
5.4.10.0270.05016.38
5.4.00.0170.07015.91
5.3.290.0230.05314.55
5.3.280.0300.06314.68
5.3.270.0270.03314.51
5.3.260.0370.04314.58
5.3.250.0170.04014.52
5.3.240.0200.04014.62
5.3.230.0270.04314.52
5.3.220.0270.04314.58
5.3.210.0200.05714.57
5.3.200.0170.05314.46
5.3.190.0230.07314.61
5.3.180.0270.06014.79
5.3.170.0200.04014.68
5.3.160.0200.06014.54
5.3.150.0200.05014.46
5.3.140.0200.05014.66
5.3.130.0200.05014.47
5.3.120.0270.03314.77
5.3.110.0270.07714.63
5.3.100.0200.04014.01
5.3.90.0270.03013.99
5.3.80.0270.07014.02
5.3.70.0270.07014.23
5.3.60.0200.07013.91
5.3.50.0200.07014.00
5.3.40.0270.06313.86
5.3.30.0230.04014.07
5.3.20.0100.04713.69
5.3.10.0200.05013.57
5.3.00.0200.06713.64
5.2.170.0230.07711.99
5.2.160.0200.05311.99
5.2.150.0170.02711.99
5.2.140.0200.03311.99
5.2.130.0230.03711.99
5.2.120.0200.03011.99
5.2.110.0230.05311.99
5.2.100.0230.03711.99
5.2.90.0200.05011.99
5.2.80.0170.04711.99
5.2.70.0230.06011.99
5.2.60.0200.06011.99
5.2.50.0130.06311.99
5.2.40.0170.05711.99
5.2.30.0200.04311.99
5.2.20.0130.03711.99
5.2.10.0170.06011.99
5.2.00.0200.05011.99
5.1.60.0130.04711.99
5.1.50.0170.04011.99
5.1.40.0200.04011.99
5.1.30.0130.03711.99
5.1.20.0200.03711.99
5.1.10.0130.06011.99
5.1.00.0130.05011.99
5.0.50.0130.04011.99
5.0.40.0130.03311.99
5.0.30.0070.05311.99
5.0.20.0100.03011.99
5.0.10.0130.02011.99
5.0.00.0100.03311.99
4.4.90.0100.03711.99
4.4.80.0100.03011.99
4.4.70.0070.02011.99
4.4.60.0070.04011.99
4.4.50.0100.03311.99
4.4.40.0100.03311.99
4.4.30.0030.04011.99
4.4.20.0130.03311.99
4.4.10.0170.02011.99
4.4.00.0070.05311.99
4.3.110.0070.03311.99
4.3.100.0100.03311.99
4.3.90.0070.03311.99
4.3.80.0130.04311.99
4.3.70.0100.03311.99
4.3.60.0100.01711.99
4.3.50.0100.03311.99
4.3.40.0070.03711.99
4.3.30.0070.03011.99
4.3.20.0070.03311.99
4.3.10.0030.02311.99
4.3.00.0030.03711.99

preferences:
41.46 ms | 401 KiB | 5 Q