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 == strpos($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.0110.01116.38
8.3.50.0070.01316.50
8.3.40.0040.01118.63
8.3.30.0070.00718.75
8.3.20.0040.00418.59
8.3.10.0050.00321.95
8.3.00.0070.00021.92
8.2.180.0040.01118.29
8.2.170.0100.00718.86
8.2.160.0060.00922.96
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0060.00319.33
8.2.120.0040.00426.35
8.2.110.0070.00420.39
8.2.100.0090.00617.84
8.2.90.0060.00318.03
8.2.80.0040.00417.97
8.2.70.0030.00618.04
8.2.60.0090.00018.03
8.2.50.0030.00518.10
8.2.40.0080.00419.45
8.2.30.0080.00019.26
8.2.20.0070.00017.98
8.2.10.0070.00018.25
8.2.00.0000.00817.67
8.1.280.0000.01525.92
8.1.270.0080.00020.41
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.47
8.1.230.0110.00020.90
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00717.35
8.1.190.0030.00517.22
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00718.84
8.1.150.0040.00418.81
8.1.140.0070.00020.38
8.1.130.0000.00820.10
8.1.120.0000.00717.50
8.1.110.0040.00417.40
8.1.100.0000.00817.36
8.1.90.0000.00817.35
8.1.80.0000.00817.43
8.1.70.0050.00317.46
8.1.60.0080.00017.57
8.1.50.0030.00617.52
8.1.40.0080.00017.52
8.1.30.0040.00417.55
8.1.20.0000.00717.62
8.1.10.0000.00817.45
8.1.00.0040.00417.35
8.0.300.0040.00419.97
8.0.290.0070.00016.63
8.0.280.0080.00018.43
8.0.270.0040.00417.13
8.0.260.0000.00620.11
8.0.250.0000.00616.96
8.0.240.0000.00716.90
8.0.230.0000.00816.97
8.0.220.0030.00316.91
8.0.210.0040.00416.86
8.0.200.0000.00616.97
8.0.190.0030.00616.82
8.0.180.0060.00316.89
8.0.170.0080.00016.94
8.0.160.0050.00316.83
8.0.150.0040.00416.83
8.0.140.0040.00416.84
8.0.130.0030.00313.34
8.0.120.0000.00816.87
8.0.110.0000.00716.77
8.0.100.0040.00416.93
8.0.90.0040.00416.78
8.0.80.0060.00916.85
8.0.70.0040.00416.69
8.0.60.0000.00716.80
8.0.50.0040.00416.80
8.0.30.0080.00916.90
8.0.20.0090.00917.40
8.0.10.0040.00417.02
8.0.00.0050.01216.75
7.4.330.0060.00015.55
7.4.320.0000.00716.49
7.4.300.0000.00716.61
7.4.290.0070.00016.50
7.4.280.0050.00216.49
7.4.270.0070.00016.61
7.4.260.0100.00016.48
7.4.250.0000.00816.46
7.4.240.0040.00416.64
7.4.230.0070.00016.50
7.4.220.0070.00016.39
7.4.210.0060.00816.59
7.4.200.0000.00716.67
7.4.160.0110.00616.45
7.4.140.0110.00817.86
7.4.130.0070.01016.54
7.4.120.0080.01116.48
7.4.110.0130.00316.48
7.4.100.0110.00716.62
7.4.90.0090.00616.46
7.4.80.0090.00919.39
7.4.70.0100.01316.45
7.4.60.0130.00316.42
7.4.50.0070.01116.63
7.4.40.0070.01016.55
7.4.00.0080.00814.90
7.3.330.0050.00013.22
7.3.320.0060.00013.23
7.3.310.0070.00016.32
7.3.300.0070.00016.17
7.3.290.0030.00316.18
7.3.280.0110.00916.24
7.3.260.0100.00816.41
7.3.240.0060.01316.37
7.3.230.0080.00816.31
7.3.210.0150.00316.51
7.3.200.0080.00816.66
7.3.190.0120.00616.38
7.3.180.0110.00716.26
7.3.170.0060.01016.51
7.3.160.0040.01216.29
7.3.120.0060.00914.83
7.3.110.0070.01014.45
7.3.100.0060.00914.83
7.3.90.0060.00314.97
7.3.80.0030.01214.98
7.3.70.0100.00314.63
7.3.60.0130.00314.90
7.3.50.0030.01414.77
7.3.40.0030.01014.85
7.3.30.0090.00614.70
7.3.20.0070.00716.45
7.3.10.0070.00716.40
7.3.00.0000.01416.52
7.2.330.0140.00616.59
7.2.320.0060.01216.66
7.2.310.0030.01316.43
7.2.300.0040.01216.73
7.2.290.0030.01416.40
7.2.250.0110.00614.72
7.2.240.0120.00414.94
7.2.230.0060.00914.78
7.2.220.0100.01014.88
7.2.210.0060.00614.91
7.2.200.0100.00314.94
7.2.190.0030.01114.96
7.2.180.0070.01014.91
7.2.170.0140.00014.75
7.2.160.0060.00914.98
7.2.150.0030.00616.95
7.2.140.0000.00916.76
7.2.130.0000.01016.55
7.2.120.0140.00316.81
7.2.110.1330.00715.63
7.2.100.1410.00515.66
7.2.90.1030.00915.83
7.2.80.1460.01315.86
7.2.70.1270.00516.07
7.2.60.1030.00916.05
7.2.50.0910.00816.06
7.2.40.1130.01215.85
7.2.30.1220.00615.91
7.2.20.1090.01215.91
7.2.10.1310.00515.77
7.2.00.0940.01115.66
7.1.330.0070.01015.70
7.1.320.0100.00715.54
7.1.310.0070.00715.69
7.1.300.0000.01215.63
7.1.290.0000.01315.60
7.1.280.0000.01615.73
7.1.270.0070.00715.71
7.1.260.0030.00715.71
7.1.250.0040.00415.85
7.1.240.0160.00315.72
7.1.230.1720.00614.55
7.1.220.0930.00814.56
7.1.210.1010.00614.91
7.1.200.1190.00914.91
7.1.190.1590.00614.89
7.1.180.1640.00815.02
7.1.170.1130.00714.82
7.1.160.1540.00714.72
7.1.150.1270.00514.86
7.1.140.1220.01114.79
7.1.130.1250.01214.84
7.1.120.1500.00814.63
7.1.110.1550.00214.77
7.1.100.1390.01114.67
7.1.90.1860.00614.73
7.1.80.1060.01014.79
7.1.70.1270.00714.81
7.1.60.1630.01523.94
7.1.50.1710.01223.87
7.1.40.1680.00923.74
7.1.30.1680.00323.63
7.1.20.1670.01023.82
7.1.10.2010.00314.71
7.1.00.1370.01114.74
7.0.330.0130.00315.39
7.0.320.0000.01015.39
7.0.310.0070.00715.07
7.0.300.0110.00315.62
7.0.290.0030.00915.37
7.0.280.0040.00815.49
7.0.270.0040.00415.11
7.0.260.0030.00715.43
7.0.250.0060.00615.38
7.0.240.0110.00315.37
7.0.230.0060.00815.49
7.0.220.0030.00615.62
7.0.210.0080.00515.60
7.0.200.0040.00415.33
7.0.190.0070.00715.30
7.0.180.0060.01015.16
7.0.170.0100.00315.45
7.0.160.0030.00915.48
7.0.150.0030.01015.45
7.0.140.0070.00715.45
7.0.130.0030.01015.21
7.0.120.0030.01314.99
7.0.110.0030.00915.26
7.0.100.0080.00415.25
7.0.90.0030.01415.25
7.0.80.0030.00715.48
7.0.70.0100.00715.54
7.0.60.0140.00315.32
7.0.50.0060.00615.56
7.0.40.0000.01413.31
7.0.30.0110.00413.57
7.0.20.0100.00713.40
7.0.10.0030.01513.55
7.0.00.0110.00813.66
5.6.400.0030.00914.48
5.6.390.0060.01014.20
5.6.380.0100.00314.27
5.6.370.0000.01214.58
5.6.360.0040.01114.38
5.6.350.0040.00713.98
5.6.340.0000.01614.12
5.6.330.0000.01214.29
5.6.320.0100.00714.32
5.6.310.0060.00614.34
5.6.300.0110.00414.06
5.6.290.0070.00714.19
5.6.280.0030.01314.36
5.6.270.0020.01014.18
5.6.260.0060.00614.52
5.6.250.0100.00614.25
5.6.240.0090.00614.28
5.6.230.0070.00714.15
5.6.220.0080.00814.48
5.6.210.0080.00314.08
5.6.200.0070.00714.39
5.6.190.0080.00414.38
5.6.180.0150.00314.29
5.6.170.0040.01214.26
5.6.160.0030.01314.01
5.6.150.0100.01014.20
5.6.140.0040.01114.11
5.6.130.0000.01314.00
5.6.120.0070.00314.04
5.6.110.0060.01014.01
5.6.100.0060.00614.42
5.6.90.0060.00614.50
5.6.80.0030.00914.25
5.6.70.0120.00613.88
5.6.60.0040.00814.10
5.6.50.0070.00714.25
5.6.40.0070.00714.13
5.6.30.0070.00713.96
5.6.20.0000.01214.06
5.6.10.0060.00613.94
5.6.00.0040.00914.24

preferences:
64.87 ms | 400 KiB | 5 Q