3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "foo", "bar", "baz", "test" ]; $b = [ "foo", "bar", "a" ]; $res = array_merge(array_diff($a, $b), array_diff($b, $a)); print_r($res);

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.4.130.0130.00717.87
8.4.120.0080.01121.94
8.4.110.0150.00619.03
8.4.100.0050.00517.59
8.4.90.0100.01020.62
8.4.80.0120.00720.81
8.4.70.0070.00718.86
8.4.60.0120.01020.75
8.4.50.0100.01019.43
8.4.40.0120.00920.34
8.4.30.0130.00320.48
8.4.20.0110.01117.86
8.4.10.0090.00619.59
8.3.260.0110.00816.47
8.3.250.0130.00618.80
8.3.240.0070.01216.42
8.3.230.0140.00616.74
8.3.220.0060.00220.47
8.3.210.0110.00816.36
8.3.200.0060.00316.41
8.3.190.0070.01217.18
8.3.180.0090.00116.49
8.3.170.0070.00618.95
8.3.160.0150.00318.00
8.3.150.0110.00719.09
8.3.140.0040.00416.44
8.3.130.0110.00418.36
8.3.120.0090.00020.78
8.3.110.0150.00520.94
8.3.100.0030.00724.06
8.3.90.0130.00326.77
8.3.80.0060.00319.36
8.3.70.0100.01016.38
8.3.60.0140.00718.20
8.3.50.0070.01223.43
8.3.40.0090.00918.54
8.3.30.0000.01518.54
8.3.20.0090.00021.73
8.3.10.0040.00420.17
8.3.00.0040.00420.49
8.2.290.0110.00717.17
8.2.280.0090.00819.97
8.2.270.0030.00616.62
8.2.260.0080.00018.74
8.2.250.0070.01316.52
8.2.240.0050.00316.62
8.2.230.0090.00622.58
8.2.220.0040.00437.54
8.2.210.0000.00826.77
8.2.200.0030.00618.88
8.2.190.0070.00718.17
8.2.180.0130.00616.32
8.2.170.0110.00422.96
8.2.160.0140.00020.32
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0000.00726.16
8.2.110.0040.00422.10
8.2.100.0050.00517.66
8.2.90.0030.00617.38
8.2.80.0030.00518.65
8.2.70.0000.00817.50
8.2.60.0030.00617.80
8.2.50.0030.00618.04
8.2.40.0020.00518.03
8.2.30.0040.00417.90
8.2.20.0040.00417.89
8.2.10.0040.00419.16
8.2.00.0040.00419.14
8.1.330.0140.00516.24
8.1.320.0080.00217.75
8.1.310.0060.01216.69
8.1.300.0150.00316.05
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0090.00620.75
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.23
8.1.230.0060.00617.77
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0030.00617.34
8.1.190.0090.00017.10
8.1.180.0080.00018.82
8.1.170.0040.00417.62
8.1.160.0040.00418.73
8.1.150.0050.00318.74
8.1.140.0000.00822.09
8.1.130.0030.00320.07
8.1.120.0040.00417.23
8.1.110.0060.00317.39
8.1.100.0000.00717.22
8.1.90.0040.00417.27
8.1.80.0030.00517.41
8.1.70.0030.00317.38
8.1.60.0090.00317.41
8.1.50.0050.00317.41
8.1.40.0060.00317.41
8.1.30.0080.00017.63
8.1.20.0030.00517.49
8.1.10.0030.00617.44
8.1.00.0050.00317.39
8.0.300.0030.00318.93
8.0.290.0000.00816.75
8.0.280.0000.00718.38
8.0.270.0030.00318.02
8.0.260.0000.00619.93
8.0.250.0000.00716.78
8.0.240.0100.00016.85
8.0.230.0000.00716.88
8.0.220.0030.00316.84
8.0.210.0000.00716.89
8.0.200.0030.00316.89
8.0.190.0000.00716.84
8.0.180.0040.00416.88
8.0.170.0040.00416.88
8.0.160.0040.00416.82
8.0.150.0000.00716.71
8.0.140.0040.00416.66
8.0.130.0060.00013.18
8.0.120.0050.00516.79
8.0.110.0040.00416.59
8.0.100.0050.00316.84
8.0.90.0030.00616.79
8.0.80.0060.01216.86
8.0.70.0070.00016.70
8.0.60.0000.00716.73
8.0.50.0080.00016.69
8.0.30.0090.00617.04
8.0.20.0100.00916.94
8.0.10.0050.00316.74
8.0.00.0140.00716.66
7.4.330.0050.00016.77
7.4.320.0060.00016.53
7.4.300.0000.00716.32
7.4.290.0110.00016.55
7.4.280.0050.00316.34
7.4.270.0030.00316.47
7.4.260.0050.00013.32
7.4.250.0030.00316.50
7.4.240.0060.00116.45
7.4.230.0000.00716.44
7.4.220.0020.00516.34
7.4.210.0100.00416.39
7.4.200.0000.00716.59
7.4.130.0090.00916.42
7.4.120.0070.01416.30
7.4.110.0060.00916.31
7.4.100.0170.00416.48
7.4.90.0140.00316.24
7.4.80.0110.00719.39
7.4.70.0100.01116.43
7.4.60.0110.00816.43
7.4.50.0040.01416.25
7.4.40.0090.01516.38
7.4.00.0080.00614.84
7.3.330.0030.00315.96
7.3.320.0050.00012.90
7.3.310.0030.00315.91
7.3.300.0030.00316.13
7.3.290.0040.00416.16
7.3.260.0100.00716.13
7.3.240.0110.00916.33
7.3.230.0130.00316.14
7.3.210.0100.00716.30
7.3.200.0130.01016.33
7.3.190.0000.01816.27
7.3.180.0090.01216.39
7.3.170.0140.01216.54
7.3.160.0080.00716.34
7.3.120.0090.00514.71
7.3.110.0070.00814.50
7.3.100.0020.01414.49
7.3.90.0090.00914.37
7.3.80.0170.00314.76
7.3.70.0080.00914.54
7.3.60.0090.00714.58
7.3.50.0080.00614.74
7.3.40.0090.00514.57
7.3.30.0070.01014.60
7.3.20.0090.01214.56
7.3.10.0080.00814.47
7.3.00.0070.00814.62
7.2.330.0090.01516.49
7.2.320.0150.00616.55
7.2.310.0140.00316.57
7.2.300.0080.00816.37
7.2.290.0120.00516.54
7.2.250.0080.00814.81
7.2.240.0020.01814.92
7.2.230.0110.00614.94
7.2.220.0090.00914.78
7.2.210.0080.00914.85
7.2.200.0100.00714.80
7.2.190.0050.01114.54
7.2.180.0100.00714.82
7.2.170.0080.01114.83
7.2.160.0090.00814.82
7.2.150.0080.00914.88
7.2.140.0060.01014.85
7.2.130.0090.00714.90
7.2.120.0130.00414.93
7.2.110.0090.00614.84
7.2.100.0070.01014.73
7.2.90.0120.00315.07
7.2.80.0090.00714.89
7.2.70.0080.00814.92
7.2.60.0100.00514.90
7.2.50.0060.00914.93
7.2.40.0080.00714.92
7.2.30.0120.00714.97
7.2.20.0090.00814.80
7.2.10.0080.01014.93
7.2.00.0090.00814.78

preferences:
74.59 ms | 403 KiB | 5 Q