3v4l.org

run code in 300+ PHP versions simultaneously
<?php $starts_with = 'bk-'; $facets = [ ['name' => 'bk-0001'], ['name' => 'bk-0002'], ['name' => 'bx-0001'] ]; $new_facets = array_filter($facets, function ($var) use ($starts_with) { return substr($var['name'], 0, strlen($starts_with)) === $starts_with; }); print_r($new_facets);

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.01118.38
8.3.50.0140.00316.20
8.3.40.0090.00618.50
8.3.30.0140.00018.76
8.3.20.0040.00419.04
8.3.10.0080.00021.54
8.3.00.0070.00021.64
8.2.180.0040.01118.56
8.2.170.0140.00022.96
8.2.160.0060.01322.00
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00418.89
8.2.110.0000.01022.11
8.2.100.0080.00417.84
8.2.90.0000.00720.59
8.2.80.0000.00818.00
8.2.70.0040.00418.05
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0040.00419.11
8.2.30.0040.00419.32
8.2.20.0060.00318.03
8.2.10.0080.00018.21
8.2.00.0040.00419.49
8.1.280.0060.01225.92
8.1.270.0040.00422.13
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0110.00022.61
8.1.230.0110.00020.84
8.1.220.0080.00017.76
8.1.210.0050.00318.90
8.1.200.0040.00417.35
8.1.190.0030.00617.00
8.1.180.0040.00418.10
8.1.170.0050.00318.38
8.1.160.0040.00418.86
8.1.150.0040.00418.95
8.1.140.0040.00422.14
8.1.130.0030.00320.14
8.1.120.0040.00417.43
8.1.110.0040.00417.44
8.1.100.0040.00417.50
8.1.90.0040.00417.45
8.1.80.0060.00317.46
8.1.70.0030.00517.40
8.1.60.0060.00317.60
8.1.50.0030.00617.52
8.1.40.0000.00817.54
8.1.30.0000.00817.58
8.1.20.0000.00717.67
8.1.10.0030.00617.65
8.1.00.0040.00417.40
8.0.300.0070.00020.08
8.0.290.0110.00016.63
8.0.280.0070.00018.35
8.0.270.0080.00017.25
8.0.260.0030.00318.50
8.0.250.0050.00217.02
8.0.240.0060.00016.91
8.0.230.0000.00716.87
8.0.220.0030.00316.92
8.0.210.0000.00716.94
8.0.200.0080.00016.92
8.0.190.0000.00716.92
8.0.180.0040.00416.78
8.0.170.0060.00316.83
8.0.160.0070.00016.88
8.0.150.0030.00316.80
8.0.140.0070.00016.80
8.0.130.0060.00013.40
8.0.120.0040.00416.86
8.0.110.0040.00416.89
8.0.100.0040.00416.77
8.0.90.0050.00316.81
8.0.80.0160.00616.87
8.0.70.0000.00716.83
8.0.60.0070.00016.85
8.0.50.0040.00416.86
8.0.30.0110.00817.14
8.0.20.0080.01217.40
8.0.10.0040.00416.88
8.0.00.0140.01016.62
7.4.330.0040.00016.71
7.4.320.0030.00316.52
7.4.300.0070.00016.36
7.4.290.0000.00716.52
7.4.280.0040.00416.54
7.4.270.0000.00716.59
7.4.260.0000.00716.62
7.4.250.0000.00716.38
7.4.240.0000.00716.41
7.4.230.0030.00316.25
7.4.220.0040.00416.41
7.4.210.0130.00216.63
7.4.200.0020.00416.56
7.4.160.0100.00616.45
7.4.140.0110.00917.86
7.4.130.0030.01316.48
7.4.120.0100.00816.52
7.4.110.0100.00716.41
7.4.100.0140.01016.51
7.4.90.0070.01016.55
7.4.80.0100.00619.39
7.4.70.0120.00616.61
7.4.60.0170.00016.48
7.4.50.0070.00716.24
7.4.40.0130.00416.30
7.4.00.0090.00614.95
7.3.330.0050.00013.36
7.3.320.0030.00313.36
7.3.310.0000.00716.38
7.3.300.0030.00316.23
7.3.290.0000.00716.32
7.3.280.0080.00716.32
7.3.260.0120.00616.50
7.3.240.0090.00916.39
7.3.230.0030.01416.55
7.3.210.0090.00916.30
7.3.200.0180.00016.30
7.3.190.0080.00816.45
7.3.180.0060.00916.61
7.3.170.0090.00916.27
7.3.160.0040.01116.54
7.2.330.0070.01016.56
7.2.320.0140.00316.59
7.2.310.0120.00316.78
7.2.300.0030.01316.64
7.2.290.0000.01616.62
7.2.120.0080.01214.72
7.2.110.2220.01314.81
7.2.100.2460.00314.64
7.2.90.2640.00314.64
7.2.80.0160.00314.84
7.2.70.1320.00314.84
7.2.60.0620.00314.93
7.2.50.0480.00914.60
7.2.40.0300.01514.96
7.2.30.1970.00014.97
7.2.20.0120.00914.95
7.2.10.0070.01314.63
7.2.00.1550.00615.24
7.1.240.0520.00614.14
7.1.230.1710.00013.76
7.1.220.2260.00713.84
7.1.210.2420.01013.85
7.1.200.0790.00313.60
7.1.190.0680.00013.97
7.1.180.0060.01113.73
7.1.170.0590.00613.84
7.1.160.0520.00013.68
7.1.150.0110.01113.50
7.1.140.0970.00313.88
7.1.130.0070.00713.88
7.1.120.0570.00713.73
7.1.110.0130.01013.87
7.1.100.0480.00613.95
7.1.90.1390.00313.75
7.1.80.0950.00313.98
7.1.70.0100.01313.95
7.1.60.0360.00413.79
7.1.50.1720.01013.71
7.1.40.0110.00713.70
7.1.30.0430.00013.57
7.1.20.0150.00913.82
7.1.10.0330.00013.89
7.1.00.0190.01013.83
5.6.380.0110.00714.13

preferences:
58.45 ms | 400 KiB | 5 Q