3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "green", "yellow", "red"); $result = array_diff_assoc($array1, $array2); print_r($result); $result = array_diff($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.0170.00318.45
8.3.30.0080.00618.92
8.3.20.0040.00420.34
8.3.10.0080.00023.53
8.3.00.0050.00320.78
8.2.170.0070.00722.96
8.2.160.0040.01120.35
8.2.150.0050.00224.18
8.2.140.0000.00824.66
8.2.130.0100.01026.16
8.2.120.0000.00820.76
8.2.110.0060.00322.11
8.2.100.0040.00817.66
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00718.12
8.2.20.0000.00817.61
8.2.10.0040.00417.93
8.2.00.0050.00317.55
8.1.270.0050.00322.14
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.72
8.1.230.0060.00619.15
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0070.00317.23
8.1.190.0030.00517.23
8.1.180.0030.00618.10
8.1.170.0000.00818.45
8.1.160.0040.00421.89
8.1.150.0040.00418.57
8.1.140.0000.00817.43
8.1.130.0000.00717.87
8.1.120.0000.00817.45
8.1.110.0000.00717.43
8.1.100.0000.00717.34
8.1.90.0050.00217.27
8.1.80.0040.00417.37
8.1.70.0000.00717.36
8.1.60.0040.00417.41
8.1.50.0040.00417.49
8.1.40.0040.00417.40
8.1.30.0060.00317.46
8.1.20.0030.00517.48
8.1.10.0070.00017.47
8.1.00.0040.00417.24
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.43
8.0.270.0000.00717.25
8.0.260.0030.00317.06
8.0.250.0070.00016.95
8.0.240.0000.01016.93
8.0.230.0040.00416.80
8.0.220.0000.00716.82
8.0.210.0050.00316.84
8.0.200.0030.00316.84
8.0.190.0030.00316.95
8.0.180.0040.00416.90
8.0.170.0040.00416.71
8.0.160.0000.00716.68
8.0.150.0060.00316.60
8.0.140.0030.00516.69
8.0.130.0050.00313.18
8.0.120.0040.00416.71
8.0.110.0050.00316.74
8.0.100.0030.00316.85
8.0.90.0000.00716.73
8.0.80.0130.00316.82
8.0.70.0040.00416.64
8.0.60.0070.00016.83
8.0.50.0070.00016.64
8.0.30.0130.01016.96
8.0.20.0120.00617.40
8.0.10.0000.00716.90
8.0.00.0110.01116.56
7.4.330.0060.00015.02
7.4.320.0000.00716.59
7.4.300.0030.00316.51
7.4.290.0030.00316.45
7.4.280.0000.00716.54
7.4.270.0030.00316.52
7.4.260.0030.00716.51
7.4.250.0040.00416.58
7.4.240.0030.00416.45
7.4.230.0070.00016.34
7.4.220.0100.00716.53
7.4.210.0100.00316.39
7.4.200.0000.00716.36
7.4.160.0060.01016.47
7.4.150.0070.01317.40
7.4.140.0090.00817.86
7.4.130.0100.00816.46
7.4.120.0090.01116.39
7.4.110.0070.01016.59
7.4.100.0230.00016.45
7.4.90.0070.01116.42
7.4.80.0100.01119.39
7.4.70.0120.00616.29
7.4.60.0060.01316.24
7.4.50.0000.00416.16
7.4.40.0030.01316.25
7.4.30.0110.01116.38
7.4.00.0050.01215.07
7.3.330.0030.00312.91
7.3.320.0040.00412.98
7.3.310.0000.00716.14
7.3.300.0040.00416.11
7.3.290.0160.00316.15
7.3.280.0070.01316.19
7.3.270.0060.01017.40
7.3.260.0000.01716.35
7.3.250.0120.00516.18
7.3.240.0060.01016.46
7.3.230.0090.00916.39
7.3.210.0030.01416.36
7.3.200.0080.00819.39
7.3.190.0060.00916.35
7.3.180.0030.01216.22
7.3.170.0070.01116.27
7.3.160.0130.00316.23
7.3.120.0080.00514.85
7.3.110.0070.01114.76
7.3.100.0050.00514.32
7.3.90.0060.00614.66
7.3.80.0000.01014.71
7.3.70.0070.01114.48
7.3.60.0040.00714.41
7.3.50.0060.00614.48
7.3.40.0080.00414.50
7.3.30.0070.00714.57
7.3.20.0070.00716.52
7.3.10.0090.00516.65
7.3.00.0080.00716.68
7.2.330.0120.00616.44
7.2.320.0070.01016.64
7.2.310.0100.01016.62
7.2.300.0070.01016.36
7.2.290.0030.01416.50
7.2.250.0100.01014.89
7.2.240.0070.01315.05
7.2.230.0040.01414.71
7.2.220.0000.00915.02
7.2.210.0100.00315.05
7.2.200.0070.00714.98
7.2.190.0030.00614.71
7.2.180.0030.01014.98
7.2.170.0000.01314.59
7.2.130.0070.01016.81
7.2.120.0090.00316.74
7.2.110.0090.00316.57
7.2.100.0040.00716.46
7.2.90.0090.00616.80
7.2.80.0030.00716.73
7.2.70.0000.01416.86
7.2.60.0030.01316.91
7.2.50.0030.00616.80
7.2.40.0070.00716.85
7.2.30.0070.00716.44
7.2.20.0090.00316.75
7.2.10.0060.00316.87
7.2.00.0040.01018.07
7.1.330.0070.00715.60
7.1.320.0070.00715.88
7.1.310.0060.00615.71
7.1.300.0070.00715.64
7.1.290.0040.00815.54
7.1.280.0080.00415.54
7.1.270.0000.01315.81
7.1.260.0070.00715.91
7.1.250.0060.00915.70
7.1.240.0040.00815.66
7.1.230.0060.00515.70
7.1.220.0070.01015.80
7.1.210.0070.00715.78
7.1.200.0070.01015.71
7.1.190.0080.00015.70
7.1.180.0090.00315.88
7.1.170.0060.00915.72
7.1.160.0070.00415.82
7.1.150.0030.00615.67
7.1.140.0030.01015.66
7.1.130.0090.00315.82
7.1.120.0070.00315.72
7.1.110.0090.00315.95
7.1.100.0040.00916.91
7.1.90.0040.00715.62
7.1.80.0040.00415.74
7.1.70.0030.00816.54
7.1.60.0090.00917.64
7.1.50.0050.01416.03
7.1.40.0100.00315.91
7.1.30.0050.00515.85
7.1.20.0030.01015.55
7.1.10.0000.01615.88
7.1.00.0050.04219.07
7.0.330.0030.00615.30
7.0.320.0090.00315.55
7.0.310.0030.01315.20
7.0.300.0040.00415.27
7.0.290.0060.00915.46
7.0.280.0030.00615.46
7.0.270.0000.00915.37
7.0.260.0060.00615.14
7.0.250.0030.00615.52
7.0.240.0070.00715.10
7.0.230.0070.00715.25
7.0.220.0060.00915.20
7.0.210.0030.01315.40
7.0.200.0040.00715.98
7.0.190.0060.00615.35
7.0.180.0070.00715.16
7.0.170.0070.00315.09
7.0.160.0030.01315.13
7.0.150.0000.00815.48
7.0.140.0080.03518.72
7.0.130.0110.00415.25
7.0.120.0060.00315.48
7.0.110.0070.00715.45
7.0.100.0030.03818.62
7.0.90.0050.02518.58
7.0.80.0080.03018.55
7.0.70.0040.04918.58
7.0.60.0080.04018.57
7.0.50.0080.04518.84
7.0.40.0070.04116.78
7.0.30.0020.04516.78
7.0.20.0020.03216.75
7.0.10.0070.03316.59
7.0.00.0030.03016.78
5.6.380.0030.00614.17
5.6.370.0140.00014.22
5.6.360.0110.00414.40
5.6.350.0100.00314.48
5.6.340.0100.00314.01
5.6.330.0070.00714.52
5.6.320.0090.00614.61
5.6.310.0030.01014.12
5.6.300.0100.00314.55
5.6.290.0000.00914.48
5.6.280.0060.03717.66
5.6.270.0000.01114.09
5.6.260.0130.00314.55
5.6.250.0070.04517.38
5.6.240.0030.03717.48
5.6.230.0050.04717.54
5.6.220.0100.03817.41
5.6.210.0030.04517.56
5.6.200.0030.02617.70
5.6.190.0040.04317.62
5.6.180.0030.03017.43
5.6.170.0050.04717.38
5.6.160.0050.03817.67
5.6.150.0110.04317.52
5.6.140.0040.04217.62
5.6.130.0070.04517.69
5.6.120.0080.02617.52
5.6.110.0140.03817.83
5.6.100.0080.02517.48
5.6.90.0080.03117.69
5.6.80.0120.03717.20
5.6.70.0070.03317.31
5.6.60.0030.04317.35
5.6.50.0080.03717.26
5.6.40.0060.03717.39
5.6.30.0050.03217.32
5.6.20.0080.04017.13
5.6.10.0080.04117.21
5.6.00.0100.03017.31
5.5.380.0060.04215.78
5.5.370.0050.02715.74
5.5.360.0080.04215.77
5.5.350.0070.03715.73
5.5.340.0020.03116.15
5.5.330.0080.02215.93
5.5.320.0070.02516.05
5.5.310.0020.04615.98
5.5.300.0030.02915.82
5.5.290.0030.04615.97
5.5.280.0030.04715.98
5.5.270.0110.03815.88
5.5.260.0060.04315.95
5.5.250.0090.03915.90
5.5.240.0030.04315.48
5.5.230.0040.04315.41
5.5.220.0050.02215.54
5.5.210.0120.02715.40
5.5.200.0030.04215.61
5.5.190.0020.03815.56
5.5.180.0070.03215.56
5.5.170.0000.00910.97
5.5.160.0030.04215.56
5.5.150.0070.03815.68
5.5.140.0100.03215.54
5.5.130.0020.03915.65
5.5.120.0070.03315.41
5.5.110.0050.02615.61
5.5.100.0080.03615.50
5.5.90.0030.02315.55
5.5.80.0020.03315.54
5.5.70.0020.02515.62
5.5.60.0050.02315.38
5.5.50.0020.02415.26
5.5.40.0000.02615.41
5.5.30.0050.02815.50
5.5.20.0030.02315.46
5.5.10.0100.02015.60
5.5.00.0100.02815.55
5.4.450.0020.04615.16
5.4.440.0070.04215.12
5.4.430.0070.03815.29
5.4.420.0090.04015.25
5.4.410.0080.03715.03
5.4.400.0000.04314.87
5.4.390.0040.04414.76
5.4.380.0060.03815.07
5.4.370.0150.01815.22
5.4.360.0050.04315.03
5.4.350.0050.04015.11
5.4.340.0110.03515.11
5.4.330.0000.00811.22
5.4.320.0030.02714.94
5.4.310.0020.04014.79
5.4.300.0050.02015.05
5.4.290.0080.04014.96
5.4.280.0050.02514.92
5.4.270.0040.02315.11
5.4.260.0020.02315.19
5.4.250.0030.04015.00
5.4.240.0050.02315.12
5.4.230.0070.01815.03
5.4.220.0030.02315.18
5.4.210.0010.02415.02
5.4.200.0040.02414.91
5.4.190.0030.02715.09
5.4.180.0050.02115.13
5.4.170.0090.03414.87
5.4.160.0010.04314.87
5.4.150.0020.04215.06
5.4.140.0040.01913.82
5.4.130.0060.01713.59
5.4.120.0050.01813.52
5.4.110.0060.03513.78
5.4.100.0050.02013.83
5.4.90.0000.02313.62
5.4.80.0100.01713.69
5.4.70.0050.01713.76
5.4.60.0040.02413.61
5.4.50.0030.02513.77
5.4.40.0020.02813.85
5.4.30.0060.02313.66
5.4.20.0020.01913.78
5.4.10.0040.01813.63
5.4.00.0070.03013.44
5.3.290.0050.04212.61
5.3.280.0000.02412.56
5.3.270.0050.03712.61
5.3.260.0060.03712.58
5.3.250.0050.02012.59
5.3.240.0020.01912.53
5.3.230.0020.03412.68
5.3.220.0020.02712.46
5.3.210.0030.02512.37
5.3.200.0020.01912.54
5.3.190.0030.03012.47
5.3.180.0050.02212.58
5.3.170.0060.01712.50
5.3.160.0050.02112.64
5.3.150.0040.02212.61
5.3.140.0020.02312.54
5.3.130.0020.02312.54
5.3.120.0030.02312.46
5.3.110.0020.02412.53
5.3.100.0060.02012.32
5.3.90.0030.02012.27
5.3.80.0030.02212.20
5.3.70.0020.02212.11
5.3.60.0050.01812.21
5.3.50.0050.03412.21
5.3.40.0070.01812.18
5.3.30.0030.01812.15
5.3.20.0030.02712.01
5.3.10.0020.02112.02
5.3.00.0040.02111.86
5.2.170.0010.01610.31
5.2.160.0030.01310.36
5.2.150.0020.02010.46
5.2.140.0030.01710.26
5.2.130.0000.02110.29
5.2.120.0030.01510.21
5.2.110.0030.01710.13
5.2.100.0060.01810.39
5.2.90.0020.01610.22
5.2.80.0070.01310.22
5.2.70.0030.01610.15
5.2.60.0010.0189.96
5.2.50.0020.02510.02
5.2.40.0020.02510.19
5.2.30.0000.02110.00
5.2.20.0020.01510.13
5.2.10.0030.0199.90
5.2.00.0010.01610.00
5.1.60.0040.0159.29
5.1.50.0020.0169.30
5.1.40.0050.0119.30
5.1.30.0060.0239.47
5.1.20.0040.0209.53
5.1.10.0060.0169.35
5.1.00.0060.0219.21
5.0.50.0020.0258.76
5.0.40.0020.0258.76
5.0.30.0020.0198.76
5.0.20.0050.0208.76
5.0.10.0020.0268.76
5.0.00.0030.0358.76
4.4.90.0050.0078.76
4.4.80.0010.0098.76
4.4.70.0000.0148.76
4.4.60.0030.0068.76
4.4.50.0050.0078.76
4.4.40.0020.0138.76
4.4.30.0000.0108.76
4.4.20.0020.0108.76
4.4.10.0030.0208.76
4.4.00.0060.0218.76
4.3.110.0030.0108.76
4.3.100.0050.0088.76
4.3.90.0040.0158.76
4.3.80.0030.0248.76
4.3.70.0000.0128.76
4.3.60.0020.0208.76
4.3.50.0000.0128.76
4.3.40.0040.0158.76
4.3.30.0040.0178.76
4.3.20.0020.0138.76
4.3.10.0000.0228.76
4.3.00.0020.0198.76

preferences:
48.92 ms | 400 KiB | 5 Q