3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ 146, 173 ]; $array2 = [ 'localhost' => [ '0' => ['host_id' => 146], ], '192.168.0.43' => [ '1' => [ 'host_id' => 160 ] , ], '192.168.0.38' => [ '2' => [ 'host_id' => 173 ] ] ]; $filtered_hosts = array_filter($array2, function ($x) use ($array1) { return in_array(reset($x)['host_id'], $array1); }); print_r($filtered_hosts);

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.0150.00018.43
8.3.50.0080.00816.60
8.3.40.0140.00718.71
8.3.30.0070.00718.70
8.3.20.0080.00018.95
8.3.10.0050.00321.92
8.3.00.0000.00720.58
8.2.180.0140.00016.38
8.2.170.0000.01518.79
8.2.160.0110.00322.96
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00417.84
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0090.00318.03
8.2.90.0080.00017.91
8.2.80.0000.00818.05
8.2.70.0060.00318.03
8.2.60.0030.00518.22
8.2.50.0090.00018.10
8.2.40.0000.00819.30
8.2.30.0080.00019.38
8.2.20.0000.00718.05
8.2.10.0050.00218.16
8.2.00.0040.00417.92
8.1.280.0140.00725.92
8.1.270.0000.00822.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00317.36
8.1.230.0040.00822.75
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0060.00317.13
8.1.180.0000.00818.10
8.1.170.0050.00318.60
8.1.160.0000.00718.80
8.1.150.0040.00418.83
8.1.140.0070.00022.18
8.1.130.0030.00320.19
8.1.120.0040.00717.54
8.1.110.0110.00017.38
8.1.100.0000.00817.35
8.1.90.0030.00617.47
8.1.80.0070.00017.34
8.1.70.0040.00417.39
8.1.60.0000.00817.48
8.1.50.0000.00917.38
8.1.40.0030.00517.48
8.1.30.0030.00617.57
8.1.20.0030.00617.55
8.1.10.0040.00417.61
8.1.00.0040.00417.38
8.0.300.0040.00419.69
8.0.290.0080.00316.75
8.0.280.0030.00318.31
8.0.270.0000.00718.01
8.0.260.0030.00318.43
8.0.250.0030.00316.84
8.0.240.0050.00216.84
8.0.230.0000.00717.01
8.0.220.0000.00816.77
8.0.210.0030.00316.80
8.0.200.0000.00616.91
8.0.190.0080.00016.88
8.0.180.0040.00416.88
8.0.170.0040.00416.78
8.0.160.0030.00316.83
8.0.150.0000.00716.78
8.0.140.0060.00316.71
8.0.130.0060.00313.40
8.0.120.0000.00716.73
8.0.110.0030.00516.86
8.0.100.0050.00216.77
8.0.90.0050.00316.88
8.0.80.0060.01216.89
8.0.70.0050.00216.80
8.0.60.0080.00016.89
8.0.50.0030.00316.78
8.0.30.0060.01017.04
8.0.20.0070.01617.40
8.0.10.0000.00717.00
8.0.00.0040.01516.61
7.4.330.0040.00415.55
7.4.320.0030.00316.50
7.4.300.0030.00316.43
7.4.290.0050.00316.59
7.4.280.0000.00716.63
7.4.270.0070.00016.49
7.4.260.0070.00016.58
7.4.250.0080.00016.51
7.4.240.0070.00016.61
7.4.230.0070.00016.58
7.4.220.0080.00016.39
7.4.210.0080.00616.61
7.4.200.0030.00316.63
7.4.160.0100.00716.42
7.4.140.0080.00917.86
7.4.130.0120.00616.60
7.4.120.0110.00916.53
7.4.110.0070.01116.64
7.4.100.0100.00716.47
7.4.90.0110.00716.40
7.4.80.0100.01019.39
7.4.70.0100.01016.43
7.4.60.0170.00016.63
7.4.50.0040.01116.54
7.4.40.0030.01316.55
7.4.00.0070.01115.08
7.3.330.0050.00013.33
7.3.320.0000.00513.31
7.3.310.0040.00416.41
7.3.300.0080.00016.31
7.3.290.0000.00716.21
7.3.280.0040.01116.32
7.3.260.0100.00916.52
7.3.240.0120.00616.38
7.3.230.0040.01216.52
7.3.210.0100.00716.37
7.3.200.0070.01016.38
7.3.190.0030.01616.31
7.3.180.0060.01016.57
7.3.170.0090.01416.39
7.3.160.0000.01916.65
7.2.330.0070.01116.58
7.2.320.0170.00716.63
7.2.310.0130.00316.53
7.2.300.0120.00616.46
7.2.290.0080.00916.57
7.2.110.0310.00314.74
7.2.100.0250.00514.76
7.2.90.0260.01014.62
7.2.80.0270.00614.81
7.2.70.0260.00614.98
7.2.60.0240.00915.01
7.2.50.0250.01115.04
7.2.40.0200.00815.04
7.2.30.0260.00814.96
7.2.20.0650.00814.93
7.2.10.0290.00614.98
7.2.00.0350.00815.18
7.1.230.0200.00913.94
7.1.220.0230.00813.83
7.1.210.0230.00813.85
7.1.200.0500.00213.94
7.1.190.0250.00913.81
7.1.180.0400.00413.89
7.1.170.0240.00413.79
7.1.160.0230.01013.81
7.1.150.0310.00613.85
7.1.140.0290.00513.80
7.1.130.0320.00513.93
7.1.120.0650.00313.83
7.1.110.0330.00713.96
7.1.100.0240.01013.86
7.1.90.0250.00313.77
7.1.80.0240.00713.76
7.1.70.0270.00613.81
7.1.60.0290.00413.82
7.1.50.0260.00713.96
7.1.40.0300.00513.88
7.1.30.0230.00713.93
7.1.20.0480.00813.90
7.1.10.0300.00613.89
7.1.00.0260.00613.83
5.6.380.0060.00914.36

preferences:
56.74 ms | 400 KiB | 5 Q