3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'a' => array( 'name' => 'a1', 'second_name' => 'a2' ), 'b' => array( 'name' => 'b1', 'second_name' => 'b2' ), 'c' => array( 'name' => 'c1', 'second_name' => 'c2' ) ); print_r( array_filter( $a, function($value, $field, $search){ return $value[$field] == $search; } ) );

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.0100.01018.31
8.3.50.0110.00621.99
8.3.40.0090.00618.82
8.3.30.0140.00318.63
8.3.20.0080.00018.73
8.3.10.0040.00421.21
8.3.00.0040.00421.94
8.2.180.0120.00616.75
8.2.170.0080.00822.96
8.2.160.0070.00720.41
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00821.09
8.2.110.0060.00320.42
8.2.100.0060.00617.71
8.2.90.0000.00819.23
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00421.14
8.2.20.0050.00317.68
8.2.10.0060.00317.78
8.2.00.0040.00417.72
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0060.01226.35
8.1.250.0000.00828.09
8.1.240.0060.00322.45
8.1.230.0090.00320.72
8.1.220.0000.00818.77
8.1.210.0060.00318.97
8.1.200.0000.01017.35
8.1.190.0050.00217.53
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0030.00618.91
8.1.150.0040.00418.52
8.1.140.0030.00517.48
8.1.130.0000.00717.75
8.1.120.0000.00817.38
8.1.110.0030.00617.39
8.1.100.0040.00417.46
8.1.90.0030.00317.48
8.1.80.0040.00417.54
8.1.70.0030.00317.48
8.1.60.0040.00417.52
8.1.50.0000.00717.43
8.1.40.0070.00017.50
8.1.30.0000.00817.63
8.1.20.0040.00417.55
8.1.10.0050.00217.47
8.1.00.0000.00817.50
8.0.300.0030.00619.95
8.0.290.0040.00417.04
8.0.280.0000.00718.39
8.0.270.0040.00417.25
8.0.260.0040.00416.80
8.0.250.0000.00716.94
8.0.240.0080.00016.83
8.0.230.0000.00716.96
8.0.220.0030.00316.87
8.0.210.0040.00416.77
8.0.200.0000.00617.11
8.0.190.0050.00316.92
8.0.180.0000.00816.98
8.0.170.0020.00517.02
8.0.160.0040.00416.95
8.0.150.0070.00016.77
8.0.140.0000.00716.91
8.0.130.0030.00313.35
8.0.120.0030.00516.79
8.0.110.0070.00017.02
8.0.100.0040.00416.87
8.0.90.0000.00816.95
8.0.80.0170.00716.90
8.0.70.0080.00016.83
8.0.60.0050.00316.92
8.0.50.0070.00016.99
8.0.30.0120.00617.22
8.0.20.0080.01117.40
8.0.10.0020.00517.06
8.0.00.0120.00816.70
7.4.330.0000.00516.88
7.4.320.0030.00316.47
7.4.300.0000.00716.48
7.4.290.0000.00716.50
7.4.280.0040.00816.52
7.4.270.0070.00016.53
7.4.260.0050.00013.32
7.4.250.0000.00816.33
7.4.240.0030.00316.46
7.4.230.0040.00416.55
7.4.220.0120.00616.56
7.4.210.0050.01016.52
7.4.200.0000.00716.39
7.4.190.0040.00416.47
7.4.160.0000.01616.52
7.4.150.0090.00817.40
7.4.140.0120.00517.86
7.4.130.0120.00516.46
7.4.120.0080.00916.56
7.4.110.0040.01816.38
7.4.100.0140.00316.65
7.4.90.0120.00916.59
7.4.80.0040.01319.39
7.4.70.0060.01016.70
7.4.60.0130.00316.64
7.4.50.0060.00316.31
7.4.40.0120.00322.77
7.4.30.0110.00616.43
7.4.00.0040.01215.14
7.3.330.0000.00613.13
7.3.320.0060.00013.38
7.3.310.0000.00716.30
7.3.300.0000.00816.19
7.3.290.0000.01316.31
7.3.280.0070.01016.34
7.3.270.0110.00617.40
7.3.260.0120.00618.24
7.3.250.0070.01316.48
7.3.240.0130.00316.34
7.3.230.0070.01016.44
7.3.210.0170.00016.31
7.3.200.0060.01419.39
7.3.190.0100.01316.49
7.3.180.0070.01016.45
7.3.170.0130.00316.34
7.3.160.0030.01316.56
7.3.120.0040.00814.96
7.3.10.0090.00916.56
7.3.00.0060.00816.26
7.2.330.0120.00616.63
7.2.320.0080.00916.68
7.2.310.0090.01216.55
7.2.300.0130.00316.61
7.2.290.0160.00016.41
7.2.130.0110.00716.72
7.2.120.0080.01116.54
7.2.110.0120.01016.70
7.2.100.0060.01716.58
7.2.90.0110.00916.79
7.2.80.0110.00516.62
7.2.70.0130.00616.67
7.2.60.0100.00816.51
7.2.50.0100.00916.64
7.2.40.0140.00416.53
7.2.30.0110.00916.56
7.2.20.0060.01116.46
7.2.10.0100.00916.55
7.2.00.0080.01217.29
7.1.250.0080.00615.47
7.1.200.0050.00515.65
7.1.100.0060.00618.18
7.1.70.0050.00517.04
7.1.60.0100.01319.40
7.1.50.0120.01216.93
7.1.00.0030.03322.30
7.0.200.0180.00616.33
7.0.140.0030.07022.04
7.0.60.0000.05019.91
7.0.50.0100.04717.88
7.0.40.0070.04319.96
7.0.30.0030.08720.19
7.0.20.0270.07320.22
7.0.10.0130.08020.24
7.0.00.0130.07020.29
5.6.280.0030.07021.10
5.6.210.0070.07020.51
5.6.200.0070.07318.23
5.6.190.0070.07720.55
5.6.180.0230.07720.61
5.6.170.0200.08720.55
5.6.160.0030.04320.62
5.6.150.0100.03718.17
5.6.140.0200.07018.17
5.6.130.0130.08018.18
5.6.120.0130.08021.04
5.6.110.0130.07021.03
5.6.100.0130.07321.11
5.6.90.0100.07720.99
5.6.80.0030.07320.51
5.5.350.0300.07720.47
5.5.340.0130.05318.02
5.5.330.0070.04020.43
5.5.320.0000.04320.34
5.5.310.0130.04720.27
5.5.300.0030.08317.94
5.5.290.0100.06317.98
5.5.280.0100.08020.65
5.5.270.0070.04720.96
5.5.260.0100.06320.80
5.5.250.0070.08020.68
5.5.240.0100.07720.19
5.4.450.3300.04019.55
5.4.440.3370.03319.44
5.4.430.3270.03319.39
5.4.420.2630.03319.31
5.4.410.3230.03319.05
5.4.400.3270.03319.16
5.4.390.3530.04319.24
5.4.380.3300.04019.09
5.4.370.3330.03019.22
5.4.360.3470.04018.95
5.4.350.3230.04018.84
5.4.340.3200.03718.98
5.4.320.3730.04019.09
5.4.310.3400.04019.13
5.4.300.3500.03719.00
5.4.290.3500.04019.02
5.4.280.3400.04019.08
5.4.270.3200.03719.16
5.4.260.3600.03018.98
5.4.250.3330.04319.17
5.4.240.3430.04319.21
5.4.230.3330.03019.21
5.4.220.3200.03719.07
5.4.210.3270.03719.16
5.4.200.4300.03719.08
5.4.190.3470.04018.82
5.4.180.3300.03318.86
5.4.170.3430.03718.98
5.4.160.3730.04319.11
5.4.150.3430.03718.96
5.4.140.3670.04716.36
5.4.130.3370.03716.50
5.4.120.3470.03316.37
5.4.110.3230.03316.60
5.4.100.3570.03316.35
5.4.90.3200.03716.45
5.4.80.3300.03716.43
5.4.70.3200.03316.52
5.4.60.3470.03316.25
5.4.50.3500.03316.52
5.4.40.3630.04316.32
5.4.30.3470.03716.55
5.4.20.3530.03316.37
5.4.10.3830.05316.47
5.4.00.3600.04015.79
5.3.290.3600.04314.59
5.3.280.3300.03714.60
5.3.270.3570.03314.58
5.3.260.3430.04314.61
5.3.250.3730.03714.57
5.3.240.3530.04014.61
5.3.230.3500.03714.73
5.3.220.2570.04014.54
5.3.210.3530.03314.61
5.3.200.3430.03714.54
5.3.190.3470.04014.54
5.3.180.3200.04014.72
5.3.170.3500.03714.64
5.3.160.3500.03014.61
5.3.150.3530.03314.46
5.3.140.3200.03714.46
5.3.130.3270.03014.45
5.3.120.4000.03714.55
5.3.110.4070.04014.52
5.3.100.3770.03314.15
5.3.90.4000.04313.93
5.3.80.4370.03713.93
5.3.70.4130.04013.99
5.3.60.3370.03714.01
5.3.50.3670.03313.96
5.3.40.3400.03713.86
5.3.30.3300.04013.93
5.3.20.3300.03313.60
5.3.10.3530.02713.55
5.3.00.4070.02713.76
5.2.170.2970.02011.20
5.2.160.2930.03311.20
5.2.150.2830.02711.20
5.2.140.3300.02711.20
5.2.130.3100.03011.20
5.2.120.3000.03011.20
5.2.110.2630.03011.20
5.2.100.3000.02711.20
5.2.90.2430.03311.20
5.2.80.2970.02711.20
5.2.70.3600.03011.20
5.2.60.2800.02311.20
5.2.50.3230.02711.20
5.2.40.2570.02311.20
5.2.30.2130.02711.20
5.2.20.2130.02711.20
5.2.10.2470.03011.20
5.2.00.2370.03311.20
5.1.60.2370.03011.20
5.1.50.2330.02311.20
5.1.40.2400.02311.20
5.1.30.2900.02711.20
5.1.20.2670.02011.20
5.1.10.2800.02711.20
5.1.00.2600.02311.20
5.0.50.1530.02011.20
5.0.40.1300.01711.20
5.0.30.1600.03711.20
5.0.20.1500.02011.20
5.0.10.1470.02011.20
5.0.00.1630.03011.20
4.4.90.1570.01711.20
4.4.80.1770.00711.20
4.4.70.1300.01311.20
4.4.60.1630.02011.20
4.4.50.1270.01711.20
4.4.40.1370.02311.20
4.4.30.1600.01011.20
4.4.20.1370.01711.20
4.4.10.1430.01311.20
4.4.00.1530.02711.20
4.3.110.1230.01711.20
4.3.100.1500.01711.20
4.3.90.1570.01711.21
4.3.80.1700.02311.21
4.3.70.1400.01711.21
4.3.60.1600.01711.21
4.3.50.1600.01311.22
4.3.40.1500.02311.22
4.3.30.0730.01311.23
4.3.20.0900.02011.23
4.3.10.0930.02311.23
4.3.00.0900.02311.23

preferences:
41.01 ms | 401 KiB | 5 Q