3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = ["a" => "green", "b" => "red", "d" => "blue"]; $allow = ["a","b","c"]; $result = \array_filter($config, function ($item) { var_dump($item); return false; }, \ARRAY_FILTER_USE_KEY); 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.0000.01518.43
8.3.50.0040.01118.08
8.3.40.0190.00018.22
8.3.30.0180.00018.58
8.3.20.0050.00221.73
8.3.10.0090.00023.66
8.3.00.0070.00023.48
8.2.180.0180.00016.75
8.2.170.0080.00819.00
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0140.00019.53
8.2.110.0060.00320.94
8.2.100.0080.00417.72
8.2.90.0030.00617.91
8.2.80.0090.00318.16
8.2.70.0000.00817.93
8.2.60.0050.00317.93
8.2.50.0080.00018.22
8.2.40.0060.00319.13
8.2.30.0000.00719.30
8.2.20.0050.00317.98
8.2.10.0040.00418.23
8.2.00.0060.00318.19
8.1.280.0110.00425.92
8.1.270.0000.00923.82
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0040.00423.96
8.1.230.0070.00422.81
8.1.220.0030.00617.76
8.1.210.0060.00318.77
8.1.200.0000.00817.13
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0040.00718.87
8.1.150.0030.00519.01
8.1.140.0000.00717.57
8.1.130.0000.01019.01
8.1.120.0000.00717.50
8.1.110.0000.00817.34
8.1.100.0020.00517.43
8.1.90.0090.00317.49
8.1.80.0040.00417.43
8.1.70.0000.00717.46
8.1.60.0080.00017.61
8.1.50.0000.00817.42
8.1.40.0000.00717.41
8.1.30.0100.00017.54
8.1.20.0000.00717.55
8.1.10.0000.00717.34
8.1.00.0080.00017.39
8.0.300.0000.00719.76
8.0.290.0000.00816.75
8.0.280.0000.00818.24
8.0.270.0000.00817.05
8.0.260.0000.00717.19
8.0.250.0000.00716.86
8.0.240.0030.00316.88
8.0.230.0000.00716.86
8.0.220.0000.00816.78
8.0.210.0040.00416.75
8.0.200.0060.00016.87
8.0.190.0040.00416.95
8.0.180.0000.00816.90
8.0.170.0000.00916.88
8.0.160.0040.00416.88
8.0.150.0060.00616.78
8.0.140.0030.00516.78
8.0.130.0030.00313.27
8.0.120.0040.00416.83
8.0.110.0030.00516.88
8.0.100.0040.00416.99
8.0.90.0040.00416.87
8.0.80.0110.00416.92
8.0.70.0070.00016.89
8.0.60.0030.00516.70
8.0.50.0040.00416.75
8.0.30.0110.00917.09
8.0.20.0150.01317.40
8.0.10.0070.00016.98
8.0.00.0120.00616.68
7.4.330.0000.00415.55
7.4.320.0060.00016.52
7.4.300.0000.00716.63
7.4.290.0030.00316.46
7.4.280.0080.00016.50
7.4.270.0050.00216.39
7.4.260.0030.00716.47
7.4.250.0000.00716.38
7.4.240.0000.00716.46
7.4.230.0030.00316.59
7.4.220.0040.00416.41
7.4.210.0080.01016.52
7.4.200.0070.00016.35
7.4.160.0070.01016.47
7.4.140.0110.00917.86
7.4.130.0070.01016.46
7.4.120.0100.01016.53
7.4.110.0070.01616.47
7.4.100.0060.01316.50
7.4.90.0110.00816.49
7.4.80.0100.01319.39
7.4.70.0100.00716.53
7.4.60.0100.00716.45
7.4.50.0030.01516.34
7.4.40.0100.01016.36
7.4.00.0090.00614.84
7.3.330.0000.00513.09
7.3.320.0030.00313.20
7.3.310.0000.00716.25
7.3.300.0070.00016.14
7.3.290.0070.00016.18
7.3.280.0070.00916.21
7.3.260.0100.00716.41
7.3.240.0130.00616.32
7.3.230.0150.00416.23
7.3.210.0070.01416.32
7.3.200.0060.01516.27
7.3.190.0060.01016.32
7.3.180.0070.01116.55
7.3.170.0100.00716.38
7.3.160.0060.00916.51
7.3.10.0050.00616.63
7.3.00.0070.00516.66
7.2.330.0190.00316.61
7.2.320.0100.01016.41
7.2.310.0100.01316.70
7.2.300.0100.00716.70
7.2.290.0070.01116.74
7.2.130.0020.01016.86
7.2.120.0080.00716.90
7.2.110.0080.00516.71
7.2.100.0110.00616.70
7.2.90.0080.00716.95
7.2.80.0070.00716.78
7.2.70.0080.00416.86
7.2.60.0080.00516.96
7.2.50.0040.00716.78
7.2.40.0320.01017.07
7.2.30.0240.00817.14
7.2.20.0330.00817.11
7.2.10.0230.01217.25
7.2.00.0230.00717.15
7.1.250.0070.00915.63
7.1.200.0040.01115.72
7.1.160.0860.01116.63
7.1.150.0650.01116.80
7.1.140.0910.01216.80
7.1.130.0620.01316.62
7.1.120.1490.00816.64
7.1.110.0670.01115.99
7.1.100.0700.01016.11
7.1.90.0660.01016.15
7.1.80.0680.00716.14
7.1.70.0640.01115.12
7.1.60.1160.01633.13
7.1.50.1080.01233.01
7.1.40.0920.01132.58
7.1.30.0970.01332.45
7.1.20.0950.01332.58
7.1.10.0690.01214.86
7.1.00.0840.00914.75

preferences:
31.67 ms | 400 KiB | 5 Q