3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => "green", "b" => "red", "c" => "blue"); $array2 = array("b" => "green", "e" => "yellow", "a" => "red"); $result = array_diff_key($array1, $array2); print_r($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.40.0100.00718.52
8.3.30.0000.01420.07
8.3.20.0050.00318.57
8.3.10.0080.00020.98
8.3.00.0080.00019.67
8.2.170.0140.00022.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.00
8.2.110.0030.00620.52
8.2.100.0030.00717.78
8.2.90.0040.00419.27
8.2.80.0000.00719.28
8.2.70.0100.00017.50
8.2.60.0000.00717.93
8.2.50.0050.00318.07
8.2.40.0080.00018.03
8.2.30.0000.00719.35
8.2.20.0020.00517.58
8.2.10.0000.00717.56
8.2.00.0080.00417.65
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.53
8.1.230.0080.00321.10
8.1.220.0040.00418.77
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.40
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0040.00418.86
8.1.150.0040.00418.43
8.1.140.0000.00717.38
8.1.130.0030.00317.72
8.1.120.0040.00417.41
8.1.110.0030.00517.46
8.1.100.0070.00017.45
8.1.90.0040.00417.39
8.1.80.0030.00317.34
8.1.70.0000.00717.34
8.1.60.0030.00617.52
8.1.50.0020.00517.46
8.1.40.0040.00417.33
8.1.30.0080.00017.59
8.1.20.0000.00817.60
8.1.10.0060.00317.32
8.1.00.0000.00717.28
8.0.300.0030.00319.91
8.0.290.0040.00417.15
8.0.280.0000.00718.26
8.0.270.0000.00717.13
8.0.260.0030.00318.24
8.0.250.0040.00416.88
8.0.240.0080.00316.77
8.0.230.0070.00016.76
8.0.220.0030.00316.81
8.0.210.0000.00616.86
8.0.200.0060.00016.84
8.0.190.0030.00616.84
8.0.180.0040.00416.79
8.0.170.0050.00216.75
8.0.160.0000.00716.66
8.0.150.0070.00016.66
8.0.140.0040.00716.66
8.0.130.0030.00313.21
8.0.120.0070.00016.69
8.0.110.0000.00816.70
8.0.100.0070.00016.80
8.0.90.0030.00516.86
8.0.80.0060.01016.84
8.0.70.0050.00216.70
8.0.60.0040.00416.69
8.0.50.0040.00416.75
8.0.30.0140.00617.06
8.0.20.0100.00817.40
8.0.10.0070.00016.83
8.0.00.0100.01116.63
7.4.330.0030.00316.66
7.4.320.0060.00016.53
7.4.300.0070.00016.57
7.4.290.0030.00316.44
7.4.280.0070.00016.51
7.4.270.0000.00716.43
7.4.260.0030.00313.18
7.4.250.0050.00316.48
7.4.240.0030.00516.42
7.4.230.0070.00016.55
7.4.220.0230.00316.27
7.4.210.0080.00916.52
7.4.200.0050.00316.53
7.4.190.0070.00016.48
7.4.160.0030.01916.39
7.4.150.0250.03217.40
7.4.140.0120.00817.86
7.4.130.0060.01116.50
7.4.120.0080.01316.43
7.4.110.0090.01516.44
7.4.100.0060.01316.27
7.4.90.0060.01516.25
7.4.80.0120.00319.39
7.4.70.0110.01416.44
7.4.60.0150.00316.39
7.4.50.0000.00816.29
7.4.40.0100.00322.77
7.4.30.0090.00916.48
7.4.00.0060.00615.05
7.3.330.0050.00012.89
7.3.320.0000.00512.95
7.3.310.0000.00716.20
7.3.300.0040.00415.96
7.3.290.0000.01416.09
7.3.280.0070.01216.13
7.3.270.0060.01217.40
7.3.260.0100.00718.24
7.3.250.0120.00716.13
7.3.240.0100.00716.00
7.3.230.0110.00516.39
7.3.210.0090.01316.43
7.3.200.0120.00919.39
7.3.190.0120.00916.37
7.3.180.0120.00816.43
7.3.170.0090.00616.33
7.3.160.0040.01216.26
7.3.120.0070.00714.73
7.3.10.0060.00616.26
7.3.00.0080.00416.55
7.2.330.0130.00716.54
7.2.320.0160.00016.18
7.2.310.0030.01316.25
7.2.300.0060.01016.41
7.2.290.0110.00416.33
7.2.130.0070.00716.65
7.2.120.0060.00616.64
7.2.110.0070.00716.66
7.2.100.0090.00616.78
7.2.90.0060.00616.96
7.2.80.0100.00316.84
7.2.70.0030.01016.97
7.2.60.0110.00016.95
7.2.50.0040.00816.83
7.2.40.0070.00716.50
7.2.30.0110.00316.66
7.2.20.0060.00916.84
7.2.10.0030.00816.77
7.2.00.0030.01017.76
7.1.250.0060.01015.45
7.1.100.0140.00018.09
7.1.70.0060.00317.37
7.1.60.0030.00717.37
7.1.50.0000.01117.37
7.1.40.0000.01117.37
7.1.30.0040.01917.37
7.1.20.0070.01817.37
7.1.10.0000.00817.37
7.1.00.0040.00417.37
7.0.200.0000.00817.37
7.0.190.0110.00017.37
7.0.180.0040.00417.37
7.0.170.0030.01317.37
7.0.160.0000.01017.37
7.0.150.0030.00917.37
7.0.140.0040.00717.37
7.0.130.0030.00617.37
7.0.120.0000.00817.37
7.0.110.0050.00517.37
7.0.100.0000.00817.37
7.0.90.0000.00717.37
7.0.80.0030.00517.37
7.0.70.0000.00717.37
7.0.60.0050.00217.37
7.0.50.0000.01017.37
7.0.40.0030.00717.37
7.0.30.0050.00317.37
7.0.20.0060.00617.37
7.0.10.0030.00617.37
7.0.00.0060.00317.37
5.6.300.0030.04120.92
5.6.290.0560.04320.66
5.6.280.0100.03520.97
5.6.270.0030.04520.86
5.6.260.0000.05520.88
5.6.250.0030.04220.78
5.6.240.0210.04820.86
5.6.230.0100.04220.96
5.6.220.0070.04421.04
5.6.210.0060.04221.04
5.6.200.0030.04520.82
5.6.190.0000.04720.81
5.6.180.0000.04820.86
5.6.170.0030.08920.93
5.6.160.0000.04820.86
5.6.150.0070.04020.75
5.6.140.0030.04720.94
5.6.130.0030.04420.95
5.6.120.0030.04620.92
5.6.110.0030.04520.79
5.6.100.0030.04520.81
5.6.90.0100.03521.03
5.6.80.0070.03720.34
5.6.70.0030.04020.39
5.6.60.0030.04720.32
5.6.50.0000.04120.32
5.6.40.0000.04120.09
5.6.30.0030.07120.21
5.6.20.0030.06520.31
5.6.10.0070.04120.38
5.6.00.0030.04020.32
5.5.380.0030.03917.46
5.5.370.0060.04217.41
5.5.360.0090.03817.40
5.5.350.0000.04317.49
5.5.340.0200.05118.07
5.5.330.0090.04718.04
5.5.320.0070.03718.04
5.5.310.0030.04517.74
5.5.300.0160.04617.74
5.5.290.0070.03918.02
5.5.280.0070.03618.08
5.5.270.0000.04917.98
5.5.260.0100.03617.85
5.5.250.0030.04117.55
5.5.240.0070.03717.37
5.5.230.0030.04217.37
5.5.220.0000.04417.37
5.5.210.0060.03417.37
5.5.200.0090.03517.37
5.5.190.0070.03417.37
5.5.180.0000.05117.37
5.5.160.0030.04117.37
5.5.150.0030.03617.41
5.5.140.0300.04017.40
5.5.130.0030.03817.37
5.5.120.0000.04617.37
5.5.110.0030.04317.40
5.5.100.0000.04417.37
5.5.90.0130.02917.37
5.5.80.0030.03517.37
5.5.70.0030.03617.37
5.5.60.0000.04617.37
5.5.50.0030.03817.37
5.5.40.0100.03317.37
5.5.30.0000.04517.37
5.5.20.0070.03717.37
5.5.10.0030.04317.37
5.5.00.0040.03617.37
5.4.450.0070.03719.14
5.4.440.0030.04419.32
5.4.430.0030.04219.18
5.4.420.0000.04519.30
5.4.410.0070.03719.34
5.4.400.0030.03619.05
5.4.390.0030.04118.88
5.4.380.0070.03718.83
5.4.370.0000.06919.14
5.4.360.0060.03819.05
5.4.350.0000.04818.88
5.4.340.0060.03818.88
5.4.320.0000.04419.02
5.4.310.0070.03319.11
5.4.300.0200.04019.05
5.4.290.0000.03919.04
5.4.280.0000.04218.93
5.4.270.0030.03819.09
5.4.260.0030.03819.19
5.4.250.0030.03919.04
5.4.240.0030.03619.09
5.4.230.0000.04118.82
5.4.220.0030.04218.82
5.4.210.0030.04019.16
5.4.200.0030.03618.96
5.4.190.0000.04919.01
5.4.180.0070.06519.09
5.4.170.0030.03919.02
5.4.160.0000.04219.03
5.4.150.0070.04018.81
5.4.140.0000.04917.37
5.4.130.0030.03717.37
5.4.120.0070.05317.37
5.4.110.0030.03517.37
5.4.100.0130.04317.37
5.4.90.0030.03317.37
5.4.80.0030.04217.37
5.4.70.0000.05317.37
5.4.60.0070.07317.37
5.4.50.0000.03917.37
5.4.40.0000.04217.37
5.4.30.0100.06817.37
5.4.20.0000.04917.37
5.4.10.0070.04617.37
5.4.00.0030.04117.37
5.3.290.0000.04217.37
5.3.280.0030.04117.37
5.3.270.0030.03617.37
5.3.260.0000.03917.37
5.3.250.0030.04517.37
5.3.240.0030.03517.37
5.3.230.0030.03517.37
5.3.220.0000.03917.37
5.3.210.0030.03617.37
5.3.200.0000.04017.37
5.3.190.0000.07017.37
5.3.180.0060.03817.37
5.3.170.0030.06317.37
5.3.160.0070.03317.37
5.3.150.0030.03417.37
5.3.140.0000.04717.37
5.3.130.0070.03317.37
5.3.120.0030.03917.37
5.3.110.0000.03917.37
5.3.100.0030.08217.37
5.3.90.0070.03317.37
5.3.80.0030.03317.37
5.3.70.0030.05317.37
5.3.60.0000.03717.37
5.3.50.0070.03017.37
5.3.40.0030.03917.37
5.3.30.0000.04017.37
5.3.20.0030.04317.37
5.3.10.0100.02917.37
5.3.00.0000.03717.37
5.2.170.0000.03317.37
5.2.160.0030.02717.37
5.2.150.0030.03217.37
5.2.140.0030.03017.37
5.2.130.0000.03617.37
5.2.120.0000.03417.37
5.2.110.0060.02517.37
5.2.100.0000.03017.37
5.2.90.0030.04317.37
5.2.80.0000.03517.37
5.2.70.0000.03817.37
5.2.60.0060.02517.37
5.2.50.0030.03717.37
5.2.40.0040.03217.37
5.2.30.0030.02917.37
5.2.20.0000.03717.37
5.2.10.0250.01917.37
5.2.00.0070.04317.37
5.1.60.0000.02717.37
5.1.50.0060.02117.37
5.1.40.0030.03317.37
5.1.30.0000.04317.37
5.1.20.0030.06517.37
5.1.10.0030.02617.37
5.1.00.0030.02317.37
5.0.50.0000.02117.37
5.0.40.0030.01917.37
5.0.30.0000.03417.37
5.0.20.0000.02217.37
5.0.10.0000.02417.37
5.0.00.0000.03817.37
4.4.90.0070.01017.37
4.4.80.0030.01517.37
4.4.70.0000.01917.37
4.4.60.0000.01917.37
4.4.50.0070.01617.37
4.4.40.0000.04517.37
4.4.30.0000.03017.37
4.4.20.0000.02417.37
4.4.10.0000.01717.37
4.4.00.0130.02617.37
4.3.110.0000.01617.37
4.3.100.0060.01617.37
4.3.90.0030.01317.37
4.3.80.0040.02517.37
4.3.70.0000.01717.37
4.3.60.0070.02417.37
4.3.50.0000.01617.37
4.3.40.0000.02717.37
4.3.30.0030.01817.37
4.3.20.0030.01517.37
4.3.10.0030.01517.37
4.3.00.0000.01817.37

preferences:
52.02 ms | 400 KiB | 5 Q