3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = ['apple', 'orange', 'melon', 'banana', 'pineapple']; $remove = ['apple', 'orange', 'melon', 'banana']; $result = array_diff($fruits, $remove); 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.60.0040.01118.27
8.3.50.0120.00617.93
8.3.40.0060.01218.63
8.3.30.0070.00718.48
8.3.20.0040.00420.61
8.3.10.0030.00623.51
8.3.00.0080.00322.38
8.2.180.0150.00616.38
8.2.170.0040.01218.79
8.2.160.0030.01022.96
8.2.150.0100.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00020.97
8.2.120.0040.00426.35
8.2.110.0060.00320.95
8.2.100.0060.00617.78
8.2.90.0040.00418.22
8.2.80.0040.00418.09
8.2.70.0090.00017.38
8.2.60.0000.00817.63
8.2.50.0000.00918.10
8.2.40.0040.00421.08
8.2.30.0030.00719.11
8.2.20.0030.00617.81
8.2.10.0060.00319.22
8.2.00.0070.00017.95
8.1.280.0150.00025.92
8.1.270.0090.00020.76
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.47
8.1.230.0090.00320.90
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0050.00317.23
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0060.00318.65
8.1.160.0030.00518.68
8.1.150.0030.00518.86
8.1.140.0000.00720.19
8.1.130.0050.00520.25
8.1.120.0040.00417.40
8.1.110.0000.00817.41
8.1.100.0030.00317.39
8.1.90.0070.00217.26
8.1.80.0020.00517.28
8.1.70.0030.00317.27
8.1.60.0040.00417.58
8.1.50.0050.00217.33
8.1.40.0040.00417.41
8.1.30.0040.00417.41
8.1.20.0060.00317.54
8.1.10.0000.00717.34
8.1.00.0050.00217.35
8.0.300.0000.00719.93
8.0.290.0090.00016.63
8.0.280.0070.00018.27
8.0.270.0000.00717.16
8.0.260.0000.00619.94
8.0.250.0070.00016.86
8.0.240.0080.00016.88
8.0.230.0030.00516.85
8.0.220.0080.00016.81
8.0.210.0030.00516.84
8.0.200.0030.00316.85
8.0.190.0080.00016.94
8.0.180.0030.00316.84
8.0.170.0030.00616.69
8.0.160.0050.00216.86
8.0.150.0040.00416.73
8.0.140.0080.00016.67
8.0.130.0060.00013.24
8.0.120.0040.00416.66
8.0.110.0000.00816.73
8.0.100.0040.00416.66
8.0.90.0040.00416.81
8.0.80.0100.01016.74
8.0.70.0040.00416.84
8.0.60.0000.00816.70
8.0.50.0050.00316.69
8.0.30.0150.00317.01
8.0.20.0100.01317.19
8.0.10.0120.01117.03
8.0.00.0080.01516.61
7.4.330.0000.00515.55
7.4.320.0030.00316.48
7.4.300.0000.00616.42
7.4.290.0000.00716.51
7.4.280.0070.00016.52
7.4.270.0030.00316.41
7.4.260.0040.00416.27
7.4.250.0070.00016.32
7.4.240.0000.00716.44
7.4.230.0020.00516.59
7.4.220.0040.00416.36
7.4.210.0060.01016.40
7.4.200.0030.00316.31
7.4.160.0080.01016.44
7.4.140.0140.00617.86
7.4.130.0110.01116.37
7.4.120.0110.00916.47
7.4.110.0140.00316.48
7.4.100.0130.01316.49
7.4.90.0000.01616.27
7.4.80.0110.00719.39
7.4.70.0030.01316.36
7.4.60.0030.01216.43
7.4.50.0070.01116.43
7.4.40.0110.00716.52
7.4.00.0070.01014.64
7.3.330.0000.00513.00
7.3.320.0030.00313.00
7.3.310.0000.00715.99
7.3.300.0030.00315.98
7.3.290.0030.01216.11
7.3.280.0070.01016.11
7.3.260.0090.00916.18
7.3.240.0100.00616.35
7.3.230.0060.00916.37
7.3.210.0170.00616.31
7.3.200.0060.00916.44
7.3.190.0070.01016.40
7.3.180.0120.00916.35
7.3.170.0140.00316.14
7.3.160.0100.00616.23
7.3.30.0050.00514.49
7.3.22.4680.0078.17
7.3.11.0160.01314.47
7.3.00.0510.00014.49
7.2.330.0030.01416.50
7.2.320.0080.01216.40
7.2.310.0080.00816.50
7.2.300.0190.00016.56
7.2.290.0000.01616.65
7.2.160.0180.00614.79
7.2.150.1090.01014.53
7.2.141.2470.01314.80
7.2.131.2970.00314.85
7.2.120.7570.00314.71
7.2.110.8660.00714.87
7.2.100.9030.00714.73
7.2.90.9210.01314.72
7.2.80.7990.01014.74
7.2.70.6260.01014.84
7.2.60.0900.00314.55
7.2.50.0130.01614.28
7.2.40.0150.01214.71
7.2.30.0170.01414.98
7.2.20.0130.01014.71
7.2.10.0190.00314.85
7.2.00.0120.01614.43
7.1.270.0510.00313.80
7.1.261.0880.01013.78
7.1.250.9010.00313.69

preferences:
54.64 ms | 400 KiB | 5 Q