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($allLevelIds, $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.40.0110.00718.68
8.3.30.0110.00419.00
8.3.20.0070.00020.16
8.3.10.0050.00320.41
8.3.00.0040.00419.20
8.2.170.0110.00322.96
8.2.160.0090.00620.42
8.2.150.0070.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00019.36
8.2.110.0070.00320.48
8.2.100.0040.00817.78
8.2.90.0000.00819.05
8.2.80.0070.00019.20
8.2.70.0000.00817.38
8.2.60.0080.00017.90
8.2.50.0030.00618.07
8.2.40.0050.00318.22
8.2.30.0040.00421.20
8.2.20.0000.00817.68
8.2.10.0040.00417.96
8.2.00.0050.00417.55
8.1.270.0040.00423.92
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00720.50
8.1.230.0080.00320.76
8.1.220.0090.00018.77
8.1.210.0050.00320.54
8.1.200.0090.00017.23
8.1.190.0040.00417.53
8.1.180.0040.00718.10
8.1.170.0040.00418.46
8.1.160.0040.00418.88
8.1.150.0070.00018.76
8.1.140.0060.00317.33
8.1.130.0030.00317.82
8.1.120.0050.00317.28
8.1.110.0030.00517.34
8.1.100.0030.00417.37
8.1.90.0070.00017.44
8.1.80.0040.00417.37
8.1.70.0030.00317.26
8.1.60.0000.00817.59
8.1.50.0030.00517.53
8.1.40.0050.00317.54
8.1.30.0080.00017.54
8.1.20.0050.00317.58
8.1.10.0030.00617.39
8.1.00.0060.00317.42
8.0.300.0030.00719.90
8.0.290.0040.00417.16
8.0.280.0000.00718.24
8.0.270.0030.00317.11
8.0.260.0030.00317.15
8.0.250.0070.00016.88
8.0.240.0040.00416.91
8.0.230.0050.00516.76
8.0.220.0080.00016.83
8.0.210.0050.00316.83
8.0.200.0030.00316.84
8.0.190.0040.00416.87
8.0.180.0040.00416.72
8.0.170.0040.00416.75
8.0.160.0040.00416.76
8.0.150.0030.00416.73
8.0.140.0040.00416.81
8.0.130.0050.00013.18
8.0.120.0030.00516.66
8.0.110.0040.00416.72
8.0.100.0030.00516.80
8.0.90.0020.00516.89
8.0.80.0060.01216.89
8.0.70.0050.00316.89
8.0.60.0030.00316.72
8.0.50.0070.00016.68
8.0.30.0130.00617.04
8.0.20.0120.00917.40
8.0.10.0050.00316.80
8.0.00.0060.01216.78
7.4.330.0060.00015.02
7.4.320.0030.00316.49
7.4.300.0030.00316.64
7.4.290.0000.00716.58
7.4.280.0050.00216.51
7.4.270.0030.00316.61
7.4.260.0040.00416.58
7.4.250.0050.00216.61
7.4.240.0000.00716.48
7.4.230.0060.00016.63
7.4.220.0030.01316.56
7.4.210.0160.00316.49
7.4.200.0000.00716.62
7.4.160.0160.00616.27
7.4.150.0090.01617.40
7.4.140.0080.00917.86
7.4.130.0070.01516.53
7.4.120.0080.01016.39
7.4.110.0070.01116.54
7.4.100.0080.01516.44
7.4.90.0100.00716.37
7.4.80.0030.01616.36
7.4.70.0030.01316.37
7.4.60.0030.01416.41
7.4.50.0030.00616.34
7.4.40.0060.01016.51
7.4.30.0070.01016.47
7.4.00.0040.01114.90
7.3.330.0050.00013.07
7.3.320.0020.00213.25
7.3.310.0020.00516.13
7.3.300.0070.00016.20
7.3.290.0040.01116.21
7.3.280.0070.01216.23
7.3.270.0090.00917.40
7.3.260.0080.00816.45
7.3.250.0100.01016.37
7.3.240.0070.01016.59
7.3.230.0130.00316.39
7.3.210.0120.00416.43
7.3.200.0170.00319.39
7.3.190.0080.00916.49
7.3.180.0030.01516.49
7.3.170.0090.01216.30
7.3.160.0120.00316.31
7.3.00.0090.00616.51
7.2.330.0130.00316.55
7.2.320.0190.00316.63
7.2.310.0110.00716.66
7.2.300.0080.00816.27
7.2.290.0070.01016.79
7.2.130.0100.00716.52
7.2.120.0160.00316.77
7.2.110.0080.00816.64
7.2.100.0100.01016.61
7.2.90.0110.00716.51
7.2.80.0100.00916.16
7.2.70.0090.00916.58
7.2.60.0110.00616.52
7.2.50.0130.00316.13
7.2.40.0130.00816.54
7.2.30.0120.00916.37
7.2.20.0100.01016.34
7.2.10.0090.00916.48
7.2.00.0090.00817.80
7.1.250.0100.00715.78
7.1.240.0060.00915.81
7.1.230.0100.00615.71
7.1.220.0050.00815.48
7.1.210.0070.01015.42
7.1.200.0030.01215.73
7.1.190.0160.00015.59
7.1.180.0070.01115.55
7.1.170.0100.00715.59
7.1.160.0110.00415.41
7.1.150.0130.00315.58
7.1.140.0110.00615.48
7.1.130.0160.00315.45
7.1.120.0070.00715.73
7.1.110.0120.00915.52
7.1.100.0080.00516.58
7.1.90.0070.01315.60
7.1.80.0130.00615.37
7.1.70.0070.01016.23
7.1.60.0070.01417.38
7.1.50.0100.01116.38
7.1.40.0110.00715.45
7.1.30.0120.00915.63
7.1.20.0110.00915.73
7.1.10.0110.00715.73
7.1.00.0080.04318.94
7.0.330.0060.00915.32
7.0.320.0030.01015.18
7.0.310.0060.00914.91
7.0.300.0140.00315.03
7.0.290.0140.00315.02
7.0.280.0120.00314.77
7.0.270.0100.01015.06
7.0.260.0140.00315.02
7.0.250.0100.00515.13
7.0.240.0080.01115.38
7.0.230.0120.00815.21
7.0.220.0120.00614.95
7.0.210.0110.01115.12
7.0.200.0090.00515.86
7.0.190.0160.00515.01
7.0.180.0190.00314.96
7.0.170.0180.00915.07
7.0.160.0090.01515.16
7.0.150.0070.01015.18
7.0.140.0060.04118.68
7.0.130.0180.00015.16
7.0.120.0090.00615.06
7.0.110.0130.00914.77
7.0.100.0080.01115.16
7.0.90.0180.00015.04
7.0.80.0150.01015.15
7.0.70.0170.00714.98
7.0.60.0070.02417.54
7.0.50.0070.02616.43
7.0.40.0100.02416.70
7.0.30.0130.04416.64
7.0.20.0130.02616.56
7.0.10.0060.05116.61
7.0.00.0100.04116.80
5.6.380.0100.00314.39
5.6.370.0050.01413.79
5.6.360.0060.00914.43
5.6.350.0160.00013.68
5.6.340.0110.00713.50
5.6.330.0000.01713.88
5.6.320.0060.00614.13
5.6.310.0090.01113.99
5.6.300.0090.00413.59
5.6.290.0090.00914.14
5.6.280.0000.04417.50
5.6.270.0090.00614.12
5.6.260.0060.00914.32
5.6.250.0000.01814.18
5.6.240.0080.00813.92
5.6.230.0080.01113.78
5.6.220.0070.01013.83
5.6.210.0060.03917.17
5.6.200.0110.02216.08
5.6.190.0040.02817.13
5.6.180.1420.02517.12
5.6.170.0170.04117.07
5.6.160.0060.02617.25
5.6.150.0110.03816.15
5.6.140.0020.03616.00
5.6.130.0050.03216.15
5.6.120.0100.02517.50
5.6.110.0030.04617.49
5.6.100.0050.02417.50
5.6.90.0060.05017.45
5.6.80.0080.04017.04
5.6.70.1880.02317.02
5.6.60.0060.00313.89
5.6.50.0030.00513.80
5.6.40.0000.01013.67
5.6.30.0040.00413.89
5.6.20.0050.00413.91
5.6.10.0040.00713.66
5.6.00.0040.00414.25
5.5.380.0100.00311.00
5.5.370.0060.00611.01
5.5.360.0080.00611.00
5.5.350.0070.04315.77
5.5.340.0070.02814.49
5.5.330.0050.04315.72
5.5.320.0130.03215.64
5.5.310.0170.04215.62
5.5.300.0090.04014.50
5.5.290.0080.03814.47
5.5.280.0050.02615.88
5.5.270.0080.04215.92
5.5.260.0060.04315.96
5.5.250.0070.04415.93
5.5.240.0170.04315.68
5.5.230.0000.00911.00
5.5.220.0040.00711.00
5.5.210.0000.01011.00
5.5.200.0000.00711.00
5.5.190.0030.00711.08
5.5.180.0040.00711.00
5.5.170.0020.00711.00
5.5.160.0000.01011.00
5.5.150.0040.00411.00
5.5.140.0030.00311.00
5.5.130.0000.00711.00
5.5.120.0030.00311.00
5.5.110.0040.00411.00
5.5.100.0060.00311.00
5.5.90.0000.01111.00
5.5.80.0040.00411.00
5.5.70.0040.00411.00
5.5.60.0040.00411.00
5.5.50.0000.00611.00
5.5.40.0070.00311.00
5.5.30.0030.00311.00
5.5.20.0070.00411.00
5.5.10.0060.00311.00
5.5.00.0030.00611.00
5.4.450.0190.02615.22
5.4.440.0420.02415.40
5.4.430.0220.03015.17
5.4.420.0100.02715.34
5.4.410.0070.03515.06
5.4.400.0070.03015.04
5.4.390.0100.02715.03
5.4.380.0080.02915.02
5.4.370.0140.02315.13
5.4.360.0110.02515.04
5.4.350.0050.02711.51
5.4.340.0070.02311.51
5.4.330.0000.00811.00
5.4.320.0070.02411.75
5.4.310.0070.02411.75
5.4.300.0050.02611.76
5.4.290.0070.02611.75
5.4.280.0050.02811.70
5.4.270.0040.02611.71
5.4.260.0050.02911.70
5.4.250.0050.02711.70
5.4.240.0040.03011.70
5.4.230.0080.02611.79
5.4.220.0080.02711.70
5.4.210.0040.03011.71
5.4.200.0070.02711.70
5.4.190.0070.02511.70
5.4.180.0040.02811.70
5.4.170.0040.02311.70
5.4.160.0030.02211.70
5.4.150.0030.02611.70
5.4.140.0050.02511.68
5.4.130.0050.02511.57
5.4.120.0040.02311.51
5.4.110.0050.02311.51
5.4.100.0050.02011.55
5.4.90.0060.02211.51
5.4.80.0060.02711.57
5.4.70.0080.01911.51
5.4.60.0070.02611.54
5.4.50.0040.02811.61
5.4.40.0040.02611.50
5.4.30.0040.02911.50
5.4.20.0070.02511.50
5.4.10.0050.02711.50
5.4.00.0040.02411.24
5.3.290.0100.02511.90
5.3.280.0100.02511.86
5.3.270.0040.03211.86
5.3.260.0050.03111.86
5.3.250.0050.02711.86
5.3.240.0070.02711.86
5.3.230.0060.02811.86
5.3.220.0060.02911.84
5.3.210.0060.03111.84
5.3.200.0050.02811.84
5.3.190.0060.02711.84
5.3.180.0080.02711.84
5.3.170.0050.03011.84
5.3.160.0040.02711.84
5.3.150.0070.02711.84
5.3.140.0080.02011.83
5.3.130.0060.02511.83
5.3.120.0030.02511.83
5.3.110.0070.02411.83
5.3.100.0040.02311.56
5.3.90.0050.02211.54
5.3.80.0050.02611.54
5.3.70.0060.02211.54
5.3.60.0080.02111.54
5.3.50.0070.02711.50
5.3.40.0060.02811.50
5.3.30.0040.02111.48
5.3.20.0080.02211.37
5.3.10.0090.01611.35
5.3.00.0060.02311.34
5.2.170.0060.01810.09
5.2.160.0060.01410.09
5.2.150.0040.02010.09
5.2.140.0050.01910.09
5.2.130.0070.01410.07
5.2.120.0040.01910.07
5.2.110.0040.02510.07
5.2.100.0080.02310.07
5.2.90.0040.02210.07
5.2.80.0070.02210.07
5.2.70.0080.01910.07
5.2.60.0050.02210.05
5.2.50.0070.02110.03
5.2.40.0060.01810.02
5.2.30.0060.01810.01
5.2.20.0070.02010.00
5.2.10.0040.0219.96
5.2.00.0060.0259.89
5.1.60.0040.0199.54
5.1.50.0050.0159.53
5.1.40.0060.0169.53
5.1.30.0050.0199.70
5.1.20.0040.0239.71
5.1.10.0030.0189.57
5.1.00.0060.0149.57
5.0.50.0020.0158.81
5.0.40.0030.0138.74
5.0.30.0030.0188.65
5.0.20.0060.0148.63
5.0.10.0030.0158.62
5.0.00.0060.0188.62
4.4.90.0010.0137.89
4.4.80.0030.0097.88
4.4.70.0040.0117.88
4.4.60.0020.0147.88
4.4.50.0020.0117.89
4.4.40.0050.0157.86
4.4.30.0040.0127.88
4.4.20.0020.0127.92
4.4.10.0020.0127.93
4.4.00.0020.0167.88
4.3.110.0020.0127.84
4.3.100.0020.0097.84
4.3.90.0020.0107.82
4.3.80.0020.0147.79
4.3.70.0030.0087.81
4.3.60.0020.0097.81
4.3.50.0040.0077.81
4.3.40.0010.0147.77
4.3.30.0010.0117.14
4.3.20.0030.0097.13
4.3.10.0040.0087.11
4.3.00.0030.00812.19

preferences:
61.75 ms | 400 KiB | 5 Q