3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = [ ['id' => 1, 'currency' => 'EUR', 'name' => 'NL'], ['id' => 2, 'currency' => 'EUR', 'name' => 'DE'], ['id' => 3, 'currency' => 'EUR', 'name' => 'FR'], ['id' => 4, 'currency' => 'EUR', 'name' => 'BE'], ['id' => 5, 'currency' => 'USD', 'name' => 'US'], ['id' => 6, 'currency' => 'Rand', 'name' => 'SAF'], ['id' => 7, 'currency' => 'Rubbles', 'name' => 'RUS'], ['id' => 8, 'currency' => 'EUR', 'name' => 'IT'], ['id' => 9, 'currency' => 'Pound', 'name' => 'GB'], ]; $query = ['currency' => 'EUR', 'id' => 8]; //search needles $out = array_filter($in, function(array $candidate) use ($query) { foreach ($query as $key => $predicate) { if (isset($candidate[$key]) && $candidate[$key] !== $predicate) { return false; } } return true; }); print_r($out);

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.0140.00718.55
8.3.50.0100.00517.44
8.3.40.0110.00418.71
8.3.30.0040.01518.64
8.3.20.0050.00221.73
8.3.10.0030.00620.89
8.3.00.0040.00421.74
8.2.180.0120.00325.92
8.2.170.0110.00422.96
8.2.160.0040.01421.02
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0160.00026.16
8.2.110.0100.00722.15
8.2.100.0070.00417.78
8.2.90.0090.00017.84
8.2.80.0040.00419.28
8.2.70.0030.00518.03
8.2.60.0080.00018.34
8.2.50.0040.00419.21
8.2.40.0000.00720.40
8.2.30.0040.00420.38
8.2.20.0040.00418.20
8.2.10.0000.00718.81
8.2.00.0050.00218.13
8.1.280.0110.00425.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00922.55
8.1.230.0110.00020.93
8.1.220.0040.00417.74
8.1.210.0000.00819.04
8.1.200.0040.00817.25
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0080.00018.83
8.1.150.0040.00418.96
8.1.140.0030.00520.18
8.1.130.0000.00820.18
8.1.120.0030.00617.48
8.1.110.0020.00517.40
8.1.100.0040.00417.37
8.1.90.0050.00217.48
8.1.80.0030.00617.35
8.1.70.0040.00417.45
8.1.60.0060.00317.47
8.1.50.0080.00017.57
8.1.40.0040.00417.54
8.1.30.0080.00017.68
8.1.20.0090.00017.53
8.1.10.0000.00717.48
8.1.00.0000.00717.37
8.0.300.0040.00420.04
8.0.290.0090.00016.75
8.0.280.0000.00718.32
8.0.270.0070.00017.13
8.0.260.0000.00718.36
8.0.250.0030.00316.91
8.0.240.0040.00416.95
8.0.230.0030.00316.98
8.0.220.0030.00316.80
8.0.210.0030.00316.91
8.0.200.0030.00316.82
8.0.190.0090.00016.91
8.0.180.0030.00316.88
8.0.170.0060.00316.90
8.0.160.0070.00016.92
8.0.150.0000.00716.80
8.0.140.0030.00316.89
8.0.130.0050.00013.28
8.0.120.0040.00416.85
8.0.110.0050.00316.77
8.0.100.0000.00716.68
8.0.90.0000.00716.91
8.0.80.0070.00816.88
8.0.70.0040.00416.92
8.0.60.0030.00517.00
8.0.50.0040.00416.77
8.0.30.0090.00917.22
8.0.20.0110.01117.05
8.0.10.0030.00616.88
8.0.00.0110.00916.79
7.4.330.0000.00515.55
7.4.320.0000.00616.53
7.4.300.0070.00016.42
7.4.290.0000.00816.46
7.4.280.0000.00716.53
7.4.270.0060.00316.61
7.4.260.0080.00016.35
7.4.250.0030.00316.55
7.4.240.0040.00416.46
7.4.230.0030.00316.58
7.4.220.0040.00416.32
7.4.210.0070.00616.62
7.4.200.0030.00316.53
7.4.160.0090.00916.34
7.4.130.0120.00616.64
7.4.120.0130.00716.58
7.4.110.0070.01016.44
7.4.100.0150.00916.41
7.4.90.0190.00316.56
7.4.80.0060.01619.39
7.4.70.0080.00816.41
7.4.60.0120.00316.52
7.4.50.0070.00716.34
7.4.40.0070.01016.64
7.4.00.0030.01314.91
7.3.330.0000.00613.38
7.3.320.0050.00013.43
7.3.310.0040.00416.35
7.3.300.0070.00016.22
7.3.290.0100.00716.37
7.3.280.0110.00816.30
7.3.260.0110.00816.47
7.3.230.0160.00316.63
7.3.210.0120.00616.59
7.3.200.0000.01716.53
7.3.190.0160.00316.55
7.3.180.0100.00616.44
7.3.170.0100.00716.30
7.3.160.0100.00516.40
7.3.50.0120.00014.79
7.3.40.0110.00314.79
7.3.30.0040.01814.82
7.3.20.0200.00914.86
7.3.10.1040.00614.67
7.3.00.0090.00914.54
7.2.330.0120.00616.43
7.2.320.0060.01316.83
7.2.310.0080.00816.57
7.2.300.0080.00816.52
7.2.290.0110.00716.61
7.2.180.0110.01115.14
7.2.170.0110.00415.18
7.2.160.0150.00714.73
7.2.150.0230.01014.91
7.2.140.0150.01115.18
7.2.130.0210.00315.16
7.2.120.0120.01114.95
7.2.110.0190.00615.17
7.2.100.0130.00315.19
7.2.90.0150.00315.10
7.2.80.0170.00315.00
7.2.70.0090.01015.21
7.2.60.0070.01015.14
7.2.50.0110.01115.21
7.2.40.0200.00015.22
7.2.30.0100.01015.08
7.2.20.0130.01015.20
7.2.10.0190.00315.18
7.2.00.0160.00915.06
7.1.280.0090.00914.09
7.1.270.0070.01314.02
7.1.260.0140.01014.04
7.1.250.0170.00714.18

preferences:
61.6 ms | 401 KiB | 5 Q