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)
5.6.80.0100.05020.41
5.5.240.0070.07720.25
5.4.400.0330.06718.67
5.4.390.0470.05318.84
5.4.380.0300.05718.81
5.4.370.0400.05718.71
5.4.360.0200.07318.80
5.4.350.0330.05318.59
5.4.340.0370.05018.72
5.4.320.0400.05318.78
5.4.310.0270.05718.79
5.4.300.0470.06718.72
5.4.290.0530.06318.56
5.4.280.0570.05718.62
5.4.270.0300.06018.76
5.4.260.0430.05018.83
5.4.250.0330.06018.62
5.4.240.0330.04718.55
5.4.230.0770.06718.82
5.4.220.0500.05318.78
5.4.210.0400.07318.75
5.4.200.0470.07016.78
5.4.190.0330.06318.73
5.4.180.0170.05318.79
5.4.170.1770.05318.76
5.4.160.0470.04718.57
5.4.150.0300.06018.46
5.4.140.0330.05316.27
5.4.130.0830.05016.29
5.4.120.0570.07016.19
5.4.110.0230.06016.17
5.4.100.0500.04316.44
5.4.90.0600.05716.28
5.4.80.0500.05016.24
5.4.70.0600.06316.18
5.4.60.0570.06016.23
5.4.50.0430.04716.43
5.4.40.0430.06016.20
5.4.30.0430.04316.13
5.4.20.0230.06016.25
5.4.10.0470.04716.15
5.4.00.0300.06015.73
5.3.290.0530.08014.68
5.3.280.0230.05714.60
5.3.270.0500.05314.59
5.3.260.0370.05714.50
5.3.250.0430.06714.57
5.3.240.0270.07314.61
5.3.230.0330.07014.54
5.3.220.0430.07314.46
5.3.210.0500.06314.60
5.3.200.0370.05314.66
5.3.190.0430.05714.46
5.3.180.0370.04714.55
5.3.170.0500.05014.53
5.3.160.0370.07014.58
5.3.150.0370.07314.56
5.3.140.0470.04314.54
5.3.130.0400.06314.55
5.3.120.0430.07014.60
5.3.110.0400.06714.51
5.3.100.0370.05014.04
5.3.90.0330.05314.03
5.3.80.0570.05313.93
5.3.70.0430.06313.93
5.3.60.0470.05013.98
5.3.50.0430.04713.86
5.3.40.0470.04314.04
5.3.30.0500.05013.90
5.3.20.0200.05713.67
5.3.10.0270.05013.66
5.3.00.0230.05013.62
5.2.170.0170.05011.11
5.2.160.0170.04711.09
5.2.150.0130.05011.15
5.2.140.0330.03711.29
5.2.130.0270.04011.05
5.2.120.0300.02711.13
5.2.110.0270.03311.08
5.2.100.0230.03711.14
5.2.90.0270.04011.07
5.2.80.0130.05011.13
5.2.70.0270.04011.16
5.2.60.0130.05310.96
5.2.50.0300.03711.18
5.2.40.0130.05710.94
5.2.30.0200.04310.94
5.2.20.0230.04311.02
5.2.10.0270.04710.90
5.2.00.0170.04010.87
5.1.60.0230.02310.02
5.1.50.0230.04710.02
5.1.40.0230.0279.96
5.1.30.0170.03310.33
5.1.20.0130.03710.38
5.1.10.0170.03310.14
5.1.00.0100.04710.08
5.0.50.0070.0378.62
5.0.40.0070.0408.42
5.0.30.0030.0538.33
5.0.20.0170.0238.21
5.0.10.0070.0378.16
5.0.00.0100.0438.23
4.4.90.0100.0305.88
4.4.80.0100.0205.88
4.4.70.0200.0205.88
4.4.60.0030.0305.90
4.4.50.0130.0175.88
4.4.40.0270.0405.91
4.4.30.0170.0135.81
4.4.20.0030.0275.96
4.4.10.0030.0305.96
4.4.00.0130.0505.93
4.3.110.0100.0305.80
4.3.100.0200.0205.75
4.3.90.0100.0205.89
4.3.80.0100.0375.80
4.3.70.0270.0235.82
4.3.60.0100.0205.80
4.3.50.0030.0305.86
4.3.40.0070.0335.73
4.3.30.0070.0305.38
4.3.20.0030.0305.38
4.3.10.0030.0305.38
4.3.00.0030.0206.95

preferences:
149.21 ms | 1394 KiB | 7 Q