3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = ['apple', 'orange', 'melon', 'banana', 'pineapple']; $fruits = array_filter($fruits, function($fruit) { return !in_array($fruit, ['apple', 'orange', 'melon', 'banana']); }); print_r($fruits);

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.10.0090.00019.62
8.3.140.0110.00717.20
8.3.130.0050.00318.60
8.3.120.0100.01020.91
8.3.110.0000.00820.94
8.3.100.0100.01024.06
8.3.90.0070.01326.77
8.3.80.0100.00317.97
8.3.70.0090.01316.75
8.3.60.0040.01218.30
8.3.50.0100.00518.77
8.3.40.0030.01318.79
8.3.30.0180.00018.58
8.3.20.0080.00020.87
8.3.10.0040.00423.66
8.3.00.0120.00322.40
8.2.260.0000.00818.86
8.2.250.0040.00416.42
8.2.240.0030.00617.00
8.2.230.0120.00322.58
8.2.220.0100.00037.54
8.2.210.0070.01026.77
8.2.200.0100.00316.63
8.2.190.0100.01018.16
8.2.180.0180.00316.38
8.2.170.0090.01222.96
8.2.160.0100.00322.96
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00620.97
8.2.110.0070.00321.04
8.2.100.0000.01217.78
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0080.00017.36
8.2.60.0050.00218.03
8.2.50.0000.01218.07
8.2.40.0000.00718.34
8.2.30.0040.00418.05
8.2.20.0040.00418.07
8.2.10.0040.00719.31
8.2.00.0020.00517.99
8.1.300.0000.00819.70
8.1.290.0100.00018.88
8.1.280.0110.00325.92
8.1.270.0080.00020.70
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0120.00620.70
8.1.230.0080.00322.13
8.1.220.0080.00017.76
8.1.210.0080.00018.95
8.1.200.0000.00817.23
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0090.00018.65
8.1.160.0040.00418.95
8.1.150.0000.00718.87
8.1.140.0070.00020.30
8.1.130.0050.00320.14
8.1.120.0070.00017.50
8.1.110.0000.00717.38
8.1.100.0040.00417.34
8.1.90.0030.00517.48
8.1.80.0040.00417.43
8.1.70.0060.00317.32
8.1.60.0040.00417.57
8.1.50.0000.00817.53
8.1.40.0050.00217.46
8.1.30.0050.00317.63
8.1.20.0000.00917.54
8.1.10.0050.00317.46
8.1.00.0000.00817.45
8.0.300.0070.00019.86
8.0.290.0000.00916.63
8.0.280.0000.00720.18
8.0.270.0070.00016.86
8.0.260.0000.00620.04
8.0.250.0030.00316.93
8.0.240.0000.00717.01
8.0.230.0050.00216.98
8.0.220.0030.00316.85
8.0.210.0040.00416.93
8.0.200.0030.00316.95
8.0.190.0040.00416.82
8.0.180.0000.00716.93
8.0.170.0060.00316.73
8.0.160.0030.00516.87
8.0.150.0000.00716.79
8.0.140.0000.00716.67
8.0.130.0000.00513.30
8.0.120.0080.00016.73
8.0.110.0040.00416.71
8.0.100.0000.00816.81
8.0.90.0000.00816.89
8.0.80.0140.00716.76
8.0.70.0040.00416.77
8.0.60.0040.00416.66
8.0.50.0050.00216.87
8.0.30.0140.02117.08
8.0.20.0120.00817.13
8.0.10.0050.00216.82
8.0.00.0130.00516.72
7.4.330.0020.00215.55
7.4.320.0030.00316.44
7.4.300.0030.00316.44
7.4.290.0000.00716.57
7.4.280.0040.00416.59
7.4.270.0030.00316.51
7.4.260.0030.00316.48
7.4.250.0000.00816.48
7.4.240.0040.00416.56
7.4.230.0070.00016.43
7.4.220.0080.00016.63
7.4.210.0090.00616.57
7.4.200.0030.00416.58
7.4.140.0100.01017.86
7.4.130.0120.00616.34
7.4.120.0170.00316.52
7.4.110.0100.00716.58
7.4.100.0030.01416.50
7.4.90.0110.01116.44
7.4.80.0080.01419.39
7.4.70.0100.00616.46
7.4.60.0080.00816.27
7.4.50.0030.01116.54
7.4.40.0140.01016.41
7.4.10.0100.00714.96
7.4.00.0080.00915.02
7.3.330.0030.00313.32
7.3.320.0000.00513.22
7.3.310.0070.00016.39
7.3.300.0040.00416.33
7.3.290.0040.00416.30
7.3.280.0110.00716.25
7.3.260.0110.00716.42
7.3.240.0080.00916.40
7.3.230.0040.01216.22
7.3.210.0150.00416.45
7.3.200.0030.01216.57
7.3.190.0130.01016.49
7.3.180.0120.00916.38
7.3.170.0140.00416.46
7.3.160.0080.00816.55
7.3.130.0150.00314.50
7.3.120.0050.01014.97
7.3.110.0040.01514.92
7.3.100.0030.01414.94
7.3.90.0090.00414.77
7.3.80.0090.00514.94
7.3.70.0030.00714.70
7.3.60.0050.01014.70
7.3.50.0120.00214.76
7.3.40.0020.01214.85
7.3.30.0070.00514.86
7.3.20.0440.00616.04
7.3.10.1430.00416.00
7.3.00.0260.00815.92
7.2.330.0060.01316.88
7.2.320.0070.01116.54
7.2.310.0000.02216.44
7.2.300.0060.01316.68
7.2.290.0060.01016.86
7.2.260.0070.01015.00
7.2.250.0070.01114.80
7.2.240.0070.00714.99
7.2.230.0050.01114.86
7.2.220.0050.01315.13
7.2.210.0040.00515.00
7.2.200.0110.00514.95
7.2.190.0040.00815.01
7.2.180.0050.01015.04
7.2.170.0050.00914.81
7.2.160.0050.00914.88
7.2.150.0120.00916.20
7.2.140.1370.00816.12
7.2.130.1480.00316.17
7.2.120.0450.01016.06
7.2.110.0160.01116.08
7.2.100.0130.00416.19
7.2.90.3270.00816.25
7.2.80.3780.00816.14
7.2.70.4240.01216.19
7.2.60.3230.00616.29
7.2.50.3960.01216.11
7.2.40.3500.01016.05
7.2.30.1370.00616.27
7.2.20.0090.00916.18
7.2.10.4040.01116.14
7.2.00.3740.00616.18
7.1.330.0100.00615.85
7.1.320.0100.00415.77
7.1.310.0050.00715.72
7.1.300.0080.00615.69
7.1.290.0060.00715.55
7.1.280.0050.00715.62
7.1.270.0060.01114.81
7.1.260.0070.01115.11
7.1.250.0710.00414.98
7.1.240.0050.00415.75
7.1.230.0030.00915.61
7.1.220.0040.00915.54
7.1.210.0040.01115.77
7.1.200.0060.00415.46
7.1.190.0060.00815.68
7.1.180.0030.00815.61
7.1.170.0060.00515.63
7.1.160.0070.00715.62
7.1.150.0050.00715.70
7.1.140.0070.00815.69
7.1.130.0040.00615.73
7.1.120.0030.00815.66
7.1.110.0030.01115.77
7.1.100.0010.00815.82
7.1.90.0070.00315.56
7.1.80.0050.00615.80
7.1.70.0070.00715.53
7.1.60.0060.00615.76
7.1.50.0060.00615.64
7.1.40.0060.00615.65
7.1.30.0090.00515.70
7.1.20.0050.00715.79
7.1.10.0070.00615.77
7.1.00.0070.00615.70

preferences:
37.33 ms | 403 KiB | 5 Q