3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = ["one", "two", "three"]; $ignore = "two"; array_filter($items, function($item) { return $item !== $ignore; }); // ---- Now let's do it properly var_dump(array_filter($items, function($item) use ($ignore) { return $item !== $ignore; }));

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.120.0110.00918.58
8.4.110.0140.00618.84
8.4.100.0110.01017.73
8.4.90.0100.01120.72
8.4.80.0110.00918.77
8.4.70.0060.00218.97
8.4.60.0050.00520.67
8.4.50.0110.00918.52
8.4.40.0100.01019.57
8.4.30.0100.01017.78
8.4.20.0160.00419.70
8.4.10.0080.00018.04
8.3.250.0090.00718.54
8.3.240.0120.00616.63
8.3.230.0110.00816.72
8.3.220.0040.00418.88
8.3.210.0080.01018.56
8.3.200.0060.00316.59
8.3.190.0040.00318.86
8.3.180.0070.01122.49
8.3.170.0100.01016.99
8.3.160.0080.00016.48
8.3.150.0150.00316.62
8.3.140.0000.00816.73
8.3.130.0060.00319.02
8.3.120.0060.00318.85
8.3.110.0040.00416.79
8.3.100.0080.00016.81
8.3.90.0040.01116.58
8.3.80.0090.00018.55
8.3.70.0110.00418.39
8.3.60.0110.01118.43
8.3.50.0080.01322.87
8.3.40.0110.00418.67
8.3.30.0150.00618.76
8.3.20.0070.00021.73
8.3.10.0040.00423.66
8.3.00.0040.00422.08
8.2.290.0060.00917.14
8.2.280.0140.00518.18
8.2.270.0070.01116.48
8.2.260.0070.01117.29
8.2.250.0040.00416.51
8.2.240.0060.00316.72
8.2.230.0000.00820.94
8.2.220.0080.00024.06
8.2.210.0080.01226.77
8.2.200.0090.00018.18
8.2.190.0060.00916.63
8.2.180.0060.00916.63
8.2.170.0090.00622.96
8.2.160.0100.00322.18
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00819.72
8.2.110.0090.00020.44
8.2.100.0110.00017.91
8.2.90.0000.00917.75
8.2.80.0040.00418.73
8.2.70.0050.00317.80
8.2.60.0000.00918.09
8.2.50.0040.00419.39
8.2.40.0000.00821.04
8.2.30.0040.00419.34
8.2.20.0000.00817.92
8.2.10.0040.00417.99
8.2.00.0000.00717.84
8.1.330.0150.00416.22
8.1.320.0100.00916.44
8.1.310.0090.00916.77
8.1.300.0000.00817.97
8.1.290.0040.00830.84
8.1.280.0110.00725.92
8.1.270.0050.00321.98
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0040.00423.89
8.1.230.0090.00317.76
8.1.220.0030.00517.91
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0050.00317.35
8.1.180.0060.00318.99
8.1.170.0080.00020.28
8.1.160.0040.00418.87
8.1.150.0040.00420.17
8.1.140.0080.00019.48
8.1.130.0060.00019.01
8.1.120.0070.00017.47
8.1.110.0030.00517.46
8.1.100.0000.00717.44
8.1.90.0070.00017.48
8.1.80.0000.00717.46
8.1.70.0050.00217.50
8.1.60.0030.00517.63
8.1.50.0040.00417.45
8.1.40.0040.00417.52
8.1.30.0080.00017.68
8.1.20.0000.00917.72
8.1.10.0040.00417.58
8.1.00.0000.00717.38
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.46
8.0.270.0040.00417.20
8.0.260.0000.00617.18
8.0.250.0070.00017.03
8.0.240.0070.00016.96
8.0.230.0030.00516.98
8.0.220.0030.00316.86
8.0.210.0000.00716.83
8.0.200.0030.00316.97
8.0.190.0040.00416.88
8.0.180.0050.00517.05
8.0.170.0070.00017.01
8.0.160.0030.00416.97
8.0.150.0040.00416.89
8.0.140.0080.00516.88
8.0.130.0030.00313.42
8.0.120.0050.00216.81
8.0.110.0080.00016.97
8.0.100.0050.00316.77
8.0.90.0000.00716.82
8.0.80.0180.00016.93
8.0.70.0040.00417.06
8.0.60.0000.00716.84
8.0.50.0080.00016.82
8.0.30.0100.00917.26
8.0.20.0060.01317.40
8.0.10.0080.00017.11
8.0.00.0130.00616.74
7.4.330.0040.00315.55
7.4.320.0060.00016.61
7.4.300.0000.00716.64
7.4.290.0040.00416.59
7.4.280.0000.00816.57
7.4.270.0070.00016.52
7.4.260.0000.00716.60
7.4.250.0000.00816.37
7.4.240.0000.00716.53
7.4.230.0030.00316.34
7.4.220.0100.01416.66
7.4.210.0070.01416.62
7.4.200.0050.00316.41
7.4.160.0090.00716.61
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0100.00616.58
7.4.120.0070.01316.58
7.4.110.0080.00916.57
7.4.100.0030.01316.63
7.4.90.0130.00416.49
7.4.80.0140.00319.39
7.4.70.0070.01016.63
7.4.60.0130.00316.59
7.4.50.0030.01416.21
7.4.40.0140.00816.50
7.4.30.0180.00316.49
7.4.00.0080.00814.96
7.3.330.0000.00613.38
7.3.320.0020.00213.35
7.3.310.0030.00316.41
7.3.300.0040.00416.38
7.3.290.0070.01216.41
7.3.280.0100.00816.43
7.3.270.0140.00617.40
7.3.260.0080.01016.44
7.3.250.0110.00616.42
7.3.240.0080.01116.35
7.3.230.0080.00816.47
7.3.210.0100.00516.42
7.3.200.0070.01419.39
7.3.190.0030.01816.72
7.3.180.0120.00616.29
7.3.170.0070.01016.53
7.3.160.0060.01316.64
7.2.330.0160.00316.67
7.2.320.0060.01916.69
7.2.310.0080.00816.76
7.2.300.0090.00816.63
7.2.290.0100.00616.33
7.2.60.0100.00316.62
7.2.50.0180.00916.76
7.1.200.0120.00015.55
7.1.70.0030.00917.16
7.1.60.0030.01017.27
7.1.10.0100.06022.24
7.1.00.0130.05322.52
7.0.200.0040.00716.68
7.0.150.0130.05021.83
7.0.140.0130.06021.75
7.0.130.0100.07021.97
7.0.120.0100.05721.81
7.0.110.0100.05321.80
7.0.100.0100.05321.87
7.0.90.0000.06321.75
7.0.80.0170.05321.96
7.0.70.0100.05321.74
7.0.60.0130.05021.74
7.0.50.0000.07021.91
7.0.40.0100.05022.02
7.0.30.0030.06021.89
7.0.20.0130.05021.94
7.0.10.0070.06021.91
7.0.00.0100.05721.83

preferences:
29.18 ms | 403 KiB | 5 Q