3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,5), array(4,4), array(4,4), array(1,1) ); // ______ - // | _____ mind. 1 Position komplett offen // || ____ Position mit Teilmengen geliefert // ||| ___ alles komplett // |||| $bitmask = bindec('0001'); printf("%04b\n", $bitmask); foreach ($arr as $w) { if ($w[0] == $w[1]) { $bitmask |= bindec('0010'); printf("%04b\n", $bitmask); } elseif ($w[0] > $w[1]) { $bitmask &= ~bindec('0001'); printf("%04b\n", $bitmask); if ($w[1] == 0) { $bitmask |= bindec('0100'); printf("%04b\n", $bitmask); } } echo "=====\n"; printf("%04b\n", $bitmask); echo "\n\n\n"; } ?>

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.0060.01118.43
8.3.50.0090.00722.05
8.3.40.0120.00318.59
8.3.30.0030.01220.39
8.3.20.0050.00318.90
8.3.10.0040.00421.06
8.3.00.0040.00419.79
8.2.180.0070.00718.29
8.2.170.0070.00722.96
8.2.160.0120.00320.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.10
8.2.110.0080.00420.28
8.2.100.0090.00318.03
8.2.90.0090.00019.30
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00421.07
8.2.30.0030.00619.98
8.2.20.0000.00817.70
8.2.10.0000.00917.79
8.2.00.0000.00817.79
8.1.280.0100.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0090.00022.46
8.1.230.0000.01117.66
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00717.22
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0080.00020.36
8.1.160.0000.00722.19
8.1.150.0000.00818.59
8.1.140.0050.00317.46
8.1.130.0000.00717.81
8.1.120.0050.00317.44
8.1.110.0020.00517.36
8.1.100.0000.00717.47
8.1.90.0000.00717.37
8.1.80.0070.00017.36
8.1.70.0030.00317.41
8.1.60.0030.00617.57
8.1.50.0000.00717.48
8.1.40.0040.00417.52
8.1.30.0040.00417.61
8.1.20.0000.00917.65
8.1.10.0080.00017.59
8.1.00.0070.00017.39
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00518.36
8.0.270.0080.00017.17
8.0.260.0030.00516.73
8.0.250.0000.00816.93
8.0.240.0000.01116.87
8.0.230.0040.00416.99
8.0.220.0000.00716.82
8.0.210.0040.00416.87
8.0.200.0000.00616.95
8.0.190.0080.00016.84
8.0.180.0040.00416.94
8.0.170.0000.00716.86
8.0.160.0000.00716.93
8.0.150.0000.00716.79
8.0.140.0040.00416.89
8.0.130.0060.00013.28
8.0.120.0020.00516.90
8.0.110.0040.00416.86
8.0.100.0040.00416.78
8.0.90.0040.00416.71
8.0.80.0070.01216.94
8.0.70.0000.00816.77
8.0.60.0000.00716.84
8.0.50.0040.00416.67
8.0.30.0070.01117.13
8.0.20.0160.00817.41
8.0.10.0050.00217.08
8.0.00.0140.00716.71
7.4.330.0000.00516.71
7.4.320.0000.00716.61
7.4.300.0070.00016.55
7.4.290.0040.00316.36
7.4.280.0030.00316.39
7.4.270.0000.00716.56
7.4.260.0000.00613.33
7.4.250.0040.00416.48
7.4.240.0080.00016.52
7.4.230.0030.00316.43
7.4.220.0070.01016.45
7.4.210.0080.00616.58
7.4.200.0000.00716.43
7.4.190.0000.00716.32
7.4.160.0090.01216.53
7.4.150.0060.01217.40
7.4.140.0130.00417.86
7.4.130.0120.00616.51
7.4.120.0120.00616.48
7.4.110.0060.01516.41
7.4.100.0120.00916.47
7.4.90.0070.01316.48
7.4.80.0120.00619.39
7.4.70.0070.01016.61
7.4.60.0080.00816.70
7.4.50.0030.00616.57
7.4.40.0090.00622.77
7.4.30.0100.00616.57
7.4.00.0020.01314.96
7.3.330.0060.00013.05
7.3.320.0000.00513.26
7.3.310.0000.00716.32
7.3.300.0030.00316.34
7.3.290.0030.01116.40
7.3.280.0120.00616.26
7.3.270.0100.01017.40
7.3.260.0120.00818.24
7.3.250.0090.00816.40
7.3.240.0090.00916.36
7.3.230.0090.01216.64
7.3.210.0060.01016.56
7.3.200.0120.00919.39
7.3.190.0060.01016.38
7.3.180.0070.01016.39
7.3.170.0040.01416.45
7.3.160.0120.01116.57
7.3.120.0070.00714.62
7.3.110.0070.00614.82
7.3.100.0060.00514.78
7.3.90.0030.01114.69
7.3.80.0090.00514.85
7.3.70.0070.00714.78
7.3.60.0050.01014.70
7.3.50.0060.01014.76
7.3.40.0110.00314.96
7.3.30.0100.00514.91
7.3.20.0080.00716.61
7.3.10.0050.00816.69
7.3.00.0070.00316.67
7.2.330.0100.00716.75
7.2.320.0100.01316.83
7.2.310.0150.00616.69
7.2.300.0120.00416.73
7.2.290.0090.00916.51
7.2.250.0090.00915.30
7.2.240.0070.00415.12
7.2.230.0100.00615.28
7.2.220.0090.00615.24
7.2.210.0050.01115.06
7.2.200.0070.00515.01
7.2.190.0090.00614.85
7.2.180.0070.00915.20
7.2.170.0050.01115.08
7.2.160.0040.00814.82
7.2.150.0090.00616.88
7.2.140.0100.00717.10
7.2.130.0100.00616.92
7.2.120.0030.01016.85
7.2.110.0030.01017.03
7.2.100.0160.00017.07
7.2.90.0060.00616.95
7.2.80.0070.01017.02
7.2.70.0090.00616.89
7.2.60.0050.00716.98
7.2.50.0040.01117.13
7.2.40.0030.00916.88
7.2.30.0060.00917.05
7.2.20.0000.01617.17
7.2.10.0030.01316.59
7.2.00.0050.00918.25
7.1.330.0060.00915.87
7.1.320.0090.00715.88
7.1.310.0060.00815.85
7.1.300.0060.00715.88
7.1.290.0040.00815.92
7.1.280.0040.01115.83
7.1.270.0020.01415.79
7.1.260.0100.00315.84
7.1.250.0070.01016.01
7.1.200.0030.01015.72
7.1.100.0100.00318.27
7.1.70.0000.00716.90
7.1.60.0040.01117.06
7.1.50.0090.00916.94
7.1.00.0000.06322.35
7.0.200.0100.00716.78
7.0.140.0070.07022.09
7.0.110.0430.04319.94
7.0.100.0130.03720.08
7.0.90.0170.04720.04
7.0.80.0070.04319.89
7.0.70.0230.04019.92
7.0.60.0130.04019.65
7.0.50.0030.04020.33
7.0.40.0170.04320.19
7.0.30.0070.05320.20
7.0.20.0130.08020.19
7.0.10.0070.09020.26
7.0.00.0100.08320.26
5.6.280.0070.07020.85
5.6.250.0000.04320.69
5.6.240.0070.04020.68
5.6.230.0030.04020.56
5.6.220.0070.07020.65
5.6.210.0000.04320.63
5.6.200.0070.04721.22
5.6.190.0100.03720.98
5.6.180.0100.06721.21
5.6.170.0130.07321.18
5.6.160.0070.05321.14
5.6.150.0130.07721.26
5.6.140.0100.08320.98
5.6.130.0230.06721.26
5.6.120.0030.08721.07
5.6.110.0130.04721.08
5.6.100.0070.08721.27
5.6.90.0000.08721.12
5.6.80.0100.07720.65
5.6.70.0130.07320.39
5.6.60.0100.07720.59
5.6.50.0100.07320.60
5.6.40.0070.05020.44
5.6.30.0170.06320.61
5.6.20.0130.07320.49
5.6.10.0030.07720.34
5.6.00.0070.07720.38
5.5.380.0100.03320.54
5.5.370.0030.04320.51
5.5.360.0070.03720.51
5.5.350.0000.04320.48
5.5.340.0030.04020.80
5.5.330.0030.08720.97
5.5.320.0070.04721.00
5.5.310.0130.05320.96
5.5.300.0030.07321.03
5.5.290.0030.08720.84
5.5.280.0070.05020.74
5.5.270.0100.08020.93
5.5.260.0130.07320.89
5.5.250.0170.07320.82
5.5.240.0130.07320.22
5.5.230.0130.07720.28
5.5.220.0100.05320.33
5.5.210.0030.08720.34
5.5.200.0230.06320.09
5.5.190.0030.08020.09
5.5.180.0070.06720.25
5.5.160.0000.08020.32
5.5.150.0000.06720.38
5.5.140.0130.07720.15
5.5.130.0070.07320.31
5.5.120.0070.07020.36
5.5.110.0030.08320.30
5.5.100.0100.05720.15
5.5.90.0130.06020.04
5.5.80.0030.08019.99
5.5.70.0030.07720.20
5.5.60.0170.05720.09
5.5.50.0130.07320.17
5.5.40.0000.06320.15
5.5.30.0230.04020.25
5.5.20.0130.07320.14
5.5.10.0000.08020.11
5.5.00.0170.07020.10
5.4.450.0070.07719.33
5.4.440.0130.08319.40
5.4.430.0030.08319.32
5.4.420.0070.07019.30
5.4.410.0100.06719.36
5.4.400.0130.07319.03
5.4.390.0030.08019.00
5.4.380.0030.05318.95
5.4.370.0030.08719.03
5.4.360.0130.05019.18
5.4.350.0070.08019.01
5.4.340.0170.05718.96
5.4.320.0130.07319.27
5.4.310.0130.07319.07
5.4.300.0170.06719.11
5.4.290.0130.07018.93
5.4.280.0070.08319.10
5.4.270.0000.06719.16
5.4.260.0030.06719.09
5.4.250.0100.03318.99
5.4.240.0030.07319.07
5.4.230.0100.07319.17
5.4.220.0200.06319.00
5.4.210.0130.06719.02
5.4.200.0270.05718.97
5.4.190.0070.07719.07
5.4.180.0100.07018.99
5.4.170.0070.07719.02
5.4.160.0070.07019.09
5.4.150.0130.04319.01
5.4.140.0030.08016.35
5.4.130.0070.07016.52
5.4.120.0130.05016.25
5.4.110.0170.04016.50
5.4.100.0030.07316.23
5.4.90.0030.07316.29
5.4.80.0030.07316.47
5.4.70.0070.07016.12
5.4.60.0130.07016.49
5.4.50.0070.06716.46
5.4.40.0130.06716.43
5.4.30.0130.03716.50
5.4.20.0030.07716.30
5.4.10.0030.07316.25
5.4.00.0070.07315.70
5.3.290.0000.05014.56
5.3.280.0100.07314.61
5.3.270.0130.03714.43
5.3.260.0030.08014.39
5.3.250.0100.07314.40
5.3.240.0100.07714.72
5.3.230.0130.06314.50
5.3.220.0100.04714.36
5.3.210.0130.06714.59
5.3.200.0170.05714.45
5.3.190.0000.05014.46
5.3.180.0070.07314.45
5.3.170.0000.08314.39
5.3.160.0070.07014.51
5.3.150.0030.04714.57
5.3.140.0000.08014.42
5.3.130.0000.06714.55
5.3.120.0070.05014.48
5.3.110.0100.07314.39
5.3.100.0100.05714.04
5.3.90.0100.04013.93
5.3.80.0030.07013.91
5.3.70.0070.06713.94
5.3.60.0070.06713.93
5.3.50.0100.07013.81
5.3.40.0070.06713.96
5.3.30.0070.06313.97
5.3.20.0070.04013.62
5.3.10.0130.06013.50
5.3.00.0100.06713.71
5.2.170.0070.06011.16
5.2.160.0000.06711.09
5.2.150.0100.06011.09
5.2.140.0070.04711.21
5.2.130.0070.06011.04
5.2.120.0070.03311.13
5.2.110.0070.03311.04
5.2.100.0030.06011.02
5.2.90.0000.05711.05
5.2.80.0070.06011.26
5.2.70.0030.06010.99
5.2.60.0030.06711.12
5.2.50.0030.06310.94
5.2.40.0030.03710.95
5.2.30.0000.06311.05
5.2.20.0130.05010.88
5.2.10.0130.05010.79
5.2.00.0070.04010.73
5.1.60.0030.0509.91
5.1.50.0070.0539.91
5.1.40.0030.0539.80
5.1.30.0030.05010.35
5.1.20.0070.03010.50
5.1.10.0030.05710.00
5.1.00.0030.05310.32
5.0.50.0130.0408.46
5.0.40.0070.0378.43
5.0.30.0000.0338.43
5.0.20.0000.0278.43
5.0.10.0030.0438.43
5.0.00.0030.0608.43
4.4.90.0000.0378.43
4.4.80.0000.0208.43
4.4.70.0000.0378.43
4.4.60.0000.0378.43
4.4.50.0000.0378.43
4.4.40.0030.0438.43
4.4.30.0030.0338.43
4.4.20.0000.0378.43
4.4.10.0030.0378.43
4.4.00.0030.0278.43
4.3.110.0030.0208.43
4.3.100.0030.0238.43
4.3.90.0070.0208.43
4.3.80.0070.0338.43
4.3.70.0070.0278.43
4.3.60.0070.0308.43
4.3.50.0070.0308.43
4.3.40.0030.0278.43
4.3.30.0000.0308.43
4.3.20.0000.0378.43
4.3.10.0070.0308.43
4.3.00.0000.0378.43

preferences:
30.58 ms | 401 KiB | 5 Q