3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a', 'b', 'c', 'd']; $arr2 = ['a', 'b', 'c', 'd', 'e', 'f', 'g']; var_dump(array_diff($arr2, $arr));

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.70.0040.01418.18
8.3.60.0150.00018.27
8.3.50.0030.01418.14
8.3.40.0040.01118.71
8.3.30.0140.00018.52
8.3.20.0060.00320.24
8.3.10.0100.00018.55
8.3.00.0000.00823.56
8.2.190.0040.01416.58
8.2.180.0070.01418.29
8.2.170.0120.00322.96
8.2.160.0100.00320.46
8.2.150.0050.00224.18
8.2.140.0030.00624.66
8.2.130.0000.00720.55
8.2.120.0000.00726.35
8.2.110.0080.00419.33
8.2.100.0000.01217.77
8.2.90.0040.00419.07
8.2.80.0080.00017.97
8.2.70.0040.00417.25
8.2.60.0080.00017.92
8.2.50.0070.00018.10
8.2.40.0040.00420.58
8.2.30.0000.00719.18
8.2.20.0030.00617.86
8.2.10.0040.00417.94
8.2.00.0000.00818.04
8.1.280.0070.00725.92
8.1.270.0090.00623.99
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0030.00722.19
8.1.230.0070.00417.70
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0060.00318.61
8.1.160.0040.00418.75
8.1.150.0030.00320.17
8.1.140.0000.00719.08
8.1.130.0000.00718.87
8.1.120.0000.00717.35
8.1.110.0000.00717.42
8.1.100.0040.00417.38
8.1.90.0100.00017.32
8.1.80.0040.00417.31
8.1.70.0000.00717.29
8.1.60.0040.00417.50
8.1.50.0030.00617.43
8.1.40.0040.00417.43
8.1.30.0040.00417.59
8.1.20.0040.00417.54
8.1.10.0000.00717.41
8.1.00.0070.00017.32
8.0.300.0030.00518.77
8.0.290.0050.00316.58
8.0.280.0030.00318.37
8.0.270.0030.00317.22
8.0.260.0040.00418.80
8.0.250.0040.00416.77
8.0.240.0030.00516.86
8.0.230.0000.00716.87
8.0.220.0110.00016.86
8.0.210.0030.00316.73
8.0.200.0030.00316.80
8.0.190.0000.00816.81
8.0.180.0050.00316.68
8.0.170.0040.00416.89
8.0.160.0030.00416.92
8.0.150.0090.00316.68
8.0.140.0030.00316.64
8.0.130.0030.00613.25
8.0.120.0040.00416.81
8.0.110.0000.00716.83
8.0.100.0000.00716.61
8.0.90.0040.00416.83
8.0.80.0070.01016.75
8.0.70.0000.00816.75
8.0.60.0080.00016.93
8.0.50.0000.00716.61
8.0.30.0120.00517.11
8.0.20.0110.00917.40
8.0.10.0060.00316.91
8.0.00.0100.01316.57
7.4.330.0020.00215.55
7.4.320.0000.00616.46
7.4.300.0000.00716.38
7.4.290.0070.00016.40
7.4.280.0040.00416.55
7.4.270.0060.00016.42
7.4.260.0070.00016.49
7.4.250.0060.00316.39
7.4.240.0000.00716.43
7.4.230.0000.00716.34
7.4.220.0120.00616.49
7.4.210.0080.00916.43
7.4.200.0050.00216.42
7.4.160.0060.01016.40
7.4.150.0080.01117.40
7.4.140.0120.01017.86
7.4.130.0060.01016.61
7.4.120.0130.00816.39
7.4.110.0140.00316.44
7.4.100.0200.00016.50
7.4.90.0120.00616.46
7.4.80.0100.00619.39
7.4.70.0130.00816.26
7.4.60.0100.00716.27
7.4.50.0060.00616.16
7.4.40.0090.01316.52
7.4.30.0130.01016.46
7.4.00.0030.01214.49
7.3.330.0000.00513.07
7.3.320.0000.00613.01
7.3.310.0070.00016.12
7.3.300.0000.00816.04
7.3.290.0000.00716.16
7.3.280.0080.00916.14
7.3.270.0090.00917.40
7.3.260.0070.00916.36
7.3.250.0150.00416.10
7.3.240.0080.01016.17
7.3.230.0060.01216.50
7.3.210.0100.01316.24
7.3.200.0040.01316.27
7.3.190.0100.00716.47
7.3.180.0080.00816.36
7.3.170.0080.00816.05
7.3.160.0040.01116.27
7.2.330.0090.00916.39
7.2.320.0110.00716.25
7.2.310.0100.00616.21
7.2.300.0070.01216.38
7.2.290.0120.00416.43
7.2.110.0000.01516.46
7.2.60.0070.00716.80
7.2.00.0140.00717.26
7.1.200.0100.00315.57
7.1.120.0090.00916.56
7.1.110.0080.01116.42
7.1.100.0110.00816.16
7.1.90.0100.01016.39
7.1.80.0090.01416.13
7.1.70.0100.01015.35
7.1.60.0240.01732.91
7.1.50.0340.01332.93
7.1.40.0180.01532.20
7.1.30.0110.02632.66
7.1.20.0280.01432.61
7.1.10.0110.01414.57
7.1.00.0170.01214.86

preferences:
56.4 ms | 401 KiB | 5 Q