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 $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.70.0150.00616.50
8.3.60.0070.01316.50
8.3.50.0100.01022.80
8.3.40.0140.00318.67
8.3.30.0090.00618.92
8.3.20.0080.00020.34
8.3.10.0040.00420.39
8.3.00.0080.00020.93
8.2.180.0110.00718.29
8.2.170.0160.00622.96
8.2.160.0100.00320.44
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00519.36
8.2.110.0100.00020.53
8.2.100.0070.00417.78
8.2.90.0040.00419.23
8.2.80.0000.00719.46
8.2.70.0040.00417.50
8.2.60.0080.00017.92
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0050.00221.09
8.2.20.0040.00417.59
8.2.10.0040.00418.09
8.2.00.0050.00317.59
8.1.280.0070.01125.92
8.1.270.0030.00623.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00322.06
8.1.230.0040.00822.72
8.1.220.0000.00918.77
8.1.210.0040.00418.77
8.1.200.0080.00417.22
8.1.190.0000.00717.53
8.1.180.0030.00618.10
8.1.170.0080.00018.57
8.1.160.0040.00418.84
8.1.150.0040.00418.81
8.1.140.0040.00417.42
8.1.130.0030.00517.81
8.1.120.0050.00317.38
8.1.110.0050.00317.26
8.1.100.0000.00717.38
8.1.90.0000.00717.45
8.1.80.0080.00017.36
8.1.70.0000.00717.24
8.1.60.0000.00817.54
8.1.50.0050.00317.50
8.1.40.0030.00617.55
8.1.30.0000.00817.64
8.1.20.0040.00417.64
8.1.10.0020.00517.51
8.1.00.0000.00717.25
8.0.300.0000.00719.60
8.0.290.0040.00417.04
8.0.280.0000.00718.37
8.0.270.0030.00317.09
8.0.260.0060.00017.19
8.0.250.0070.00016.92
8.0.240.0080.00016.87
8.0.230.0060.00316.90
8.0.220.0040.00416.69
8.0.210.0030.00316.72
8.0.200.0000.00616.84
8.0.190.0030.00316.91
8.0.180.0000.00716.90
8.0.170.0040.00416.85
8.0.160.0030.00316.85
8.0.150.0000.00816.72
8.0.140.0090.00016.78
8.0.130.0030.00313.29
8.0.120.0000.00916.68
8.0.110.0040.00416.87
8.0.100.0040.00416.89
8.0.90.0000.00716.78
8.0.80.0130.01016.77
8.0.70.0000.00716.72
8.0.60.0000.00716.80
8.0.50.0000.00816.81
8.0.30.0130.00916.97
8.0.20.0140.00717.40
8.0.10.0000.00716.75
8.0.00.0120.00816.90
7.4.330.0030.00315.02
7.4.320.0030.00316.54
7.4.300.0020.00516.48
7.4.290.0030.00316.41
7.4.280.0070.00016.50
7.4.270.0030.00316.53
7.4.260.0080.00016.39
7.4.250.0040.00416.54
7.4.240.0020.00516.49
7.4.230.0030.00316.59
7.4.220.0060.01616.67
7.4.210.0090.01116.54
7.4.200.0030.00316.57
7.4.160.0190.00416.51
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0120.00616.35
7.4.120.0120.00616.42
7.4.110.0120.01316.45
7.4.100.0080.01116.63
7.4.90.0030.01316.45
7.4.80.0080.00816.27
7.4.70.0070.01316.52
7.4.60.0120.00616.44
7.4.50.0000.00816.42
7.4.40.0060.01216.50
7.4.30.0070.01016.68
7.4.00.0080.00514.72
7.3.330.0060.00013.20
7.3.320.0060.00013.07
7.3.310.0080.00016.21
7.3.300.0000.00616.09
7.3.290.0080.00716.24
7.3.280.0030.01216.24
7.3.270.0120.01217.40
7.3.260.0090.00916.19
7.3.250.0120.00816.19
7.3.240.0140.00316.57
7.3.230.0120.00616.41
7.3.210.0130.00316.45
7.3.200.0170.00019.39
7.3.190.0110.00616.41
7.3.180.0100.00516.48
7.3.170.0100.00716.27
7.3.160.0120.00416.16
7.3.120.0100.00714.56
7.3.110.0040.01414.95
7.3.100.0060.00614.51
7.3.90.0090.00614.90
7.3.80.0060.00614.64
7.3.70.0000.01314.63
7.3.60.0000.01114.50
7.3.50.0070.00714.70
7.3.40.0070.00714.80
7.3.30.0090.00614.86
7.3.20.0090.00316.29
7.3.10.0060.00616.51
7.3.00.0070.01016.22
7.2.330.0030.01316.68
7.2.320.0100.01016.57
7.2.310.0110.01116.40
7.2.300.0090.00916.50
7.2.290.0030.01416.47
7.2.250.0060.01215.11
7.2.240.0030.01314.70
7.2.230.0100.00714.80
7.2.220.0120.00014.80
7.2.210.0030.01014.97
7.2.200.0040.00714.83
7.2.190.0060.00914.77
7.2.180.0000.01114.80
7.2.170.0000.00915.04
7.2.00.0000.01119.32
7.1.330.0030.01315.61
7.1.320.0030.01215.55
7.1.310.0000.01416.02
7.1.300.0060.01015.54
7.1.290.0060.00615.65
7.1.280.0110.00415.41
7.1.270.0000.01415.61
7.1.260.0030.00715.61
7.1.100.0120.00318.35
7.1.70.0060.00317.19
7.1.60.0100.01419.34
7.1.50.0040.01916.96
7.1.00.0030.07722.30
7.0.200.0070.00316.68
7.0.140.0030.05321.95
7.0.110.0070.08719.96
7.0.100.0070.06320.12
7.0.90.0030.08719.95
7.0.80.0100.07719.98
7.0.70.0100.07319.84
7.0.60.0100.07720.04
7.0.50.0100.08020.40
7.0.40.0100.08320.18
7.0.30.0030.05320.06
7.0.20.0070.05720.05
7.0.10.0100.08020.23
7.0.00.0070.08020.04
5.6.280.0070.07021.10
5.6.260.0130.07320.70
5.6.250.0000.08720.75
5.6.240.0170.07320.66
5.6.230.0070.04720.71
5.6.220.0100.07320.61
5.6.210.0070.05320.71
5.6.200.0170.07321.15
5.6.190.0100.08321.04
5.6.180.0070.08720.99
5.6.170.0130.08021.05
5.6.160.0030.08321.19
5.6.150.0170.07320.94
5.6.140.0070.08321.19
5.6.130.0030.08321.21
5.6.120.0130.08321.07
5.6.110.0070.08721.14
5.6.100.0070.07721.28
5.6.90.0130.07721.04
5.6.80.0030.08020.61
5.6.70.0100.07320.57
5.6.60.0130.07320.32
5.6.50.0000.08020.44
5.6.40.0030.04020.52
5.6.30.0030.05020.28
5.6.20.0070.04320.31
5.6.10.0000.06720.57
5.6.00.0070.03720.63
5.5.380.0100.07720.44
5.5.370.0030.09320.47
5.5.360.0100.08020.50
5.5.350.0100.08020.41
5.5.340.0130.07720.99
5.5.330.0070.05720.91
5.5.320.0130.07720.95
5.5.310.0000.09020.89
5.5.300.0070.08320.90
5.5.290.0070.08720.89
5.5.280.0130.06320.96
5.5.270.0030.08720.83
5.5.260.0100.08320.80
5.5.250.0070.07720.80
5.5.240.0130.07320.34
5.5.230.0170.06020.33
5.5.220.0030.08020.18
5.5.210.0170.06720.28
5.5.200.0030.04020.32
5.5.190.0030.05720.09
5.5.180.0070.03720.25
5.5.160.0070.03720.32
5.5.150.0100.03320.24
5.5.140.0070.03720.30
5.5.130.0030.03720.09
5.5.120.0070.03720.09
5.5.110.0000.04320.36
5.5.100.0000.06320.28
5.5.90.0030.03720.17
5.5.80.0070.06020.05
5.5.70.0030.03720.14
5.5.60.0030.04720.02
5.5.50.0070.03720.22
5.5.40.0000.07020.13
5.5.30.0070.03320.15
5.5.20.0030.04020.26
5.5.10.0130.02720.22
5.5.00.0130.06720.23
5.4.450.0070.08719.33
5.4.440.0070.06719.27
5.4.430.0030.08319.41
5.4.420.0070.07719.50
5.4.410.0100.07319.51
5.4.400.0030.08019.23
5.4.390.0100.07019.00
5.4.380.0070.08019.34
5.4.370.0030.08019.09
5.4.360.0030.04719.14
5.4.350.0100.07018.98
5.4.340.0030.04718.99
5.4.320.0070.04719.18
5.4.310.0030.06719.24
5.4.300.0100.02719.09
5.4.290.0000.04319.18
5.4.280.0030.04719.14
5.4.270.0030.03719.16
5.4.260.0070.03319.18
5.4.250.0070.03719.00
5.4.240.0030.04319.23
5.4.230.0100.06319.13
5.4.220.0030.04319.22
5.4.210.0070.03719.17
5.4.200.0030.06019.33
5.4.190.0000.04019.15
5.4.180.0000.05019.02
5.4.170.0000.04019.02
5.4.160.0000.08018.93
5.4.150.0000.05319.00
5.4.140.0030.03716.63
5.4.130.0000.03716.34
5.4.120.0030.04016.55
5.4.110.0000.05716.50
5.4.100.0030.07016.56
5.4.90.0000.03716.47
5.4.80.0030.04316.64
5.4.70.0030.03316.48
5.4.60.0030.03316.45
5.4.50.0070.05716.40
5.4.40.0100.03016.59
5.4.30.0070.03316.45
5.4.20.0030.03716.54
5.4.10.0100.03716.23
5.4.00.0030.06016.04
5.3.290.0030.04014.55
5.3.280.0030.07314.48
5.3.270.0030.04314.44
5.3.260.0100.06314.39
5.3.250.0070.03314.43
5.3.240.0030.05014.49
5.3.230.0070.04014.49
5.3.220.0000.05014.45
5.3.210.0070.03314.59
5.3.200.0070.03014.58
5.3.190.0030.06714.45
5.3.180.0070.04014.56
5.3.170.0070.03014.39
5.3.160.0030.03714.46
5.3.150.0030.03714.45
5.3.140.0000.07314.58
5.3.130.0100.03314.61
5.3.120.0030.03314.43
5.3.110.0100.05714.61
5.3.100.0000.04013.88
5.3.90.0030.03313.91
5.3.80.0030.05313.90
5.3.70.0100.05314.07
5.3.60.0070.06013.93
5.3.50.0030.05713.88
5.3.40.0100.06313.95
5.3.30.0200.06714.01
5.3.20.0030.07713.64
5.3.10.0030.07713.73
5.3.00.0130.06713.59
5.2.170.0000.06011.82
5.2.160.0030.06011.82
5.2.150.0000.06711.82
5.2.140.0030.06311.82
5.2.130.0030.06311.82
5.2.120.0100.05311.82
5.2.110.0070.05711.82
5.2.100.0030.06011.82
5.2.90.0100.05311.82
5.2.80.0030.06011.82
5.2.70.0070.06011.82
5.2.60.0070.05711.82
5.2.50.0030.06311.82
5.2.40.0000.05711.82
5.2.30.0100.05711.82
5.2.20.0070.05711.82
5.2.10.0030.06011.82
5.2.00.0100.05011.82
5.1.60.0100.02711.82
5.1.50.0070.02711.82
5.1.40.0070.05011.82
5.1.30.0030.05311.82
5.1.20.0000.04711.82
5.1.10.0030.05011.82
5.1.00.0100.04311.82
5.0.50.0030.05011.82
5.0.40.0100.03711.82
5.0.30.0100.05711.82
5.0.20.0100.03711.82
5.0.10.0000.04311.82
5.0.00.0000.07011.82
4.4.90.0000.03711.82
4.4.80.0100.03011.82
4.4.70.0000.02711.82
4.4.60.0000.03711.82
4.4.50.0000.02711.82
4.4.40.0030.05311.82
4.4.30.0000.03711.82
4.4.20.0030.03311.82
4.4.10.0000.03711.82
4.4.00.0000.03011.82
4.3.110.0000.02711.82
4.3.100.0030.03311.82
4.3.90.0000.03711.82
4.3.80.0130.03711.82
4.3.70.0000.03711.82
4.3.60.0030.03011.82
4.3.50.0030.03011.82
4.3.40.0130.04011.82
4.3.30.0000.03711.82
4.3.20.0000.03011.82
4.3.10.0030.02311.82
4.3.00.0030.02011.82

preferences:
62.11 ms | 401 KiB | 5 Q