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 strpos($key, "foo") === 0; }, 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.0030.01218.30
8.3.50.0090.00918.37
8.3.40.0120.00618.89
8.3.30.0120.00318.59
8.3.20.0050.00318.60
8.3.10.0000.00821.73
8.3.00.0040.00421.76
8.2.180.0170.00318.04
8.2.170.0110.00422.96
8.2.160.0080.00519.04
8.2.150.0120.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00819.70
8.2.120.0050.00326.35
8.2.110.0090.00021.17
8.2.100.0070.00417.84
8.2.90.0050.00317.77
8.2.80.0080.00017.97
8.2.70.0000.00818.04
8.2.60.0090.00018.03
8.2.50.0030.00518.10
8.2.40.0060.00319.48
8.2.30.0060.00619.29
8.2.20.0000.00817.98
8.2.10.0050.00218.26
8.2.00.0000.00817.77
8.1.280.0110.00425.92
8.1.270.0040.00420.46
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00424.02
8.1.230.0080.00422.78
8.1.220.0040.00417.74
8.1.210.0080.00018.92
8.1.200.0030.00617.38
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0060.00318.67
8.1.160.0040.00418.77
8.1.150.0020.00518.94
8.1.140.0070.00020.25
8.1.130.0070.00020.15
8.1.120.0070.00017.51
8.1.110.0000.01117.38
8.1.100.0040.00417.44
8.1.90.0000.00717.47
8.1.80.0040.00417.45
8.1.70.0000.00717.45
8.1.60.0000.00817.56
8.1.50.0030.00517.46
8.1.40.0020.00517.47
8.1.30.0040.00417.55
8.1.20.0040.00417.60
8.1.10.0000.00717.50
8.1.00.0070.00017.47
8.0.300.0080.00019.73
8.0.290.0040.00416.58
8.0.280.0000.00718.38
8.0.270.0000.00717.07
8.0.260.0070.00020.19
8.0.250.0000.00616.93
8.0.240.0030.00316.88
8.0.230.0040.00416.87
8.0.220.0000.00816.71
8.0.210.0030.00316.84
8.0.200.0030.00316.98
8.0.190.0050.00216.92
8.0.180.0070.00016.87
8.0.170.0030.00516.79
8.0.160.0000.00716.79
8.0.150.0040.00416.72
8.0.140.0020.00516.79
8.0.130.0030.00313.36
8.0.120.0040.00416.88
8.0.110.0000.00716.89
8.0.100.0040.00417.01
8.0.90.0000.00816.96
8.0.80.0060.00916.87
8.0.70.0070.00016.76
8.0.60.0070.00016.75
8.0.50.0000.00817.02
8.0.30.0110.00816.95
8.0.20.0120.00717.40
8.0.10.0040.00416.91
8.0.00.0130.00616.82
7.4.330.0000.00515.55
7.4.320.0030.00316.65
7.4.300.0000.00616.62
7.4.290.0000.00816.45
7.4.280.0030.00616.62
7.4.270.0040.00416.55
7.4.260.0070.00016.61
7.4.250.0000.00716.55
7.4.240.0000.00716.53
7.4.230.0040.00416.63
7.4.220.0080.00016.54
7.4.210.0020.01516.58
7.4.200.0030.00316.49
7.4.160.0080.00916.59
7.4.140.0100.00717.86
7.4.130.0090.00916.42
7.4.120.0100.01216.55
7.4.110.0030.02216.49
7.4.100.0140.01116.61
7.4.90.0100.00716.32
7.4.80.0100.00719.39
7.4.70.0140.01116.66
7.4.60.0110.00616.43
7.4.50.0040.01116.57
7.4.40.0070.01016.58
7.4.10.0090.00915.17
7.4.00.0040.01414.99
7.3.330.0030.00313.09
7.3.320.0030.00213.10
7.3.310.0050.00216.29
7.3.300.0050.00216.23
7.3.290.0000.00716.12
7.3.280.0100.00916.24
7.3.260.0150.00616.40
7.3.240.0120.00816.27
7.3.230.0070.01016.57
7.3.210.0130.01016.18
7.3.200.0090.00716.26
7.3.190.0130.00916.16
7.3.180.0100.00616.26
7.3.170.0000.01716.20
7.3.160.0030.01616.23
7.3.130.0060.01314.66
7.3.120.0050.01414.53
7.3.110.0060.01214.70
7.3.100.0060.00914.63
7.3.90.0070.00614.77
7.3.80.0080.00614.53
7.3.70.0050.00414.87
7.3.60.0070.00514.82
7.3.50.0060.00614.77
7.3.40.0090.00314.67
7.3.30.0050.00614.76
7.3.20.0080.00516.46
7.3.10.0080.00516.70
7.3.00.0080.00716.46
7.2.330.0090.01016.67
7.2.320.0070.01016.70
7.2.310.0100.00716.49
7.2.300.0200.00516.70
7.2.290.0080.01116.76
7.2.260.0040.00815.19
7.2.250.0030.01614.98
7.2.240.0080.00815.05
7.2.230.0070.00715.08
7.2.220.0060.00815.05
7.2.210.0050.00815.01
7.2.200.0030.00814.96
7.2.190.0000.01214.87
7.2.180.0050.00814.96
7.2.170.0020.01014.98
7.2.160.0030.01115.08
7.2.150.0040.00717.00
7.2.140.0040.01116.82
7.2.130.0070.00316.85
7.2.120.0100.00316.75
7.2.110.0380.00516.11
7.2.100.0280.00916.17
7.2.90.0290.00716.10
7.2.80.0310.00516.27
7.2.70.0400.00416.33
7.2.60.0380.00916.29
7.2.50.0400.00716.28
7.2.40.0310.00916.26
7.2.30.0310.00816.38
7.2.20.0350.00516.22
7.2.10.0300.00816.22
7.2.00.0310.00716.21
7.1.330.0100.00715.81
7.1.320.0030.00815.73
7.1.310.0050.00815.64
7.1.300.0030.01015.71
7.1.290.0050.00915.68
7.1.280.0020.01015.58
7.1.270.0050.00715.56
7.1.260.0060.00615.63
7.1.250.0010.00915.71
7.1.240.0030.00815.87
7.1.230.0280.00515.08
7.1.220.0250.01015.16
7.1.210.0270.00915.08
7.1.200.0350.00915.09
7.1.190.0350.01015.05
7.1.180.0350.00815.04
7.1.170.0280.00915.21
7.1.160.0380.00615.21
7.1.150.0340.00715.08
7.1.140.0380.00715.04
7.1.130.0340.00815.19
7.1.120.0330.01115.10
7.1.110.0340.01215.17
7.1.100.0560.00515.14
7.1.90.0350.01115.13
7.1.80.0270.01115.11
7.1.70.0360.00915.06
7.1.60.0410.00721.17
7.1.50.0350.00721.01
7.1.40.0300.01221.26
7.1.30.0380.00621.08
7.1.20.0380.00621.13
7.1.10.0250.00915.21
7.1.00.0260.00814.93
7.0.330.0060.00815.29
7.0.320.0070.00615.35
7.0.310.0100.00115.34
7.0.300.0040.00815.39
7.0.290.0080.00615.26
7.0.280.0040.00715.10
7.0.270.0080.00515.29
7.0.260.0040.00915.47
7.0.250.0090.00815.37
7.0.240.0080.00515.46
7.0.230.0050.00915.43
7.0.220.0050.00815.44
7.0.210.0040.00615.12
7.0.200.0030.01015.31
7.0.190.0020.01115.39
7.0.180.0090.00815.28
7.0.170.0060.01015.38
7.0.160.0050.00715.47
7.0.150.0060.00815.38
7.0.140.0040.00915.26
7.0.130.0070.00415.47
7.0.120.0060.00615.35
7.0.110.0020.00915.29
7.0.100.0050.00715.28
7.0.90.0060.00615.49
7.0.80.0070.00215.26
7.0.70.0070.00515.29
7.0.60.0030.01015.29
7.0.50.0020.00915.28
7.0.40.0050.00713.30
7.0.30.0050.00713.40
7.0.20.0050.00513.27
7.0.10.0070.00513.42
7.0.00.0100.00313.36
5.6.400.0080.00714.33
5.6.390.0050.00914.65
5.6.380.0070.00814.41
5.6.370.0050.00614.55
5.6.360.0050.00714.43
5.6.350.0050.00714.07
5.6.340.0080.00614.39
5.6.330.0050.00714.10
5.6.320.0040.00514.14
5.6.310.0070.00713.96
5.6.300.0050.00714.45
5.6.290.0020.00914.44
5.6.280.0030.00714.15
5.6.270.0070.00614.44
5.6.260.0100.00414.13
5.6.250.0050.00914.38
5.6.240.0050.00914.26
5.6.230.0070.00714.38
5.6.220.0070.00814.35
5.6.210.0050.00714.24
5.6.200.0030.00714.31
5.6.190.0020.01314.34
5.6.180.0130.00414.55
5.6.170.0020.01114.41
5.6.160.0040.00914.27
5.6.150.0090.00514.29
5.6.140.0040.00614.26
5.6.130.0050.00914.35
5.6.120.0060.00714.21
5.6.110.0030.01214.19
5.6.100.0070.00714.38
5.6.90.0090.00414.14
5.6.80.0050.00614.05
5.6.70.0050.00814.16
5.6.60.0110.00214.20
5.6.50.0000.01214.40
5.6.40.0060.00514.28
5.6.30.0010.01014.11
5.6.20.0040.00914.26
5.6.10.0040.00614.26
5.6.00.0070.00414.12

preferences:
59.38 ms | 400 KiB | 5 Q