3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('field1' => 'toast', 'field2' => 'butter'); $array2 = array('field1' => 'toast', 'field2' => 'margerine', 'field3' => 'tea'); print_r(array_diff_key($array1, $array2));

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.0120.00318.18
8.3.50.0140.00721.21
8.3.40.0140.00318.55
8.3.30.0070.00720.27
8.3.20.0050.00220.21
8.3.10.0040.00422.09
8.3.00.0070.00022.39
8.2.180.0100.01016.63
8.2.170.0160.00022.96
8.2.160.0130.00620.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00420.75
8.2.110.0040.00420.96
8.2.100.0090.00317.72
8.2.90.0070.00019.05
8.2.80.0020.00519.34
8.2.70.0080.00317.63
8.2.60.0080.00017.90
8.2.50.0040.00418.07
8.2.40.0080.00018.21
8.2.30.0040.00419.48
8.2.20.0030.00517.54
8.2.10.0040.00417.61
8.2.00.0050.00317.68
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0070.00317.35
8.1.230.0040.00819.04
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.10
8.1.190.0000.00817.51
8.1.180.0060.00318.10
8.1.170.0030.00618.61
8.1.160.0080.00018.81
8.1.150.0040.00418.50
8.1.140.0040.00417.28
8.1.130.0000.00717.77
8.1.120.0040.00417.39
8.1.110.0000.00717.28
8.1.100.0050.00217.26
8.1.90.0040.00317.34
8.1.80.0000.00817.41
8.1.70.0000.00717.34
8.1.60.0060.00317.44
8.1.50.0070.00017.46
8.1.40.0090.00317.45
8.1.30.0000.00717.44
8.1.20.0000.00817.46
8.1.10.0070.00017.32
8.1.00.0000.00717.33
8.0.300.0060.00318.77
8.0.290.0030.00317.05
8.0.280.0000.00718.44
8.0.270.0030.00317.24
8.0.260.0000.00716.76
8.0.250.0000.00716.87
8.0.240.0080.00016.72
8.0.230.0030.00316.83
8.0.220.0060.00016.73
8.0.210.0000.00616.74
8.0.200.0000.00716.76
8.0.190.0070.00016.77
8.0.180.0000.00716.82
8.0.170.0050.00316.81
8.0.160.0000.00816.77
8.0.150.0070.00016.86
8.0.140.0110.00416.80
8.0.130.0000.00513.20
8.0.120.0000.00716.78
8.0.110.0040.00416.72
8.0.100.0040.00416.71
8.0.90.0070.00016.84
8.0.80.0070.00716.86
8.0.70.0000.00716.88
8.0.60.0000.00716.69
8.0.50.0000.00716.66
8.0.30.0080.01216.93
8.0.20.0110.00817.40
8.0.10.0000.00716.74
8.0.00.0050.01316.60
7.4.330.0020.00214.89
7.4.320.0030.00316.47
7.4.300.0030.00316.38
7.4.290.0000.00716.51
7.4.280.0040.00416.56
7.4.270.0000.00716.45
7.4.260.0030.00313.25
7.4.250.0040.00416.41
7.4.240.0000.00716.45
7.4.230.0030.00316.43
7.4.220.0140.00416.51
7.4.210.0060.00816.54
7.4.200.0000.00716.43
7.4.190.0040.00316.68
7.4.160.0130.00316.40
7.4.150.0120.00617.40
7.4.140.0080.00817.86
7.4.130.0070.00916.39
7.4.120.0100.00716.50
7.4.110.0140.00916.46
7.4.100.0160.00616.36
7.4.90.0070.01016.33
7.4.80.0140.00719.39
7.4.70.0100.00616.58
7.4.60.0110.00616.40
7.4.50.0030.00616.45
7.4.40.0090.00622.77
7.4.30.0060.00916.12
7.4.00.0060.00315.05
7.3.330.0020.00212.93
7.3.320.0000.00612.97
7.3.310.0000.00615.97
7.3.300.0030.00316.01
7.3.290.0110.00416.11
7.3.280.0050.01116.15
7.3.270.0130.00317.40
7.3.260.0100.00716.36
7.3.250.0090.00916.11
7.3.240.0100.00716.32
7.3.230.0110.00516.42
7.3.210.0080.00816.40
7.3.200.0100.01019.39
7.3.190.0090.01216.27
7.3.180.0070.01016.27
7.3.170.0060.01316.38
7.3.160.0120.00816.11
7.3.120.0120.00314.63
7.2.330.0090.00816.54
7.2.320.0100.01016.44
7.2.310.0060.01616.46
7.2.300.0090.01216.53
7.2.290.0130.00316.30
7.2.00.0070.00719.17
7.1.100.0070.01017.93
7.1.70.0040.00417.04
7.1.60.0030.01419.17
7.1.50.0240.01334.70
7.1.00.0030.06022.57
7.0.200.0050.00216.61
7.0.140.0070.06722.05
7.0.60.0170.07019.92
7.0.50.0070.06317.87
7.0.40.0100.08320.19
7.0.30.0330.06720.18
7.0.20.0230.08320.18
7.0.10.0130.06320.12
7.0.00.0030.04320.13
5.6.280.0070.07020.98
5.6.210.0230.06720.74
5.6.200.0000.06718.13
5.6.190.0070.06720.64
5.6.180.3270.04020.60
5.6.170.0130.04720.46
5.6.160.0130.04020.39
5.6.150.0070.08018.15
5.6.140.0000.04318.21
5.6.130.0070.05718.21
5.6.120.0070.05721.13
5.6.110.0000.09320.95
5.6.100.0070.04721.13
5.6.90.0170.07321.04
5.6.80.0070.08020.38
5.6.70.4530.04320.27
5.5.350.0030.05320.34
5.5.340.0070.06317.91
5.5.330.0070.08720.21
5.5.320.0230.08320.14
5.5.310.0400.07320.27
5.5.300.0100.04017.94
5.5.290.0130.07017.98
5.5.280.0130.07720.97
5.5.270.0000.05020.83
5.5.260.0030.08720.75
5.5.250.0030.09320.65
5.5.240.0030.08020.03
5.4.450.0270.07319.25
5.4.440.0300.07019.41
5.4.430.0300.06719.46
5.4.420.0370.06719.57
5.4.410.0400.07019.43
5.4.400.0170.04718.89
5.4.390.0200.07719.13
5.4.380.0300.07719.10
5.4.370.0230.06719.13
5.4.360.0230.06019.16
5.4.350.0300.07319.16
5.4.340.0300.04319.13
5.4.320.0300.07319.13
5.4.310.0300.07018.88
5.4.300.0300.07019.21
5.4.290.0330.06719.11
5.4.280.0330.07019.08
5.4.270.0330.06319.09
5.4.260.0330.06718.89
5.4.250.0370.06019.09
5.4.240.0300.07019.15
5.4.230.0370.06719.13
5.4.220.0200.05018.78
5.4.210.0270.05319.07
5.4.200.0330.07719.09
5.4.190.0330.06019.07
5.4.180.0330.06718.87
5.4.170.0270.07018.87
5.4.160.0300.07019.14
5.4.150.0330.06318.90
5.4.140.0370.06016.30
5.4.130.0330.06316.20
5.4.120.0200.04316.37
5.4.110.0270.05316.34
5.4.100.0300.06716.42
5.4.90.0170.07316.52
5.4.80.0170.05716.30
5.4.70.0230.06716.40
5.4.60.0170.07316.17
5.4.50.0330.05316.16
5.4.40.0270.06016.40
5.4.30.0270.05316.31
5.4.20.0270.06716.40
5.4.10.0230.07716.39
5.4.00.0230.05015.71
5.3.290.0200.07014.71
5.3.280.0300.07014.42
5.3.270.0270.06314.45
5.3.260.0300.06714.43
5.3.250.0370.06314.55
5.3.240.0300.05014.55
5.3.230.0230.04714.43
5.3.220.0370.06014.51
5.3.210.0270.07314.51
5.3.200.0230.06314.42
5.3.190.0230.06014.46
5.3.180.0330.06714.50
5.3.170.0230.07314.39
5.3.160.0300.07014.41
5.3.150.0270.06714.49
5.3.140.0230.08014.50
5.3.130.0230.05314.39
5.3.120.0400.06314.49
5.3.110.0200.08014.63
5.3.100.0230.07313.87
5.3.90.0170.07313.89
5.3.80.0270.06314.04
5.3.70.0230.06313.84
5.3.60.0270.07013.78
5.3.50.0270.07013.80
5.3.40.0200.06313.80
5.3.30.0170.07013.89
5.3.20.0200.07313.53
5.3.10.0200.04013.61
5.3.00.0170.06713.73
5.2.170.0170.06312.10
5.2.160.0270.05712.10
5.2.150.0230.06012.10
5.2.140.0270.05012.10
5.2.130.0170.03312.10
5.2.120.0130.03012.10
5.2.110.0130.06012.10
5.2.100.0200.03712.10
5.2.90.0330.05012.10
5.2.80.0200.05712.10
5.2.70.0230.05712.10
5.2.60.0230.05712.10
5.2.50.0200.05712.10
5.2.40.0130.06012.10
5.2.30.0130.05712.10
5.2.20.0230.05712.10
5.2.10.0170.05012.10
5.2.00.0270.05312.10
5.1.60.0170.04312.10
5.1.50.0070.05312.10
5.1.40.0130.05012.10
5.1.30.0230.04312.10
5.1.20.0130.04312.10
5.1.10.0170.05312.10
5.1.00.0130.03712.10
5.0.50.0070.04012.10
5.0.40.0070.04312.10
5.0.30.0100.05012.10
5.0.20.0170.01712.10
5.0.10.0070.04312.10
5.0.00.0130.05712.10
4.4.90.0000.03012.10
4.4.80.0100.03312.10
4.4.70.0100.03312.10
4.4.60.0070.03312.10
4.4.50.0030.03312.10
4.4.40.0100.05012.10
4.4.30.0100.03012.10
4.4.20.0170.02712.10
4.4.10.0130.02712.10
4.4.00.0100.05012.10
4.3.110.0100.02712.10
4.3.100.0130.01312.10
4.3.90.0130.03312.10
4.3.80.0030.05312.10
4.3.70.0100.03712.10
4.3.60.0030.03312.10
4.3.50.0100.03012.10
4.3.40.0070.05312.10
4.3.30.0030.02312.10
4.3.20.0070.03312.10
4.3.10.0070.03312.10
4.3.00.0070.02712.10

preferences:
43.21 ms | 401 KiB | 5 Q