3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits_arr = [ ['id' => 213, 'fruit' => 'banana'], ['id' => 438, 'fruit' => 'apple'], ['id' => 154, 'fruit' => 'peach'] ]; $ids_arr = [213, 154]; var_export(array_intersect_key(array_column($fruits_arr, null, "id"), array_flip($ids_arr)));

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.0130.00618.29
8.3.50.0120.00621.01
8.3.40.0110.00718.54
8.3.30.0120.00318.59
8.3.20.0000.00721.98
8.3.10.0080.00022.15
8.3.00.0080.00023.53
8.2.180.0150.00016.32
8.2.170.0040.01122.96
8.2.160.0100.00320.09
8.2.150.0000.00924.18
8.2.140.0000.00824.66
8.2.130.0130.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00622.16
8.2.100.0040.00819.40
8.2.90.0080.00017.84
8.2.80.0090.00019.03
8.2.70.0080.00017.93
8.2.60.0000.00817.50
8.2.50.0040.00417.55
8.2.40.0060.00319.35
8.2.30.0000.00819.29
8.2.20.0050.00217.90
8.2.10.0000.00719.05
8.2.00.0060.00319.16
8.1.280.0070.00725.92
8.1.270.0040.00423.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.67
8.1.230.0110.00020.96
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0150.00016.88
8.1.180.0000.00722.18
8.1.170.0040.00417.69
8.1.160.0040.00418.82
8.1.150.0000.00718.76
8.1.140.0050.00222.15
8.1.130.0030.00320.08
8.1.120.0050.00517.43
8.1.110.0040.00417.28
8.1.100.0000.00717.34
8.1.90.0040.00417.29
8.1.80.0040.00417.40
8.1.70.0050.00217.38
8.1.60.0030.00517.41
8.1.50.0040.00417.46
8.1.40.0030.00617.40
8.1.30.0040.00417.52
8.1.20.0070.00417.48
8.1.10.0020.00517.43
8.1.00.0030.00517.27
8.0.300.0050.00320.03
8.0.290.0000.00816.63
8.0.280.0000.00717.94
8.0.270.0040.00417.86
8.0.260.0040.00419.99
8.0.250.0000.00916.90
8.0.240.0080.00316.83
8.0.230.0000.00716.75
8.0.220.0030.00316.83
8.0.210.0030.00316.73
8.0.200.0050.00216.89
8.0.190.0000.00716.94
8.0.180.0030.00716.83
8.0.170.0030.00516.86
8.0.160.0030.00516.85
8.0.150.0000.00816.73
8.0.140.0050.00316.68
8.0.130.0030.00313.21
8.0.120.0040.00416.82
8.0.110.0000.00716.87
8.0.100.0000.00716.72
8.0.90.0030.00616.84
8.0.80.0110.00416.78
8.0.70.0040.00416.85
8.0.60.0000.00716.76
8.0.50.0050.00216.69
8.0.30.0110.00816.83
8.0.20.0060.01116.83
8.0.10.0070.00016.72
8.0.00.0080.01016.67
7.4.330.0030.00315.55
7.4.320.0030.00316.40
7.4.300.0060.00016.35
7.4.290.0070.00016.55
7.4.280.0050.00316.52
7.4.270.0000.00716.52
7.4.260.0000.00716.47
7.4.250.0100.00016.50
7.4.240.0040.00416.53
7.4.230.0060.00016.27
7.4.220.0000.00716.53
7.4.210.0020.01216.61
7.4.200.0070.00016.53
7.4.140.0070.01117.86
7.4.130.0060.01816.30
7.4.120.0150.00316.34
7.4.110.0150.00316.49
7.4.100.0090.00916.39
7.4.90.0160.00016.46
7.4.80.0070.01119.39
7.4.70.0060.01516.42
7.4.60.0090.00716.49
7.4.50.0070.00416.25
7.4.40.0120.00916.60
7.4.00.0120.00014.81
7.3.330.0030.00313.07
7.3.320.0050.00013.01
7.3.310.0040.00416.23
7.3.300.0060.00016.17
7.3.290.0030.00316.13
7.3.280.0040.01116.23
7.3.260.0070.01116.37
7.3.240.0120.00716.23
7.3.230.0070.01716.05
7.3.210.0130.00316.20
7.3.200.0190.00316.09
7.3.190.0060.01315.97
7.3.180.0070.00816.21
7.3.170.0100.01116.14
7.3.160.0080.00816.20
7.3.70.0090.00914.69
7.3.60.0140.00714.54
7.3.50.0120.00314.70
7.3.40.0120.00314.26
7.3.30.0110.00414.76
7.3.20.0090.00516.44
7.3.10.0040.01116.16
7.3.00.0080.00716.38
7.2.330.0070.01016.45
7.2.320.0090.00916.16
7.2.310.0060.01116.25
7.2.300.0040.01416.21
7.2.290.0100.00616.23
7.2.200.0130.00014.91
7.2.190.0080.00814.73
7.2.180.0110.00014.84
7.2.170.0040.00714.92
7.2.160.0080.00614.80
7.2.150.0080.00816.67
7.2.140.0100.00716.63
7.2.130.0090.00616.86
7.2.120.0070.00716.73
7.2.110.0130.00916.79
7.2.100.0090.00616.77
7.2.90.0080.00416.43
7.2.80.0190.00316.86
7.2.70.0070.00716.55
7.2.60.0080.00416.76
7.2.50.0040.00816.59
7.2.40.0060.00616.62
7.2.30.0090.00316.58
7.2.20.0090.00316.67
7.2.10.0070.00816.78
7.2.00.0040.01116.55
7.1.300.0060.01015.75
7.1.290.0030.00915.82
7.1.280.0060.00615.53
7.1.270.0120.00615.83
7.1.260.0060.00615.89
7.1.250.0070.00715.45

preferences:
30.93 ms | 401 KiB | 5 Q