3v4l.org

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

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.0140.00316.50
8.3.50.0120.01021.99
8.3.40.0110.00318.54
8.3.30.0100.00318.99
8.3.20.0040.00420.26
8.3.10.0040.00421.60
8.3.00.0040.00419.36
8.2.180.0040.01118.16
8.2.170.0070.00722.96
8.2.160.0130.00020.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00319.36
8.2.110.0090.00021.04
8.2.100.0060.00619.51
8.2.90.0040.00419.08
8.2.80.0030.00517.97
8.2.70.0090.00017.35
8.2.60.0050.00317.77
8.2.50.0040.00418.07
8.2.40.0040.00420.07
8.2.30.0000.00818.02
8.2.20.0000.00717.73
8.2.10.0040.00418.10
8.2.00.0000.00717.66
8.1.280.0100.00725.92
8.1.270.0030.00618.92
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00022.55
8.1.230.0060.00617.42
8.1.220.0000.00817.79
8.1.210.0090.00018.77
8.1.200.0060.00317.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0030.00620.43
8.1.160.0000.00821.98
8.1.150.0070.00018.76
8.1.140.0070.00017.25
8.1.130.0000.00817.77
8.1.120.0000.00717.44
8.1.110.0050.00217.37
8.1.100.0000.00717.39
8.1.90.0000.00717.38
8.1.80.0030.00417.34
8.1.70.0050.00317.28
8.1.60.0000.00817.37
8.1.50.0040.00417.45
8.1.40.0080.00017.37
8.1.30.0040.00417.57
8.1.20.0080.00017.55
8.1.10.0040.00417.44
8.1.00.0000.00917.41
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0040.00318.42
8.0.270.0000.00717.24
8.0.260.0060.00017.23
8.0.250.0030.00316.97
8.0.240.0070.00016.95
8.0.230.0000.00716.84
8.0.220.0030.00316.86
8.0.210.0000.00716.85
8.0.200.0000.00716.98
8.0.190.0080.00016.80
8.0.180.0000.00716.95
8.0.170.0040.00416.80
8.0.160.0000.00816.86
8.0.150.0040.00416.72
8.0.140.0000.00816.88
8.0.130.0000.00513.24
8.0.120.0050.00316.81
8.0.110.0050.00316.76
8.0.100.0040.00416.64
8.0.90.0000.00716.62
8.0.80.0120.00416.79
8.0.70.0070.00016.80
8.0.60.0080.00016.88
8.0.50.0040.00416.68
8.0.30.0150.00917.05
8.0.20.0090.01017.40
8.0.10.0050.00216.96
8.0.00.0120.00816.74
7.4.330.0030.00315.03
7.4.320.0060.00016.52
7.4.300.0030.00316.33
7.4.290.0090.00016.45
7.4.280.0030.00516.49
7.4.270.0040.00416.46
7.4.260.0030.00316.31
7.4.250.0000.00816.44
7.4.240.0040.00316.47
7.4.230.0030.00316.62
7.4.220.0090.00916.49
7.4.210.0080.00616.47
7.4.200.0000.00716.50
7.4.160.0090.00616.44
7.4.150.0170.00017.40
7.4.140.0090.01417.86
7.4.130.0100.00916.34
7.4.120.0130.00516.37
7.4.110.0120.00616.53
7.4.100.0100.01016.36
7.4.90.0070.01616.51
7.4.80.0160.00019.39
7.4.70.0130.00316.32
7.4.60.0060.01116.51
7.4.50.0040.00416.54
7.4.40.0190.00616.40
7.4.30.0090.01216.42
7.4.00.0000.01814.80
7.3.330.0050.00313.02
7.3.320.0150.00012.94
7.3.310.0000.00716.28
7.3.300.0030.00316.24
7.3.290.0080.00816.19
7.3.280.0090.00716.17
7.3.270.0160.00017.40
7.3.260.0140.00416.63
7.3.250.0060.01116.38
7.3.240.0030.01416.58
7.3.230.0190.00316.39
7.3.210.0080.00816.43
7.3.200.0070.01119.39
7.3.190.0120.00916.18
7.3.180.0030.01316.52
7.3.170.0140.00516.34
7.3.160.0040.01316.36
7.2.330.0060.01216.50
7.2.320.0030.01316.46
7.2.310.0090.01116.71
7.2.300.0060.01116.74
7.2.290.0100.00716.50
7.2.60.0030.00716.96
7.1.200.0030.00915.41
7.1.70.0000.00717.07
7.1.60.0100.01419.50
7.1.50.0140.01016.93
7.1.00.0030.07722.25
7.0.200.0090.00314.86
7.0.140.0030.05022.18
7.0.110.0700.06020.03
7.0.100.0500.08719.92
7.0.90.0470.06020.01
7.0.80.0470.04719.84
7.0.70.0500.08320.02
7.0.60.0500.06319.64
7.0.50.0500.07019.82
7.0.40.0030.08319.88
7.0.30.0070.08019.78
7.0.20.0100.07019.78
7.0.10.0000.08319.83
7.0.00.0100.08019.84
5.6.280.0000.09320.89
5.6.260.0130.07320.50
5.6.250.0070.07720.61
5.6.240.0070.08320.71
5.6.230.0130.07320.55
5.6.220.0030.04020.84
5.6.210.0000.07720.71
5.6.200.0100.07720.65
5.6.190.0030.05320.55
5.6.180.0100.04320.61
5.6.170.0070.07320.62
5.6.160.0070.07020.65
5.6.150.0000.05320.65
5.6.140.0070.07720.63
5.6.130.0100.06720.85
5.6.120.0130.08020.55
5.6.110.0070.08020.66
5.6.100.0030.08720.68
5.6.90.0070.05720.59
5.6.80.0030.06019.96
5.6.70.0070.07319.99
5.6.60.0100.07019.93
5.6.50.0070.08020.09
5.6.40.0000.08719.93
5.6.30.0070.08019.91
5.6.20.0100.07319.99
5.6.10.0100.07319.91
5.6.00.0070.08319.97
5.5.380.0130.06717.63
5.5.370.0030.06017.53
5.5.360.0000.08017.45
5.5.350.0100.07717.54
5.5.340.0030.08018.03
5.5.330.0030.06317.85
5.5.320.0030.07318.01
5.5.310.0070.07718.25
5.5.300.0070.07317.99
5.5.290.0100.07318.11
5.5.280.0100.07717.85
5.5.270.0100.04017.74
5.5.260.0130.06718.12
5.5.250.0130.07317.91
5.5.240.0100.07717.52
5.5.230.0030.06317.22
5.5.220.0100.07017.13
5.5.210.0070.07317.40
5.5.200.0070.08017.36
5.5.190.0170.06317.12
5.5.180.0030.04317.33
5.5.160.0070.08317.52
5.5.150.0230.06317.52
5.5.140.0030.05317.19
5.5.130.0100.07017.51
5.5.120.0100.07017.46
5.5.110.0070.08017.48
5.5.100.0070.07717.36
5.5.90.0070.07017.35
5.5.80.0100.07717.38
5.5.70.0000.08717.39
5.5.60.0070.07717.49
5.5.50.0130.06017.22
5.5.40.0000.08317.34
5.5.30.0000.07017.13
5.5.20.0100.06717.24
5.5.10.0030.08017.36
5.5.00.0070.08017.24
5.4.450.0070.08019.25
5.4.440.0100.07319.34
5.4.430.0200.06019.32
5.4.420.0130.04019.48
5.4.410.0000.05719.22
5.4.400.0100.07019.17
5.4.390.0030.07319.00
5.4.380.0170.03318.98
5.4.370.0070.07318.95
5.4.360.0030.08319.07
5.4.350.0100.04319.00
5.4.340.0000.07319.16
5.4.320.0000.08319.18
5.4.310.0000.09019.16
5.4.300.0030.08319.27
5.4.290.0030.07019.18
5.4.280.0070.07318.93
5.4.270.0070.06719.01
5.4.260.0170.03319.03
5.4.250.0030.06719.09
5.4.240.0130.04019.15
5.4.230.0070.05019.07
5.4.220.0000.08019.11
5.4.210.0070.05019.07
5.4.200.0070.07718.92
5.4.190.0100.06718.94
5.4.180.0100.07319.17
5.4.170.0030.06019.26
5.4.160.0070.03718.96
5.4.150.0100.07319.00
5.4.140.0030.06016.57
5.4.130.0100.06316.18
5.4.120.0070.05716.34
5.4.110.0030.03716.51
5.4.100.0130.06316.41
5.4.90.0100.06316.38
5.4.80.0030.07316.51
5.4.70.0030.04016.49
5.4.60.0030.04016.16
5.4.50.0070.07316.50
5.4.40.0030.03716.41
5.4.30.0030.03316.25
5.4.20.0000.03716.34
5.4.10.0030.03716.34
5.4.00.0030.03315.70
5.3.290.0100.04314.53
5.3.280.0030.07314.53
5.3.270.0070.04714.56
5.3.260.0130.05314.71
5.3.250.0000.07314.49
5.3.240.0030.07014.55
5.3.230.0000.08314.66
5.3.220.0070.06714.63
5.3.210.0130.06014.44
5.3.200.0100.06314.42
5.3.190.0100.07314.43
5.3.180.0100.06014.59
5.3.170.0030.06014.43
5.3.160.0070.07714.46
5.3.150.0000.04014.35
5.3.140.0070.03314.44
5.3.130.0030.03714.45
5.3.120.0000.04014.54
5.3.110.0070.03714.48
5.3.100.0000.04313.98
5.3.90.0030.03314.12
5.3.80.0030.03314.13
5.3.70.0070.03013.95
5.3.60.0000.05713.95
5.3.50.0070.03013.83
5.3.40.0070.04013.79
5.3.30.0070.06713.85
5.3.20.0100.05013.57
5.3.10.0070.03313.66
5.3.00.0100.03313.46
5.2.170.0000.03012.13
5.2.160.0030.02712.13
5.2.150.0030.06312.13
5.2.140.0070.04012.13
5.2.130.0000.03012.13
5.2.120.0000.02712.13
5.2.110.0030.03312.13
5.2.100.0000.03012.13
5.2.90.0000.05012.13
5.2.80.0000.03312.13
5.2.70.0100.02312.13
5.2.60.0000.05012.13
5.2.50.0030.02712.13
5.2.40.0030.03012.13
5.2.30.0030.02712.13
5.2.20.0000.03012.13
5.2.10.0070.02312.13
5.2.00.0070.02712.13
5.1.60.0100.01712.13
5.1.50.0030.02312.13
5.1.40.0030.02312.13
5.1.30.0030.02312.13
5.1.20.0000.02712.13
5.1.10.0000.02712.13
5.1.00.0000.02712.13
5.0.50.0000.02312.13
5.0.40.0000.02012.13
5.0.30.0070.02712.13
5.0.20.0070.01712.13
5.0.10.0030.01712.13
5.0.00.0000.03012.13
4.4.90.0030.01312.13
4.4.80.0000.01712.13
4.4.70.0000.01712.13
4.4.60.0000.02012.13
4.4.50.0000.01712.13
4.4.40.0000.02712.13
4.4.30.0000.02312.13
4.4.20.0000.02312.13
4.4.10.0030.01312.13
4.4.00.0000.02312.13
4.3.110.0070.01012.13
4.3.100.0000.01712.13
4.3.90.0070.01012.13
4.3.80.0000.02312.13
4.3.70.0000.01312.13
4.3.60.0000.01312.13
4.3.50.0000.01712.13
4.3.40.0030.02012.13
4.3.30.0000.01312.13
4.3.20.0030.01312.13
4.3.10.0000.01712.13
4.3.00.0000.01312.13

preferences:
50.1 ms | 401 KiB | 5 Q