3v4l.org

run code in 300+ PHP versions simultaneously
<?php $muLevelIds = []; $subjectLevelIds = [1,6,7,8]; $occLevelIds = [6,7]; var_dump(array_union($muLevelIds, $subjectLevelIds, $occLevelIds)); function array_union($muLevelIds, $subjectLevelIds, $occLevelIds) { $allLevelIds = [1,6,7,8,9]; $combined = (array_intersect($muLevelIds, $subjectLevelIds, $occLevelIds)); return array_intersect($allLevelIds, $combined); }

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.0100.01016.50
8.3.50.0130.00622.93
8.3.40.0140.00418.54
8.3.30.0030.01019.15
8.3.20.0070.00020.33
8.3.10.0080.00020.39
8.3.00.0040.00418.84
8.2.180.0070.00718.16
8.2.170.0030.01022.96
8.2.160.0090.00620.46
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0090.00619.23
8.2.110.0030.00620.52
8.2.100.0000.01217.91
8.2.90.0040.00419.08
8.2.80.0070.00019.39
8.2.70.0030.00617.38
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0070.00018.03
8.2.30.0040.00421.20
8.2.20.0050.00217.60
8.2.10.0040.00418.11
8.2.00.0080.00017.74
8.1.280.0070.01125.92
8.1.270.0050.00323.85
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00320.69
8.1.230.0000.01120.89
8.1.220.0030.00618.77
8.1.210.0040.00420.70
8.1.200.0030.00617.22
8.1.190.0080.00017.41
8.1.180.0060.00318.10
8.1.170.0090.00018.59
8.1.160.0050.00218.69
8.1.150.0040.00418.87
8.1.140.0040.00417.25
8.1.130.0070.00017.77
8.1.120.0000.00717.39
8.1.110.0040.00417.30
8.1.100.0000.00717.40
8.1.90.0040.00417.42
8.1.80.0000.00817.43
8.1.70.0030.00317.37
8.1.60.0030.00617.55
8.1.50.0040.00417.54
8.1.40.0050.00317.52
8.1.30.0080.00017.58
8.1.20.0000.00717.53
8.1.10.0070.00017.47
8.1.00.0000.00717.23
8.0.300.0060.00319.85
8.0.290.0050.00217.16
8.0.280.0070.00018.39
8.0.270.0070.00017.25
8.0.260.0000.00617.23
8.0.250.0000.00616.78
8.0.240.0040.00416.76
8.0.230.0040.00416.89
8.0.220.0050.00316.83
8.0.210.0000.00716.72
8.0.200.0000.00616.93
8.0.190.0000.00716.80
8.0.180.0000.00716.83
8.0.170.0020.00516.81
8.0.160.0030.00616.86
8.0.150.0000.00716.77
8.0.140.0080.00016.67
8.0.130.0050.00013.23
8.0.120.0030.00516.68
8.0.110.0040.00416.89
8.0.100.0030.00316.82
8.0.90.0030.00516.71
8.0.80.0060.01416.88
8.0.70.0050.00316.80
8.0.60.0000.00716.78
8.0.50.0000.00716.60
8.0.30.0090.01217.06
8.0.20.0090.00917.40
8.0.10.0040.00416.83
8.0.00.0120.01016.70
7.4.330.0050.00015.03
7.4.320.0030.00316.52
7.4.300.0040.00416.55
7.4.290.0080.00016.55
7.4.280.0040.00416.38
7.4.270.0030.00316.39
7.4.260.0080.00016.61
7.4.250.0050.00216.55
7.4.240.0020.00516.46
7.4.230.0000.00716.30
7.4.220.0070.01016.46
7.4.210.0060.00916.59
7.4.200.0070.00016.71
7.4.160.0080.01416.52
7.4.150.0140.01017.40
7.4.140.0110.00917.86
7.4.130.0110.00616.45
7.4.120.0070.01016.43
7.4.110.0200.00316.63
7.4.100.0060.01216.66
7.4.90.0110.00616.59
7.4.80.0030.01416.45
7.4.70.0090.00916.46
7.4.60.0130.00316.48
7.4.50.0030.00616.43
7.4.40.0080.00816.50
7.4.30.0080.00816.64
7.4.00.0090.00914.75
7.3.330.0000.00613.05
7.3.320.0000.00613.18
7.3.310.0000.00816.39
7.3.300.0020.00516.11
7.3.290.0070.00916.24
7.3.280.0120.00516.25
7.3.270.0100.00717.40
7.3.260.0100.01316.30
7.3.250.0060.01316.47
7.3.240.0090.00816.25
7.3.230.0170.00016.39
7.3.210.0030.01216.09
7.3.200.0100.01419.39
7.3.190.0120.00916.27
7.3.180.0110.01116.25
7.3.170.0090.00816.52
7.3.160.0120.00316.47
7.2.330.0120.00616.40
7.2.320.0130.00916.58
7.2.310.0000.01816.58
7.2.300.0080.00916.67
7.2.290.0030.01416.29
7.1.70.0030.00917.19
7.1.60.0160.00919.34
7.1.50.0030.01516.84
7.1.00.0030.07722.28
7.0.200.0080.00316.68
7.0.140.0000.07022.02
7.0.60.0000.09019.96
7.0.50.0170.03717.87
7.0.40.0070.05320.13
7.0.30.0230.05020.34
7.0.20.0200.08020.13
7.0.10.0030.08320.08
7.0.00.0070.03720.06
5.6.280.0070.07720.78
5.6.210.0030.08720.52
5.6.200.0130.07718.18
5.6.190.0200.07720.41
5.6.180.0000.04320.64
5.6.170.0230.03320.57
5.6.160.0100.08020.44
5.6.150.0100.07318.20
5.6.140.0030.05318.29
5.6.130.0170.07718.14
5.6.120.0100.06721.02
5.6.110.0030.09021.12
5.6.100.0030.08020.98
5.6.90.0070.05320.98
5.6.80.0130.07720.53
5.5.350.0130.07320.38
5.5.340.0070.07017.95
5.5.330.0030.04320.37
5.5.320.0170.05020.30
5.5.310.0170.04720.24
5.5.300.0000.05717.95
5.5.290.0030.06717.94
5.5.280.0000.04720.77
5.5.270.0130.08020.76
5.5.260.0100.07720.77
5.5.250.0130.07020.50
5.5.240.0270.03320.37
5.4.450.0370.04019.55
5.4.440.0430.04719.43
5.4.430.0430.04319.27
5.4.420.0270.04719.68
5.4.410.0170.04719.57
5.4.400.0130.07019.12
5.4.390.0130.10319.25
5.4.380.0130.05019.11
5.4.370.0070.05319.04
5.4.360.0130.04719.11
5.4.350.0090.03812.02
5.4.340.0060.04112.02
5.4.320.0060.04812.50
5.4.310.0090.04612.50
5.4.300.0080.04412.50
5.4.290.0100.04512.50
5.4.280.0060.05212.40
5.4.270.0070.04912.40
5.4.260.0160.07312.40
5.4.250.0040.05112.40
5.4.240.0070.04312.40
5.4.230.0050.04812.39
5.4.220.0080.04012.39
5.4.210.0080.03812.39
5.4.200.0180.06412.39
5.4.190.0100.03912.39
5.4.180.0070.04312.38
5.4.170.0090.04612.39
5.4.160.0090.03912.39
5.4.150.0050.04312.38
5.4.140.0070.03912.07
5.4.130.0060.03712.06
5.4.120.0060.03912.02
5.4.110.0070.03612.01
5.4.100.0070.04212.01
5.4.90.0060.04512.01
5.4.80.0090.04312.02
5.4.70.0070.04112.01
5.4.60.0110.03412.00
5.4.50.0090.04412.01
5.4.40.0080.03912.00
5.4.30.0080.03512.00
5.4.20.0100.04611.99
5.4.10.0100.05212.00
5.4.00.0040.05011.48
5.3.290.0100.04712.80
5.3.280.0080.04612.71
5.3.270.0100.04912.73
5.3.260.0070.05212.72
5.3.250.0070.05212.72
5.3.240.0110.04812.72
5.3.230.0120.05012.71
5.3.220.0140.04912.68
5.3.210.0090.05812.68
5.3.200.0070.04612.68
5.3.190.0060.04912.68
5.3.180.0100.04512.67
5.3.170.0090.04812.67
5.3.160.0080.05112.67
5.3.150.0110.04812.67
5.3.140.0150.04312.66
5.3.130.0110.05312.66
5.3.120.0090.04512.66
5.3.110.0120.04712.66
5.3.100.0110.04312.12
5.3.90.0050.04612.08
5.3.80.0110.04712.08
5.3.70.0100.04612.07
5.3.60.0120.06212.07
5.3.50.0110.05612.00
5.3.40.0050.05212.00
5.3.30.0080.04811.95
5.3.20.0070.05311.72
5.3.10.0060.04111.70
5.3.00.0070.03711.68
5.2.170.0060.0329.18
5.2.160.0090.0309.18
5.2.150.0060.0319.18
5.2.140.0100.0329.18
5.2.130.0090.0399.14
5.2.120.0060.0529.14
5.2.110.0060.0449.14
5.2.100.0080.0409.14
5.2.90.0060.0379.14
5.2.80.0100.0359.14
5.2.70.0100.0459.14
5.2.60.0080.0409.09
5.2.50.0100.0419.05
5.2.40.0080.0459.04
5.2.30.0070.0399.01
5.2.20.0060.0309.00
5.2.10.0090.0278.93
5.2.00.0070.0378.79
5.1.60.0030.0338.06
5.1.50.0040.0328.06
5.1.40.0060.0358.04
5.1.30.0060.0298.39
5.1.20.0070.0268.42
5.1.10.0070.0378.14
5.1.00.0080.0268.14
5.0.50.0020.0246.62
5.0.40.0020.0266.48
5.0.30.0070.0336.29
5.0.20.0060.0226.26
5.0.10.0070.0226.23
5.0.00.0090.0376.23
4.4.90.0040.0214.78
4.4.80.0040.0214.75
4.4.70.0070.0264.75
4.4.60.0010.0224.75
4.4.50.0040.0214.77
4.4.40.0040.0314.71
4.4.30.0020.0214.76
4.4.20.0040.0204.84
4.4.10.0050.0154.85
4.4.00.0010.0274.75
4.3.110.0040.0214.67
4.3.100.0040.0204.67
4.3.90.0060.0174.64
4.3.80.0030.0314.59
4.3.70.0020.0184.63
4.3.60.0030.0164.63
4.3.50.0020.0194.63
4.3.40.0050.0274.54
4.3.30.0050.0193.29
4.3.20.0050.0183.26
4.3.10.0030.0203.22
4.3.00.0170.01313.38

preferences:
55.54 ms | 401 KiB | 5 Q