3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => "green", "red", "blue", "red"); $array2 = array("b" => "green", "yellow", "red"); $result = array_diff($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.00316.63
8.3.50.0130.00820.99
8.3.40.0070.00718.46
8.3.30.0160.00018.52
8.3.20.0040.00420.19
8.3.10.0080.00023.53
8.3.00.0070.00023.56
8.2.180.0070.00718.16
8.2.170.0180.00422.96
8.2.160.0100.01022.11
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00817.50
8.2.110.0070.00322.20
8.2.100.0090.00317.71
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0090.00018.07
8.2.40.0000.00821.00
8.2.30.0040.00419.69
8.2.20.0030.00517.51
8.2.10.0050.00218.15
8.2.00.0000.00718.09
8.1.280.0090.00625.92
8.1.270.0030.00620.32
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00521.24
8.1.230.0120.00017.42
8.1.220.0050.00317.74
8.1.210.0060.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.10
8.1.180.0060.00318.10
8.1.170.0050.00318.65
8.1.160.0040.00421.98
8.1.150.0000.00718.81
8.1.140.0000.00817.32
8.1.130.0070.00017.62
8.1.120.0000.00817.37
8.1.110.0000.00717.26
8.1.100.0000.00717.42
8.1.90.0050.00317.30
8.1.80.0000.00817.25
8.1.70.0000.00717.26
8.1.60.0040.00417.52
8.1.50.0030.00617.47
8.1.40.0040.00417.33
8.1.30.0000.00917.59
8.1.20.0060.00317.55
8.1.10.0000.00817.40
8.1.00.0040.00417.36
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0000.00718.28
8.0.270.0030.00317.18
8.0.260.0030.00317.16
8.0.250.0000.00716.89
8.0.240.0030.00316.77
8.0.230.0000.00716.85
8.0.220.0050.00316.67
8.0.210.0070.00016.69
8.0.200.0040.00416.88
8.0.190.0040.00416.81
8.0.180.0040.00416.72
8.0.170.0000.00716.87
8.0.160.0050.00216.84
8.0.150.0030.00316.73
8.0.140.0000.00716.78
8.0.130.0060.00013.23
8.0.120.0050.00316.68
8.0.110.0030.00516.74
8.0.100.0030.00416.78
8.0.90.0000.00716.77
8.0.80.0070.01416.77
8.0.70.0040.00416.68
8.0.60.0050.00216.86
8.0.50.0000.00716.71
8.0.30.0060.01116.85
8.0.20.0090.01017.40
8.0.10.0050.00316.80
8.0.00.0070.01016.61
7.4.330.0000.00515.21
7.4.320.0060.00016.53
7.4.300.0000.00616.53
7.4.290.0000.00716.41
7.4.280.0080.00016.41
7.4.270.0040.00416.39
7.4.260.0040.00416.50
7.4.250.0070.00016.35
7.4.240.0050.00216.42
7.4.230.0000.00716.25
7.4.220.0070.01016.46
7.4.210.0040.01016.38
7.4.200.0060.00016.32
7.4.160.0110.00616.34
7.4.150.0060.00917.40
7.4.140.0160.00517.86
7.4.130.0090.00916.46
7.4.120.0080.01216.48
7.4.110.0090.00916.42
7.4.100.0150.00616.30
7.4.90.0140.00316.55
7.4.80.0050.01119.39
7.4.70.0070.01016.27
7.4.60.0110.00516.38
7.4.50.0040.00416.57
7.4.40.0100.00616.34
7.4.30.0120.00616.31
7.4.00.0070.00715.03
7.3.330.0020.00613.02
7.3.320.0050.00013.05
7.3.310.0070.00015.98
7.3.300.0000.00716.23
7.3.290.0080.00816.07
7.3.280.0090.01016.11
7.3.270.0100.00717.40
7.3.260.0110.01116.21
7.3.250.0070.01216.23
7.3.240.0100.00616.42
7.3.230.0110.01116.43
7.3.210.0170.00016.39
7.3.200.0120.00416.13
7.3.190.0110.00816.04
7.3.180.0080.00816.33
7.3.170.0090.00916.53
7.3.160.0120.00616.21
7.2.330.0030.01316.52
7.2.320.0100.00716.44
7.2.310.0080.00816.50
7.2.300.0060.01016.40
7.2.290.0140.00716.55
7.2.60.0030.01016.66
7.2.00.0080.00419.28
7.1.200.0090.00315.82
7.1.100.0030.01018.15
7.1.70.0130.00016.80
7.1.60.0120.01219.12
7.1.50.0140.01016.68
7.1.00.0070.07322.45
7.0.200.0070.00316.56
7.0.60.0170.05020.01
7.0.50.0070.08017.81
7.0.40.0070.04020.04
7.0.30.0200.04320.04
7.0.20.0330.04320.17
7.0.10.0200.05720.09
7.0.00.0030.04320.16
5.6.210.0170.04020.64
5.6.200.0130.07018.22
5.6.190.0070.09020.64
5.6.180.0030.05720.61
5.6.170.0230.07020.47
5.6.160.0030.05720.54
5.6.150.0030.07718.15
5.6.140.0100.03318.14
5.6.130.0030.07018.09
5.6.120.0170.07320.98
5.6.110.0070.04021.04
5.6.100.0070.09020.98
5.6.90.0070.08320.95
5.6.80.0070.05720.43
5.5.350.0130.04320.44
5.5.340.0070.08017.96
5.5.330.0100.08020.25
5.5.320.0270.07720.20
5.5.310.0330.05020.50
5.5.300.0130.06717.92
5.5.290.0030.08718.01
5.5.280.0030.04720.82
5.5.270.0100.08020.96
5.5.260.0070.08020.64
5.5.250.0170.07020.57
5.5.240.0170.07720.36
5.4.450.0670.05319.47
5.4.440.0570.06719.55
5.4.430.0630.07319.23
5.4.420.0170.07319.63
5.4.410.0430.07019.35
5.4.400.0630.06319.13
5.4.390.0600.05019.25
5.4.380.0430.06019.08
5.4.370.0400.06319.28
5.4.360.0170.05719.14
5.4.350.0570.05319.30
5.4.340.0170.05018.77
5.4.320.0100.06318.78
5.4.310.0100.05319.16
5.4.300.0170.05019.14
5.4.290.0330.06018.94
5.4.280.0370.05319.15
5.4.270.0270.06319.30
5.4.260.0230.05319.11
5.4.250.0200.05318.80
5.4.240.0270.04318.77
5.4.230.0130.05719.14
5.4.220.0200.05019.13
5.4.210.0230.04719.19
5.4.200.0270.06316.75
5.4.190.0370.06019.08
5.4.180.0200.07719.07
5.4.170.0200.07319.13
5.4.160.0170.07019.27
5.4.150.0270.04718.85
5.4.140.0200.05016.26
5.4.130.0200.05016.27
5.4.120.0230.05016.59
5.4.110.0400.05016.59
5.4.100.0230.05316.34
5.4.90.0130.07716.59
5.4.80.0170.05016.58
5.4.70.0230.04716.26
5.4.60.0300.04316.23
5.4.50.0230.04316.36
5.4.40.0200.05016.30
5.4.30.0230.05016.43
5.4.20.0130.05716.33
5.4.10.0170.04716.14
5.4.00.0200.04315.78
5.3.290.0200.05714.65
5.3.280.0130.05314.53
5.3.270.0270.04314.59
5.3.260.0200.05314.45
5.3.250.0100.06314.45
5.3.240.0270.04314.46
5.3.230.0200.05014.61
5.3.220.0230.04714.52
5.3.210.0270.04314.66
5.3.200.0230.06714.51
5.3.190.0100.06014.41
5.3.180.0230.05014.40
5.3.170.0270.06014.41
5.3.160.0200.04714.51
5.3.150.0270.05014.55
5.3.140.0300.06014.51
5.3.130.0230.07014.50
5.3.120.0300.06714.38
5.3.110.0300.07014.42
5.3.100.0330.05713.88
5.3.90.0230.07014.00
5.3.80.0170.06013.90
5.3.70.0170.05014.00
5.3.60.0170.05313.80
5.3.50.0130.05313.89
5.3.40.0130.05013.88
5.3.30.0200.04313.80
5.3.20.0070.05713.52
5.3.10.0170.06313.53
5.3.00.0300.04713.43
5.2.170.0170.04310.98
5.2.160.0170.04011.00
5.2.150.0170.03710.98
5.2.140.0170.05310.99
5.2.130.0130.05010.99
5.2.120.0200.03310.95
5.2.110.0200.04010.99
5.2.100.0100.04010.90
5.2.90.0230.04711.12
5.2.80.0070.05010.93
5.2.70.0100.04311.09
5.2.60.0100.04710.84
5.2.50.0130.04010.96
5.2.40.0070.04010.93
5.2.30.0030.04711.04
5.2.20.0200.03710.91
5.2.10.0130.03710.80
5.2.00.0100.04010.62
5.1.60.0130.03310.08
5.1.50.0200.0239.88
5.1.40.0130.0379.85
5.1.30.0100.05010.41
5.1.20.0100.05010.51
5.1.10.0130.04710.23
5.1.00.0170.04710.00
5.0.50.0070.0378.42
5.0.40.0130.0338.29
5.0.30.0170.0478.30
5.0.20.0130.0338.12
5.0.10.0130.0308.09
5.0.00.0030.0478.23
4.4.90.0100.0237.30
4.4.80.0070.0307.30
4.4.70.0070.0207.30
4.4.60.0130.0237.30
4.4.50.0200.0207.30
4.4.40.0100.0407.30
4.4.30.0000.0337.30
4.4.20.0000.0277.30
4.4.10.0070.0237.30
4.4.00.0000.0437.30
4.3.110.0000.0307.30
4.3.100.0030.0237.30
4.3.90.0070.0277.30
4.3.80.0100.0337.30
4.3.70.0100.0237.30
4.3.60.0070.0237.30
4.3.50.0070.0307.30
4.3.40.0070.0407.30
4.3.30.0030.0237.30
4.3.20.0000.0277.30
4.3.10.0000.0277.30
4.3.00.0170.0208.42

preferences:
63.74 ms | 401 KiB | 5 Q