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); 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.0150.00419.13
8.3.30.0110.00920.48
8.3.20.0100.00722.02
8.3.10.0090.00521.41
8.3.00.0100.00520.46
8.2.170.0140.00318.91
8.2.160.0140.00321.21
8.2.150.0110.00721.23
8.2.140.0110.00621.21
8.2.130.0080.00521.99
8.2.120.0080.00520.88
8.2.110.0070.00620.73
8.2.100.0100.00720.09
8.2.90.0120.00619.93
8.2.80.0100.00619.83
8.2.70.0120.00531.55
8.2.60.0130.00331.70
8.2.50.0110.00630.06
8.2.40.0110.00531.60
8.2.30.0150.00430.73
8.2.20.0120.00629.99
8.2.10.0100.00728.76
8.2.00.0120.00528.09
8.1.270.0080.00623.36
8.1.260.0090.00423.53
8.1.250.0060.00723.79
8.1.240.0110.00420.33
8.1.230.0100.00719.77
8.1.220.0110.00519.71
8.1.210.0110.00519.82
8.1.200.0100.00631.18
8.1.190.0110.00531.48
8.1.180.0110.00631.39
8.1.170.0120.00631.56
8.1.160.0130.00331.75
8.1.150.0110.00629.91
8.1.140.0100.00627.91
8.1.130.0110.00627.41
8.1.120.0110.00526.70
8.1.110.0110.00526.24
8.1.100.0100.00524.83
8.1.90.0120.00525.55
8.1.80.0110.00525.38
8.1.70.0090.00624.52
8.1.60.0110.00523.89
8.1.50.0110.00523.30
8.1.40.0120.00523.33
8.1.30.0110.00523.07
8.1.20.0110.00523.19
8.1.10.0110.00622.83
8.1.00.0130.00522.76
8.0.300.0100.00519.45
8.0.290.0150.00429.08
8.0.280.0150.00630.88
8.0.270.0110.00528.64
8.0.260.0130.00425.97
8.0.250.0100.00626.15
8.0.240.0110.00625.57
8.0.230.0110.00625.24
8.0.220.0120.00524.93
8.0.210.0120.00624.61
8.0.200.0120.00423.95
8.0.190.0120.00423.36
8.0.180.0110.00522.93
8.0.170.0120.00522.71
8.0.160.0110.00522.49
8.0.150.0120.00522.04
8.0.140.0130.00522.18
8.0.130.0110.00524.58
8.0.120.0120.00621.51
8.0.110.0120.00521.63
8.0.100.0110.00521.28
8.0.90.0120.00421.06
8.0.80.0120.00521.10
8.0.70.0090.00621.22
8.0.60.0110.00521.14
8.0.50.0110.00521.12
8.0.30.0090.00620.67
8.0.20.0100.00520.64
8.0.10.0100.00620.63
8.0.00.0090.00620.63
7.4.330.0110.00325.01
7.4.320.0150.00425.34
7.4.300.0140.00423.57
7.4.290.0140.00522.35
7.4.280.0140.00522.24
7.4.270.0120.00621.96
7.4.260.0130.00521.92
7.4.250.0140.00420.91
7.4.240.0140.00421.15
7.4.230.0110.00520.75
7.4.220.0120.00520.80
7.4.210.0100.00520.75
7.4.200.0110.00520.85
7.4.190.0110.00520.96
7.4.180.0110.00520.97
7.4.160.0120.00520.30
7.4.150.0110.00520.26
7.4.140.0110.00520.15
7.4.130.0110.00520.03
7.4.120.0120.00519.88
7.4.110.0120.00520.00
7.4.100.0120.00520.12
7.4.90.0110.00619.91
7.4.80.0120.00519.98
7.4.70.0120.00519.77
7.4.60.0120.00619.64
7.4.50.0110.00619.65
7.4.40.0120.00519.69
7.4.30.0120.00619.62
7.4.20.0110.00619.54
7.4.10.0110.00619.47
7.4.00.0100.00619.39
7.3.330.0130.00521.03
7.3.320.0140.00521.06
7.3.310.0140.00521.10
7.3.300.0130.00420.78
7.3.290.0120.00520.55
7.3.280.0120.00520.07
7.3.270.0130.00420.06
7.3.260.0120.00519.88
7.3.250.0120.00519.89
7.3.240.0120.00519.85
7.3.230.0120.00519.83
7.3.220.0130.00519.86
7.3.210.0130.00519.72
7.3.200.0130.00519.71
7.3.190.0120.00619.65
7.3.180.0120.00619.47
7.3.170.0130.00619.62
7.3.160.0140.00519.58
7.3.150.0130.00619.49
7.3.140.0130.00519.49
7.3.130.0130.00619.33
7.3.120.0130.00519.35
7.3.110.0130.00519.26
7.3.100.0130.00519.08
7.3.90.0120.00719.25
7.3.80.0130.00518.90
7.3.70.0120.00618.91
7.3.60.0120.00618.79
7.3.50.0110.00618.74
7.3.40.0120.00618.57
7.3.30.0120.00618.54
7.3.20.0150.00619.21
7.3.10.0150.00519.21
7.3.00.0150.00619.23
7.2.340.0130.00620.03
7.2.330.0140.00619.89
7.2.320.0130.00619.92
7.2.310.0140.00619.65
7.2.300.0130.00619.69
7.2.290.0140.00619.69
7.2.280.0130.00719.63
7.2.270.0130.00719.65
7.2.260.0130.00719.45
7.2.250.0130.00719.45
7.2.240.0140.00619.40
7.2.230.0140.00619.31
7.2.220.0130.00619.25
7.2.210.0140.00619.09
7.2.200.0130.00719.11
7.2.190.0140.00718.95
7.2.180.0120.00618.82
7.2.170.0120.00718.83
7.2.160.0120.00618.78
7.2.150.0170.00619.39
7.2.140.0170.00619.43
7.2.130.0180.00719.50
7.2.120.0170.00719.40
7.2.110.0160.00619.46
7.2.100.0150.00719.43
7.2.90.0160.00719.36
7.2.80.0150.00719.37
7.2.70.0160.00619.39
7.2.60.0160.00719.36
7.2.50.0160.00619.38
7.2.40.0200.00719.39
7.2.30.0190.00719.40
7.2.20.0200.00719.37
7.2.10.0180.00619.41
7.2.00.0160.00719.39
7.1.330.0150.00519.42
7.1.320.0140.00619.29
7.1.310.0150.00619.06
7.1.300.0160.00518.83
7.1.290.0180.00618.83
7.1.280.0140.00618.66
7.1.270.0140.00618.67
7.1.260.0160.00618.59
7.1.250.0170.00618.55
7.1.240.0170.00618.53
7.1.230.0170.00518.58
7.1.220.0190.00618.57
7.1.210.0160.00618.50
7.1.200.0160.00618.48
7.1.190.0160.00718.52
7.1.180.0160.00618.47
7.1.170.0190.00618.48
7.1.160.0190.00618.47
7.1.150.0180.00618.42
7.1.140.0190.00618.44
7.1.130.0170.00618.44
7.1.120.0190.00618.43
7.1.110.0200.00618.44
7.1.100.0190.00618.42
7.1.90.0190.00618.44
7.1.80.0180.00718.51
7.1.70.0180.00618.35
7.1.60.0190.00619.14
7.1.50.0200.00619.14
7.1.40.0190.00619.10
7.1.30.0230.00719.11
7.1.20.0200.00719.08
7.1.10.0170.00718.42
7.1.00.0170.00718.38
7.0.330.0160.00618.33
7.0.320.0160.00618.33
7.0.310.0150.00618.29
7.0.300.0160.00618.24
7.0.290.0190.00618.19
7.0.280.0190.00618.25
7.0.270.0190.00618.22
7.0.260.0170.00618.22
7.0.250.0190.00618.29
7.0.240.0180.00718.31
7.0.230.0200.00618.29
7.0.220.0210.00618.23
7.0.210.0200.00618.22
7.0.200.0180.00618.21
7.0.190.0180.00618.22
7.0.180.0180.00618.20
7.0.170.0190.00618.27
7.0.160.0200.00518.18
7.0.150.0170.00618.18
7.0.140.0180.00618.22
7.0.130.0180.00718.27
7.0.120.0180.00518.25
7.0.110.0180.00618.24
7.0.100.0170.00618.18
7.0.90.0160.00718.18
7.0.80.0200.00618.19
7.0.70.0190.00618.21
7.0.60.0180.00618.19
7.0.50.0170.00618.18
7.0.40.0170.00618.23
7.0.30.0160.00618.21
7.0.20.0180.00618.19
7.0.10.0180.00618.21
7.0.00.0160.00618.18
5.6.400.0130.00718.19
5.6.390.0120.00718.21
5.6.380.0140.00618.21
5.6.370.0130.00718.17
5.6.360.0120.00818.22
5.6.350.0120.00718.21
5.6.340.0120.00718.19
5.6.330.0130.00618.20
5.6.320.0120.00818.24
5.6.310.0130.00718.22
5.6.300.0120.00918.15
5.6.290.0130.00818.21
5.6.280.0150.00718.22
5.6.270.0130.00718.22
5.6.260.0140.00818.24
5.6.250.0120.00818.22
5.6.240.0130.00818.24
5.6.230.0130.00818.28
5.6.220.0140.00718.25
5.6.210.0130.00818.26
5.6.200.0130.00818.30
5.6.190.0140.00818.29
5.6.180.0140.00818.26
5.6.170.0130.00918.30
5.6.160.0130.00818.33
5.6.150.0120.00818.30
5.6.140.0140.00718.31
5.6.130.0130.00718.32
5.6.120.0140.00718.32
5.6.110.0130.00818.26
5.6.100.0130.00818.30
5.6.90.0120.00818.24
5.6.80.0140.00818.17
5.6.70.0110.00818.24
5.6.60.0120.00918.23
5.6.50.0120.00818.16
5.6.40.0130.00718.21
5.6.30.0130.00918.21
5.6.20.0120.00818.17
5.6.10.0120.00918.18
5.6.00.0130.00818.16
5.5.380.0130.00818.13
5.5.370.0130.00818.14
5.5.360.0130.00818.02
5.5.350.0130.00718.08
5.5.340.0140.00718.06
5.5.330.0130.00818.07
5.5.320.0130.00818.05
5.5.310.0130.00818.08
5.5.300.0140.00818.08
5.5.290.0130.00818.10
5.5.280.0130.00818.10
5.5.270.0140.00718.09
5.5.260.0120.00818.06
5.5.250.0130.00818.10
5.5.240.0140.00718.08
5.5.230.0150.00818.06
5.5.220.0130.00818.06
5.5.210.0130.00718.09
5.5.200.0130.00817.99
5.5.190.0120.00918.00
5.5.180.0130.00818.00
5.5.170.0140.00618.07
5.5.160.0140.00818.00
5.5.150.0140.00717.97
5.5.140.0130.00717.95
5.5.130.0130.00817.92
5.5.120.0130.00817.94
5.5.110.0130.00717.93
5.5.100.0140.00718.04
5.5.90.0130.00818.00
5.5.80.0130.00718.02
5.5.70.0130.00818.06
5.5.60.0130.00718.01
5.5.50.0120.00918.00
5.5.40.0120.00817.99
5.5.30.0120.00718.05
5.5.20.0120.00818.03
5.5.10.0140.00818.02
5.5.00.0120.00817.97
5.4.450.0100.00616.19
5.4.440.0110.00616.18
5.4.430.0100.00616.19
5.4.420.0100.00616.18
5.4.410.0110.00616.20
5.4.400.0100.00616.12
5.4.390.0100.00616.11
5.4.380.0110.00616.13
5.4.370.0110.00616.14
5.4.360.0100.00616.13
5.4.350.0100.00616.14
5.4.340.0110.00616.14
5.4.330.0100.00516.06
5.4.320.0100.00716.15
5.4.310.0110.00616.14
5.4.300.0110.00616.14
5.4.290.0130.00516.13
5.4.280.0110.00616.15
5.4.270.0100.00616.15
5.4.260.0100.00616.13
5.4.250.0110.00616.12
5.4.240.0110.00516.13
5.4.230.0120.00516.06
5.4.220.0100.00616.05
5.4.210.0120.00616.05
5.4.200.0110.00616.06
5.4.190.0100.00616.06
5.4.180.0110.00616.05
5.4.170.0100.00616.06
5.4.160.0110.00616.08
5.4.150.0100.00616.08
5.4.140.0120.00616.06
5.4.130.0110.00616.08
5.4.120.0090.00616.11
5.4.110.0110.00616.10
5.4.100.0120.00516.12
5.4.90.0100.00716.11
5.4.80.0100.00616.13
5.4.70.0100.00616.12
5.4.60.0100.00616.14
5.4.50.0090.00616.08
5.4.40.0090.00616.11
5.4.30.0110.00616.13
5.4.20.0100.00616.15
5.4.10.0100.00616.14
5.4.00.0100.00516.04

preferences:
103.45 ms | 400 KiB | 5 Q