3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => "green", "red","b" => "brown"); $array2 = array("a" => "green","b" => "brown", "red"); $result = array_diff_assoc($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.60.0060.00918.43
8.3.50.0040.01216.23
8.3.40.0110.00318.71
8.3.30.0110.00318.84
8.3.20.0070.00020.27
8.3.10.0040.00423.65
8.3.00.0030.00519.06
8.2.180.0000.01918.18
8.2.170.0120.00322.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00319.64
8.2.110.0030.00619.21
8.2.100.0070.00417.90
8.2.90.0030.00619.35
8.2.80.0060.00317.97
8.2.70.0050.00317.80
8.2.60.0030.00617.97
8.2.50.0000.00818.10
8.2.40.0030.00620.90
8.2.30.0000.00719.22
8.2.20.0040.00417.71
8.2.10.0000.00718.05
8.2.00.0040.00417.71
8.1.280.0070.00725.92
8.1.270.0030.00518.82
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00321.99
8.1.230.0070.00319.02
8.1.220.0040.00417.74
8.1.210.0080.00318.77
8.1.200.0000.00817.23
8.1.190.0050.00317.41
8.1.180.0000.00818.10
8.1.170.0030.00520.37
8.1.160.0070.00018.92
8.1.150.0040.00418.85
8.1.140.0040.00417.34
8.1.130.0070.00017.74
8.1.120.0070.00017.41
8.1.110.0000.00717.33
8.1.100.0030.00517.25
8.1.90.0070.00017.43
8.1.80.0050.00317.27
8.1.70.0000.00717.30
8.1.60.0080.00017.40
8.1.50.0000.00817.40
8.1.40.0070.00017.33
8.1.30.0040.00417.47
8.1.20.0020.00517.49
8.1.10.0040.00417.50
8.1.00.0040.00417.25
8.0.300.0050.00321.51
8.0.290.0040.00416.75
8.0.280.0000.00718.28
8.0.270.0030.00317.18
8.0.260.0060.00017.17
8.0.250.0030.00316.95
8.0.240.0040.00416.88
8.0.230.0070.00016.79
8.0.220.0060.00016.82
8.0.210.0030.00316.80
8.0.200.0060.00316.72
8.0.190.0050.00216.90
8.0.180.0000.00716.73
8.0.170.0040.00416.79
8.0.160.0070.00016.89
8.0.150.0040.00416.84
8.0.140.0070.00016.76
8.0.130.0060.00013.20
8.0.120.0080.00016.69
8.0.110.0000.00716.72
8.0.100.0000.00716.66
8.0.90.0000.00716.86
8.0.80.0090.01016.88
8.0.70.0030.00416.70
8.0.60.0050.00316.88
8.0.50.0070.00016.79
8.0.30.0110.00816.93
8.0.20.0160.00517.40
8.0.10.0030.00516.95
8.0.00.0140.00516.68
7.4.330.0050.00015.03
7.4.320.0000.00716.42
7.4.300.0030.00316.56
7.4.290.0030.00316.38
7.4.280.0070.00016.40
7.4.270.0000.00716.54
7.4.260.0000.00816.50
7.4.250.0030.00516.36
7.4.240.0040.00316.48
7.4.230.0030.00316.57
7.4.220.0160.01016.58
7.4.210.0040.01116.32
7.4.200.0030.00316.62
7.4.160.0110.00416.61
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0120.00816.34
7.4.120.0080.00816.37
7.4.110.0140.01116.56
7.4.100.0030.01916.51
7.4.90.0090.00916.53
7.4.80.0090.00919.39
7.4.70.0070.01016.43
7.4.60.0110.00516.23
7.4.50.0030.00616.50
7.4.40.0030.01416.16
7.4.30.0130.01016.19
7.4.00.0070.01014.80
7.3.330.0000.00612.97
7.3.320.0070.00013.07
7.3.310.0030.00316.09
7.3.300.0040.00316.02
7.3.290.0060.00816.13
7.3.280.0070.01116.12
7.3.270.0030.01417.40
7.3.260.0060.01016.40
7.3.250.0050.01216.32
7.3.240.0140.00416.37
7.3.230.0090.00616.39
7.3.210.0100.00616.11
7.3.200.0060.01219.39
7.3.190.0080.00816.23
7.3.180.0110.00616.29
7.3.170.0130.00716.53
7.3.160.0110.00416.36
7.2.330.0030.01816.54
7.2.320.0070.01016.56
7.2.310.0100.01316.30
7.2.300.0100.01016.31
7.2.290.0040.01416.39
7.2.00.0140.00618.51
7.1.100.0060.00917.96
7.1.70.0030.00316.96
7.1.60.0040.02119.22
7.1.50.0040.01434.40
7.1.00.0030.07722.37
7.0.200.0040.00416.61
7.0.140.0070.06021.96
7.0.60.0030.04319.86
7.0.50.0070.08017.79
7.0.40.0030.04320.27
7.0.30.0530.07320.16
7.0.20.0230.06020.17
7.0.10.0100.04320.16
7.0.00.0200.05720.32
5.6.280.0000.07721.14
5.6.210.0000.08720.76
5.6.200.0100.04318.19
5.6.190.0100.07720.63
5.6.180.0330.07320.56
5.6.170.0100.05020.42
5.6.160.0070.08320.71
5.6.150.0030.04018.22
5.6.140.0130.05318.15
5.6.130.0100.08318.09
5.6.120.0100.08320.98
5.6.110.0070.08321.01
5.6.100.0130.07721.08
5.6.90.0100.04320.99
5.6.80.0030.08320.43
5.5.350.0400.08020.42
5.5.340.0130.03717.97
5.5.330.0070.04320.37
5.5.320.0100.09020.29
5.5.310.0370.05320.27
5.5.300.0170.03317.94
5.5.290.0100.06718.00
5.5.280.0070.06720.79
5.5.270.0170.06720.91
5.5.260.0070.03720.75
5.5.250.0100.05720.45
5.5.240.0100.07320.11
5.4.450.0300.05319.52
5.4.440.0200.05319.25
5.4.430.0100.06719.51
5.4.420.0130.05719.54
5.4.410.0230.05319.09
5.4.400.0070.06018.93
5.4.390.0100.05718.82
5.4.380.0130.05718.69
5.4.370.0100.06018.61
5.4.360.0230.05018.62
5.4.350.0200.05318.70
5.4.340.0270.04718.66
5.4.320.0270.05318.56
5.4.310.0170.05318.69
5.4.300.0230.05018.52
5.4.290.0170.05318.61
5.4.280.0270.04718.52
5.4.270.0230.05018.71
5.4.260.0200.05018.65
5.4.250.0130.06318.66
5.4.240.0370.03718.48
5.4.230.0200.05318.60
5.4.220.0170.06018.49
5.4.210.0330.04018.67
5.4.200.0230.04316.65
5.4.190.0230.05018.45
5.4.180.0170.05718.44
5.4.170.0130.06318.72
5.4.160.0300.04718.70
5.4.150.0100.07718.71
5.4.140.0300.05016.23
5.4.130.0170.05016.22
5.4.120.0270.04716.18
5.4.110.0100.06016.31
5.4.100.0270.04716.24
5.4.90.0170.06316.04
5.4.80.0200.05316.15
5.4.70.0230.05016.32
5.4.60.0130.06316.16
5.4.50.0170.05716.19
5.4.40.0300.05316.32
5.4.30.0230.06016.13
5.4.20.0370.05716.22
5.4.10.0230.06016.31
5.4.00.0200.06015.64
5.3.290.0300.05714.76
5.3.280.0230.05014.50
5.3.270.0270.05314.68
5.3.260.0130.06014.68
5.3.250.0330.04014.58
5.3.240.0130.06314.57
5.3.230.0230.05314.50
5.3.220.0330.06014.50
5.3.210.0300.06014.57
5.3.200.0070.06714.56
5.3.190.0270.04314.46
5.3.180.0170.05314.49
5.3.170.0230.04714.61
5.3.160.0270.04714.45
5.3.150.0200.05314.61
5.3.140.0300.05314.58
5.3.130.0130.05314.50
5.3.120.0200.05014.63
5.3.110.0170.05014.59
5.3.100.0130.05713.96
5.3.90.0170.05014.00
5.3.80.0100.07013.95
5.3.70.0270.05713.94
5.3.60.0170.06313.93
5.3.50.0330.05013.84
5.3.40.0170.06313.84
5.3.30.0270.04313.85
5.3.20.0130.05313.58
5.3.10.0170.05713.73
5.3.00.0230.06313.55
5.2.170.0200.05011.10
5.2.160.0130.04311.12
5.2.150.0200.03711.28
5.2.140.0070.05311.07
5.2.130.0100.06311.07
5.2.120.0200.05311.15
5.2.110.0170.05711.07
5.2.100.0030.05311.05
5.2.90.0170.04311.07
5.2.80.0200.04311.00
5.2.70.0100.04711.25
5.2.60.0130.05310.99
5.2.50.0230.04310.99
5.2.40.0100.04710.99
5.2.30.0070.06010.95
5.2.20.0230.03310.98
5.2.10.0100.04710.96
5.2.00.0130.04010.78
5.1.60.0070.03710.12
5.1.50.0100.0379.98
5.1.40.0200.02710.09
5.1.30.0130.04010.53
5.1.20.0100.04310.38
5.1.10.0130.03710.10
5.1.00.0100.05010.10
5.0.50.0000.0478.58
5.0.40.0100.0378.53
5.0.30.0030.0608.25
5.0.20.0100.0338.29
5.0.10.0130.0338.22
5.0.00.0070.0538.25
4.4.90.0070.0306.23
4.4.80.0100.0276.23
4.4.70.0100.0206.23
4.4.60.0030.0276.23
4.4.50.0030.0336.23
4.4.40.0100.0436.23
4.4.30.0100.0276.23
4.4.20.0100.0206.23
4.4.10.0100.0206.23
4.4.00.0070.0376.23
4.3.110.0030.0276.23
4.3.100.0070.0206.23
4.3.90.0030.0336.23
4.3.80.0030.0376.23
4.3.70.0070.0236.23
4.3.60.0030.0336.23
4.3.50.0100.0236.23
4.3.40.0030.0476.23
4.3.30.0000.0306.23
4.3.20.0070.0206.23
4.3.10.0070.0206.23
4.3.00.0070.0277.59

preferences:
58.97 ms | 400 KiB | 5 Q