3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "foo" => "no", "foo_contact_firstname" => "Mark", "foo_email" => "mark@gmail.com", "foo_address1" => "91", "foo_address2" => "old road", "foo_bill" => "no", "bar" => "yes", "bar_contact_lastname" => null, "bar_telephone" => null, "bar_email" => null, "bar_address1" => null, "bar_address2" => null, "bar_address3" => null, "bar_address4" => null, "bar_address5" => null, "bar_postcode" => null, "register_contact_firstname" => null, "register_contact_lastname" => null, "register_telephone" => null, "register_email" => null, "register_address1" => null, "register_address2" => null, "register_address3" => null, "register_address4" => null, "register_address5" => null, "register_postcode" => null, ]; $test = array_filter($array, function($key) { return $key == 'foo'; }, ARRAY_FILTER_USE_KEY ); var_dump($test);

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.0120.00318.55
8.3.50.0100.01016.36
8.3.40.0090.00618.55
8.3.30.0060.00918.49
8.3.20.0060.00918.52
8.3.10.0080.00021.91
8.3.00.0100.00723.70
8.2.180.0130.00916.50
8.2.170.0120.00322.96
8.2.160.0170.00318.85
8.2.150.0090.00924.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.01121.00
8.2.110.0100.00022.26
8.2.100.0070.00417.84
8.2.90.0000.00817.91
8.2.80.0000.00817.97
8.2.70.0000.00818.03
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0040.00719.34
8.2.30.0000.00819.18
8.2.20.0070.00018.12
8.2.10.0040.00418.30
8.2.00.0060.00317.64
8.1.280.0070.01125.92
8.1.270.0070.00020.25
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00322.01
8.1.230.0070.00320.91
8.1.220.0030.00617.79
8.1.210.0040.00418.99
8.1.200.0040.00417.35
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0070.00018.64
8.1.160.0050.00318.81
8.1.150.0000.00818.88
8.1.140.0040.00422.04
8.1.130.0040.00417.34
8.1.120.0020.00517.30
8.1.110.0050.00317.46
8.1.100.0000.00717.41
8.1.90.0040.00417.34
8.1.80.0000.00717.50
8.1.70.0070.00017.44
8.1.60.0000.00817.48
8.1.50.0030.00617.51
8.1.40.0040.00417.43
8.1.30.0000.00817.64
8.1.20.0000.00717.62
8.1.10.0050.00317.36
8.1.00.0030.00517.44
8.0.300.0060.00319.94
8.0.290.0000.00816.63
8.0.280.0070.00018.30
8.0.270.0030.00317.20
8.0.260.0000.00616.64
8.0.250.0000.00716.86
8.0.240.0030.00316.89
8.0.230.0000.00716.80
8.0.220.0060.00316.67
8.0.210.0040.00416.85
8.0.200.0050.00316.94
8.0.190.0030.00617.01
8.0.180.0080.00016.91
8.0.170.0000.00916.83
8.0.160.0070.00016.91
8.0.150.0040.00416.82
8.0.140.0040.00416.81
8.0.130.0030.00313.32
8.0.120.0040.00416.75
8.0.110.0030.00516.91
8.0.100.0000.00816.88
8.0.90.0050.00316.77
8.0.80.0060.00916.84
8.0.70.0040.00416.67
8.0.60.0030.00616.91
8.0.50.0050.00316.88
8.0.30.0080.01216.94
8.0.20.0110.00717.40
8.0.10.0030.00516.88
8.0.00.0100.00816.75
7.4.330.0000.00515.55
7.4.320.0050.00216.55
7.4.300.0030.00316.61
7.4.290.0030.00316.64
7.4.280.0040.00416.51
7.4.270.0000.00716.46
7.4.260.0000.00916.39
7.4.250.0030.00316.41
7.4.240.0000.00716.52
7.4.230.0000.00716.57
7.4.220.0000.00716.48
7.4.210.0060.01016.46
7.4.200.0000.00716.40
7.4.160.0080.00816.46
7.4.140.0060.01217.86
7.4.130.0120.00616.48
7.4.120.0090.00816.45
7.4.110.0130.00416.50
7.4.100.0070.01116.39
7.4.90.0130.00316.57
7.4.80.0100.00719.39
7.4.70.0100.00716.62
7.4.60.0150.00016.46
7.4.50.0000.00916.53
7.4.40.0050.01016.39
7.4.00.0070.00715.08
7.3.330.0000.00513.30
7.3.320.0000.00513.37
7.3.310.0000.00716.28
7.3.300.0040.00416.22
7.3.290.0040.00416.16
7.3.280.0090.00716.33
7.3.260.0140.00816.41
7.3.240.0140.00616.43
7.3.230.0060.01216.31
7.3.210.0140.00316.23
7.3.200.0110.00616.21
7.3.190.0060.01516.52
7.3.180.0150.00816.27
7.3.170.0110.01116.50
7.3.160.0000.01416.22
7.2.330.0200.00316.52
7.2.320.0090.01216.63
7.2.310.0030.01416.39
7.2.300.0070.01016.46
7.2.290.0070.01016.66
7.2.110.1910.01014.56
7.2.100.0140.00614.39
7.2.90.0270.00914.69
7.2.80.0220.00614.50
7.2.70.0660.00714.74
7.2.60.0240.01515.05
7.2.50.0310.00914.63
7.2.40.2050.00315.13
7.2.30.0080.01215.07
7.2.20.0590.00914.95
7.2.10.0520.00614.82
7.2.00.0510.00714.71
7.1.230.0080.01513.88
7.1.220.0090.01213.76
7.1.210.1080.00713.66
7.1.200.1320.00313.76
7.1.190.2190.00013.79
7.1.180.0170.00913.60
7.1.170.1770.01313.67
7.1.160.0060.01014.00
7.1.150.0120.00413.56
7.1.140.0320.01013.83
7.1.130.0180.00713.82
7.1.120.0240.00413.80
7.1.110.0330.00813.67
7.1.100.0320.00313.90
7.1.90.0550.00413.79
7.1.80.0260.00713.46
7.1.70.1360.01013.96
7.1.60.1240.00931.94
7.1.50.0300.01431.74
7.1.40.1810.01931.64
7.1.30.0570.00731.30
7.1.20.0390.01331.59
7.1.10.2220.00913.58
7.1.00.0150.01113.68
5.6.380.0050.01014.05

preferences:
58.1 ms | 401 KiB | 5 Q