3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Array1 = [ 146, 173 ]; $Array2 = [ 'localhost' => [ 'host_id' => 146 ], '192.168.0.43' => [ 'host_id' => 160 ], '192.168.0.38' => [ 'host_id' => 173 ] ]; $filtered_hosts = array_filter($Array2, function($x) use ($Array1) { return in_array($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.0070.00718.30
8.3.50.0060.01518.33
8.3.40.0090.00618.75
8.3.30.0040.01118.71
8.3.20.0080.00019.04
8.3.10.0040.00423.48
8.3.00.0080.00020.69
8.2.180.0120.00625.92
8.2.170.0070.01319.09
8.2.160.0100.00322.96
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0030.00717.97
8.2.120.0000.00826.35
8.2.110.0100.00720.97
8.2.100.0060.00618.22
8.2.90.0040.00417.75
8.2.80.0000.00818.75
8.2.70.0030.00517.50
8.2.60.0040.00417.50
8.2.50.0040.00417.63
8.2.40.0040.00419.39
8.2.30.0080.00019.37
8.2.20.0000.00718.18
8.2.10.0000.00718.05
8.2.00.0040.00419.86
8.1.280.0100.00725.92
8.1.270.0030.00624.02
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00319.09
8.1.230.0070.00422.72
8.1.220.0040.00418.75
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0030.00617.62
8.1.160.0070.00018.81
8.1.150.0040.00418.96
8.1.140.0070.00022.02
8.1.130.0000.00720.08
8.1.120.0000.00717.54
8.1.110.0040.00417.42
8.1.100.0070.00017.46
8.1.90.0040.00417.45
8.1.80.0000.00717.48
8.1.70.0080.00017.47
8.1.60.0000.00917.59
8.1.50.0000.00717.59
8.1.40.0040.00417.41
8.1.30.0000.00817.55
8.1.20.0000.01117.65
8.1.10.0040.00417.59
8.1.00.0000.00817.54
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.45
8.0.270.0000.00717.31
8.0.260.0030.00318.45
8.0.250.0030.00316.97
8.0.240.0030.00317.00
8.0.230.0000.00716.86
8.0.220.0080.00016.80
8.0.210.0070.00016.91
8.0.200.0050.00316.97
8.0.190.0070.00016.97
8.0.180.0040.00416.86
8.0.170.0040.00416.80
8.0.160.0030.00316.97
8.0.150.0070.00016.82
8.0.140.0080.00016.84
8.0.130.0040.00413.27
8.0.120.0040.00416.82
8.0.110.0080.00016.96
8.0.100.0050.00316.70
8.0.90.0040.00416.93
8.0.80.0050.01216.82
8.0.70.0030.00516.94
8.0.60.0080.00016.96
8.0.50.0070.00016.70
8.0.30.0040.01617.18
8.0.20.0080.01017.40
8.0.10.0060.00316.93
8.0.00.0130.00516.77
7.4.330.0040.00015.55
7.4.320.0070.00016.46
7.4.300.0000.00616.41
7.4.290.0030.00616.52
7.4.280.0080.00016.57
7.4.270.0040.00416.50
7.4.260.0030.00316.51
7.4.250.0000.00716.58
7.4.240.0050.00316.62
7.4.230.0000.00716.68
7.4.220.0000.00716.54
7.4.210.0040.01116.63
7.4.200.0000.00716.68
7.4.160.0100.00616.54
7.4.140.0120.00817.86
7.4.130.0110.00716.60
7.4.120.0080.01016.51
7.4.110.0130.00316.69
7.4.100.0100.00716.61
7.4.90.0130.00616.56
7.4.80.0130.00419.39
7.4.70.0070.01516.45
7.4.60.0100.00716.39
7.4.50.0070.00416.35
7.4.40.0140.00416.47
7.4.00.0030.01414.83
7.3.330.0050.00013.19
7.3.320.0060.00013.23
7.3.310.0080.00016.18
7.3.300.0070.00016.23
7.3.290.0030.00316.30
7.3.280.0090.00616.29
7.3.260.0060.01316.42
7.3.240.0100.00916.43
7.3.230.0100.00716.36
7.3.210.0130.00316.55
7.3.200.0100.00716.31
7.3.190.0030.01816.33
7.3.180.0030.01716.46
7.3.170.0140.01016.31
7.3.160.0090.01216.26
7.3.10.0120.00616.26
7.3.00.0000.01516.56
7.2.330.0100.01316.73
7.2.320.0140.00816.69
7.2.310.0060.00916.43
7.2.300.0090.00916.69
7.2.290.0120.00616.62
7.2.130.0120.00616.85
7.2.120.0170.00016.47
7.2.110.0200.00715.65
7.2.100.0210.00715.60
7.2.90.0190.01215.63
7.2.80.0310.00915.62
7.2.70.0240.00815.79
7.2.60.0200.00715.73
7.2.50.0200.00716.02
7.2.40.0270.00615.69
7.2.30.0520.00615.80
7.2.20.0350.00615.94
7.2.10.0190.00715.84
7.2.00.0220.00815.90
7.1.250.0100.01015.27
7.1.230.0240.00713.89
7.1.220.0410.00613.97
7.1.210.0280.00013.68
7.1.200.0620.00213.92
7.1.190.0250.00613.39
7.1.180.0310.00013.81
7.1.170.0350.01214.11
7.1.160.0250.00613.76
7.1.150.0250.00614.02
7.1.140.0260.00613.99
7.1.130.0310.00313.94
7.1.120.0270.00613.93
7.1.110.0260.00313.88
7.1.100.0220.01013.93
7.1.90.0250.00413.73
7.1.80.0280.00613.48
7.1.70.0310.01013.31
7.1.60.0280.01114.10
7.1.50.0420.00813.52
7.1.40.0300.01113.78
7.1.30.0390.01313.51
7.1.20.0280.00613.63
7.1.10.0310.00313.79
7.1.00.0460.01013.67
5.6.380.0040.01114.31

preferences:
27.6 ms | 400 KiB | 5 Q