3v4l.org

run code in 300+ PHP versions simultaneously
<?php $profileSubscriptions = ['one' => false, 'two' => true]; $lookup = ['one' => 'subscription', 'two' => 'marketing']; $subscriptions = array_filter($profileSubscriptions); $lists = array_filter(array_intersect_key($lookup, $subscriptions)); var_dump($lists); $diff = array_diff_key($subscriptions, $lists); echo 'Subscriptions do not exist for ' . implode(', ', $diff);

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.0200.00316.48
8.3.50.0120.00922.12
8.3.40.0000.01518.54
8.3.30.0100.01019.11
8.3.20.0050.00320.09
8.3.10.0070.00021.60
8.3.00.0040.00419.25
8.2.180.0110.00716.50
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.23
8.2.110.0070.00321.03
8.2.100.0070.00417.75
8.2.90.0030.00619.17
8.2.80.0080.00017.97
8.2.70.0030.00717.50
8.2.60.0050.00218.04
8.2.50.0030.00518.07
8.2.40.0000.00819.88
8.2.30.0000.00818.13
8.2.20.0040.00417.57
8.2.10.0080.00018.21
8.2.00.0000.00717.64
8.1.280.0110.00725.92
8.1.270.0060.00320.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.73
8.1.230.0120.00017.42
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0060.00320.35
8.1.160.0000.00721.86
8.1.150.0040.00418.74
8.1.140.0040.00417.36
8.1.130.0000.00817.79
8.1.120.0000.00717.36
8.1.110.0070.00017.39
8.1.100.0070.00017.36
8.1.90.0040.00417.31
8.1.80.0070.00017.28
8.1.70.0000.00717.43
8.1.60.0040.00417.33
8.1.50.0050.00217.34
8.1.40.0000.00817.43
8.1.30.0030.00517.45
8.1.20.0040.00417.49
8.1.10.0000.00817.48
8.1.00.0000.00817.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00518.41
8.0.270.0040.00317.23
8.0.260.0000.00617.30
8.0.250.0030.00316.84
8.0.240.0030.00316.93
8.0.230.0030.00316.93
8.0.220.0040.00416.89
8.0.210.0070.00016.91
8.0.200.0050.00216.86
8.0.190.0040.00416.93
8.0.180.0000.00816.89
8.0.170.0000.00816.81
8.0.160.0040.00416.89
8.0.150.0030.00316.89
8.0.140.0000.00716.75
8.0.130.0050.00013.26
8.0.120.0000.00716.86
8.0.110.0050.00316.73
8.0.100.0040.00416.88
8.0.90.0070.00016.93
8.0.80.0070.00916.85
8.0.70.0040.00416.68
8.0.60.0030.00516.85
8.0.50.0000.00716.86
8.0.30.0110.01116.92
8.0.20.0060.01217.40
8.0.10.0050.00316.80
8.0.00.0070.01116.81
7.4.330.0000.00615.03
7.4.320.0030.00316.50
7.4.300.0000.00616.43
7.4.290.0090.00016.42
7.4.280.0060.00316.56
7.4.270.0070.00016.38
7.4.260.0030.00316.52
7.4.250.0000.00716.53
7.4.240.0020.00616.38
7.4.230.0030.00316.63
7.4.220.0090.00916.43
7.4.210.0000.01316.46
7.4.200.0000.00716.55
7.4.160.0090.00616.30
7.4.150.0170.00017.40
7.4.140.0130.01017.86
7.4.130.0100.00716.38
7.4.120.0060.01216.40
7.4.110.0100.01016.32
7.4.100.0070.01016.62
7.4.90.0100.00616.49
7.4.80.0100.01019.39
7.4.70.0100.00716.39
7.4.60.0060.01116.41
7.4.50.0050.00316.31
7.4.40.0100.01216.41
7.4.30.0130.00716.59
7.4.00.0050.01214.96
7.3.330.0060.00313.03
7.3.320.0110.00013.10
7.3.310.0020.00516.20
7.3.300.0000.00616.17
7.3.290.0080.00816.22
7.3.280.0070.00916.19
7.3.270.0070.01017.40
7.3.260.0080.00816.44
7.3.250.0080.01216.31
7.3.240.0100.01316.38
7.3.230.0090.01416.46
7.3.210.0100.00716.45
7.3.200.0070.01319.39
7.3.190.0080.00816.29
7.3.180.0140.00316.40
7.3.170.0040.01416.48
7.3.160.0110.00516.36
7.3.120.0060.01214.63
7.3.110.0070.01114.66
7.3.100.0070.00714.81
7.3.90.0050.00514.95
7.3.80.0000.01014.85
7.3.70.0090.00614.74
7.3.60.0090.00614.48
7.3.50.0110.00314.67
7.3.40.0030.01014.61
7.3.30.0080.00814.79
7.3.20.0090.00616.64
7.3.10.0070.00716.40
7.3.00.0060.00316.62
7.2.330.0090.00916.75
7.2.320.0090.00816.75
7.2.310.0030.01416.34
7.2.300.0050.01116.78
7.2.290.0100.00716.59
7.2.250.0030.01414.95
7.2.240.0100.01015.22
7.2.230.0110.00715.20
7.2.220.0070.00415.24
7.2.210.0120.00314.91
7.2.200.0070.01014.72
7.2.190.0040.01214.78
7.2.180.0030.01014.70
7.2.170.0000.01415.08
7.2.00.0000.01219.42
7.1.330.0040.01115.71
7.1.320.0100.00315.55
7.1.310.0040.01115.64
7.1.300.0000.00915.71
7.1.290.0000.01715.72
7.1.280.0100.00315.79
7.1.270.0070.00715.74
7.1.260.0130.00315.75
7.1.200.0030.01015.66
7.1.100.0110.01118.12
7.1.70.0000.00917.09
7.1.60.0130.01319.50
7.1.50.0240.01334.36
7.1.00.0030.07722.42
7.0.200.0030.00914.76
7.0.140.0000.04322.04
7.0.60.0070.08019.93
7.0.50.0070.03717.88
7.0.40.0000.06720.04
7.0.30.0030.05320.10
7.0.20.0330.08020.09
7.0.10.0030.04720.30
7.0.00.0070.08320.23
5.6.280.0070.06720.86
5.6.210.0100.08020.51
5.6.200.0000.04718.18
5.6.190.0070.08720.77
5.6.180.0200.05020.41
5.6.170.0230.08720.52
5.6.160.0030.04320.46
5.6.150.0000.08318.18
5.6.140.0100.07318.14
5.6.130.0000.08718.17
5.6.120.0100.08021.04
5.6.110.0000.08321.07
5.6.100.0070.07721.01
5.6.90.0070.08320.95
5.6.80.0070.06720.35
5.5.350.0200.07320.36
5.5.340.0170.07017.92
5.5.330.0100.04020.23
5.5.320.0070.07320.31
5.5.310.0270.06720.27
5.5.300.0030.07717.93
5.5.290.0000.06318.03
5.5.280.0070.07020.89
5.5.270.0100.08320.83
5.5.260.0000.09020.97
5.5.250.0100.08320.58
5.5.240.3800.04720.18
5.4.450.0330.04319.46
5.4.440.0270.04319.57
5.4.430.0370.08019.45
5.4.420.0370.06719.57
5.4.410.0200.04019.01
5.4.400.0370.05318.92
5.4.390.0270.07319.10
5.4.380.0170.08318.88
5.4.370.0230.07319.25
5.4.360.0270.05319.16
5.4.350.0200.06019.09
5.4.340.0370.04719.09
5.4.320.0130.04718.88
5.4.310.0170.04019.08
5.4.300.0200.03719.08
5.4.290.0170.04019.09
5.4.280.0130.04018.80
5.4.270.0200.04719.08
5.4.260.0170.03719.09
5.4.250.0170.04019.05
5.4.240.0170.03719.08
5.4.230.0200.03319.24
5.4.220.0230.03719.12
5.4.210.0170.03719.11
5.4.200.0270.03019.08
5.4.190.0230.03719.07
5.4.180.0170.04018.91
5.4.170.0170.04018.90
5.4.160.0200.04018.91
5.4.150.0200.03718.78
5.4.140.0200.04316.36
5.4.130.0270.02716.16
5.4.120.0230.03716.25
5.4.110.0170.03716.23
5.4.100.0170.03716.38
5.4.90.0200.03316.06
5.4.80.0300.05716.42
5.4.70.0230.04316.29
5.4.60.0270.06016.04
5.4.50.0330.06716.40
5.4.40.0300.07016.31
5.4.30.0370.04716.36
5.4.20.0300.07016.40
5.4.10.0370.06716.37
5.4.00.0430.05015.82
5.3.290.0230.03714.51
5.3.280.0170.03714.62
5.3.270.0200.03714.48
5.3.260.0170.04314.46
5.3.250.0200.03314.51
5.3.240.0130.04014.46
5.3.230.0200.03314.54
5.3.220.0100.04314.66
5.3.210.0200.03314.46
5.3.200.0130.04014.41
5.3.190.0200.03714.41
5.3.180.0130.04714.54
5.3.170.0230.07714.59
5.3.160.0270.06314.41
5.3.150.0370.04314.42
5.3.140.0300.07014.58
5.3.130.0500.06714.60
5.3.120.0500.05714.41
5.3.110.0330.07314.39
5.3.100.0270.05313.99
5.3.90.0230.05014.00
5.3.80.0370.04313.96
5.3.70.0300.06313.85
5.3.60.0300.05713.95
5.3.50.0270.04714.04
5.3.40.0270.04313.85
5.3.30.0230.06014.00
5.3.20.0330.06313.64
5.3.10.0200.04313.46
5.3.00.0300.05313.56
5.2.170.0230.05312.05
5.2.160.0230.03712.05
5.2.150.0270.04712.05
5.2.140.0170.03712.05
5.2.130.0230.03012.05
5.2.120.0230.05712.05
5.2.110.0300.03012.05
5.2.100.0230.06012.05
5.2.90.0330.05012.05
5.2.80.0230.03712.05
5.2.70.0230.04712.05
5.2.60.0300.03712.05
5.2.50.0200.06312.05
5.2.40.0200.03012.05
5.2.30.0270.04012.05
5.2.20.0230.03712.05
5.2.10.0330.04312.05
5.2.00.0200.06012.05
5.1.60.0270.04312.05
5.1.50.0200.05012.05
5.1.40.0270.02012.05
5.1.30.0230.04712.05
5.1.20.0270.02712.05
5.1.10.0300.03012.05
5.1.00.0170.03712.05
5.0.50.0200.03712.05
5.0.40.0170.02312.05
5.0.30.0100.04712.05
5.0.20.0100.04012.05
5.0.10.0170.04012.05
5.0.00.0130.05712.05
4.4.90.0070.02012.05
4.4.80.0130.03312.05
4.4.70.0170.03012.05
4.4.60.0130.03012.05
4.4.50.0130.03012.05
4.4.40.0070.05312.05
4.4.30.0100.01712.05
4.4.20.0100.02312.05
4.4.10.0100.03312.05
4.4.00.0130.05312.05
4.3.110.0130.03012.05
4.3.100.0070.02012.05
4.3.90.0130.02312.05
4.3.80.0100.04312.05
4.3.70.0100.03712.05
4.3.60.0130.03012.05
4.3.50.0070.03312.05
4.3.40.0070.04312.05
4.3.30.0070.03012.05
4.3.20.0030.02712.05
4.3.10.0070.02312.05
4.3.00.0130.03012.05

preferences:
49.62 ms | 401 KiB | 5 Q