3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,5), array(4,3), array(4,4), array(4,0) ); // ______ - // | _____ 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.0170.00018.43
8.3.50.0120.00922.13
8.3.40.0110.00418.84
8.3.30.0100.00320.21
8.3.20.0000.00818.76
8.3.10.0000.00821.22
8.3.00.0090.00019.79
8.2.180.0100.01018.48
8.2.170.0080.00822.96
8.2.160.0130.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00620.96
8.2.110.0000.01020.57
8.2.100.0080.00417.84
8.2.90.0080.00019.21
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0040.00420.47
8.2.30.0000.00719.46
8.2.20.0000.00717.62
8.2.10.0070.00017.72
8.2.00.0060.00317.75
8.1.280.0120.00325.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.05
8.1.230.0080.00320.97
8.1.220.0090.00017.76
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00618.47
8.1.160.0030.00322.02
8.1.150.0040.00418.59
8.1.140.0040.00417.50
8.1.130.0000.00817.87
8.1.120.0000.00717.49
8.1.110.0000.00817.43
8.1.100.0060.00317.50
8.1.90.0000.00717.46
8.1.80.0040.00317.37
8.1.70.0070.00017.39
8.1.60.0000.00917.50
8.1.50.0000.00717.48
8.1.40.0030.00517.55
8.1.30.0000.00817.50
8.1.20.0000.00817.56
8.1.10.0040.00417.55
8.1.00.0030.00617.52
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0020.00518.45
8.0.270.0050.00317.33
8.0.260.0000.00716.82
8.0.250.0050.00216.90
8.0.240.0080.00316.91
8.0.230.0000.00716.88
8.0.220.0030.00316.92
8.0.210.0040.00416.84
8.0.200.0000.00716.99
8.0.190.0030.00316.95
8.0.180.0000.00716.80
8.0.170.0030.00316.70
8.0.160.0030.00416.81
8.0.150.0030.00316.80
8.0.140.0060.00316.81
8.0.130.0030.00313.31
8.0.120.0040.00416.86
8.0.110.0070.00016.85
8.0.100.0000.00716.79
8.0.90.0050.00216.72
8.0.80.0040.01716.80
8.0.70.0000.00816.91
8.0.60.0040.00416.89
8.0.50.0080.00016.68
8.0.30.0120.01116.84
8.0.20.0100.00917.40
8.0.10.0000.00716.96
8.0.00.0140.00516.52
7.4.330.0050.00016.71
7.4.320.0030.00316.61
7.4.300.0000.00716.50
7.4.290.0030.00516.65
7.4.280.0030.00316.61
7.4.270.0070.00016.59
7.4.260.0050.00013.18
7.4.250.0000.00716.49
7.4.240.0040.00416.54
7.4.230.0030.00316.48
7.4.220.0060.00916.49
7.4.210.0100.00716.56
7.4.200.0000.00816.61
7.4.190.0000.00816.73
7.4.160.0090.00616.52
7.4.150.0070.01117.40
7.4.140.0130.00917.86
7.4.130.0120.00616.56
7.4.120.0070.01016.59
7.4.110.0140.00716.47
7.4.100.0040.01316.43
7.4.90.0090.01016.39
7.4.80.0130.01019.39
7.4.70.0070.01016.32
7.4.60.0090.00916.59
7.4.50.0060.00316.30
7.4.40.0100.00722.77
7.4.30.0070.01016.42
7.4.00.0030.01315.14
7.3.330.0020.00213.23
7.3.320.0050.00013.03
7.3.310.0030.00316.33
7.3.300.0000.00716.31
7.3.290.0030.01316.27
7.3.280.0070.01116.25
7.3.270.0070.01017.40
7.3.260.0080.01218.24
7.3.250.0110.00616.52
7.3.240.0060.01016.39
7.3.230.0080.00816.66
7.3.210.0110.00616.27
7.3.200.0110.00719.39
7.3.190.0150.00416.33
7.3.180.0100.00616.53
7.3.170.0110.00516.46
7.3.160.0120.00916.44
7.3.120.0100.00315.06
7.2.330.0070.01316.83
7.2.320.0070.01016.54
7.2.310.0120.00616.44
7.2.300.0060.01416.86
7.2.290.0150.00616.76
7.2.00.0000.01119.60
7.1.100.0030.00618.14
7.1.70.0000.00717.04
7.1.60.0030.02019.24
7.1.50.0160.00634.56
7.1.00.0030.04322.33
7.0.200.0040.00716.73
7.0.140.0100.06722.01
7.0.100.0100.07720.14
7.0.90.0130.08319.89
7.0.80.0130.08019.87
7.0.70.0130.07319.89
7.0.60.0130.04719.95
7.0.50.0530.07720.39
7.0.40.0030.08020.13
7.0.30.0070.07720.10
7.0.20.0030.05719.95
7.0.10.0130.07319.98
7.0.00.0030.09320.06
5.6.280.0000.07721.01
5.6.250.0100.07720.59
5.6.240.0070.05320.56
5.6.230.0130.07720.62
5.6.220.0130.07020.63
5.6.210.0030.08720.43
5.6.200.0100.08021.00
5.6.190.0030.07721.11
5.6.180.0130.07320.95
5.6.170.0070.08721.11
5.6.160.0230.05721.17
5.6.150.0200.06321.00
5.6.140.0100.07321.07
5.6.130.0170.07021.02
5.6.120.0030.08720.93
5.6.110.0030.06320.92
5.6.100.0030.06720.95
5.6.90.0130.08021.02
5.6.80.0170.07720.34
5.6.70.0100.07720.38
5.6.60.0030.08020.39
5.6.50.0130.07720.38
5.6.40.0200.03320.38
5.6.30.0100.07720.30
5.6.20.0030.08020.26
5.6.10.0100.07320.41
5.6.00.0070.08020.29
5.5.380.0100.04720.35
5.5.370.0030.08320.48
5.5.360.0100.07720.38
5.5.350.0030.07720.38
5.5.340.0130.07720.90
5.5.330.0100.07720.88
5.5.320.0170.07320.80
5.5.310.0070.07720.93
5.5.300.0070.08720.88
5.5.290.0070.08720.85
5.5.280.0130.07020.89
5.5.270.0170.07720.85
5.5.260.0170.07320.63
5.5.250.0070.08320.62
5.5.240.0070.08320.27
5.5.230.0070.08320.18
5.5.220.0100.07320.11
5.5.210.0030.06020.26
5.5.200.0130.07720.19
5.5.190.0100.04720.13
5.5.180.0070.07720.12
5.5.160.0100.07720.11
5.5.150.0100.07020.14
5.5.140.0070.07720.25
5.5.130.0030.06720.12
5.5.120.0100.07020.21
5.5.110.0200.06720.22
5.5.100.0030.07020.16
5.5.90.0130.03719.94
5.5.80.0070.08020.03
5.5.70.0170.06719.93
5.5.60.0130.06720.09
5.5.50.0100.07719.95
5.5.40.0030.08020.11
5.5.30.0130.07719.98
5.5.20.0030.08320.13
5.5.10.0070.07320.03
5.5.00.0070.06019.96
5.4.450.0100.07319.54
5.4.440.0170.06319.41
5.4.430.0170.06719.11
5.4.420.0030.07719.55
5.4.410.0130.05019.14
5.4.400.0070.07718.82
5.4.390.0130.07319.07
5.4.380.0030.06319.06
5.4.370.0070.04318.91
5.4.360.0000.08319.15
5.4.350.0030.07019.15
5.4.340.0070.07719.05
5.4.320.0170.06719.14
5.4.310.0130.06719.22
5.4.300.0070.08019.04
5.4.290.0100.07318.88
5.4.280.0100.07718.96
5.4.270.0100.07319.06
5.4.260.0000.08318.81
5.4.250.0130.07018.96
5.4.240.0100.07718.81
5.4.230.0070.08019.03
5.4.220.0170.06718.77
5.4.210.0200.06318.81
5.4.200.0130.06719.02
5.4.190.0070.04318.83
5.4.180.0030.08319.05
5.4.170.0030.07719.03
5.4.160.0030.07318.95
5.4.150.0130.07018.96
5.4.140.0100.06716.36
5.4.130.0170.05316.29
5.4.120.0100.05016.14
5.4.110.0030.07016.22
5.4.100.0030.03316.43
5.4.90.0100.04716.45
5.4.80.0030.04016.32
5.4.70.0030.03716.20
5.4.60.0030.03316.18
5.4.50.0000.04016.41
5.4.40.0030.03316.41
5.4.30.0070.03016.31
5.4.20.0000.03716.40
5.4.10.0030.06716.23
5.4.00.0070.04015.77
5.3.290.0030.08014.67
5.3.280.0030.07714.51
5.3.270.0100.07014.42
5.3.260.0130.04314.60
5.3.250.0070.08014.59
5.3.240.0000.04314.47
5.3.230.0070.06314.61
5.3.220.0030.06714.43
5.3.210.0000.04714.56
5.3.200.0000.04014.56
5.3.190.0000.04014.51
5.3.180.0070.03014.48
5.3.170.0030.03714.52
5.3.160.0070.04014.53
5.3.150.0070.03314.56
5.3.140.0070.03314.42
5.3.130.0000.05014.54
5.3.120.0070.03714.40
5.3.110.0100.06314.55
5.3.100.0100.05713.97
5.3.90.0070.07013.93
5.3.80.0070.07314.00
5.3.70.0070.04713.88
5.3.60.0000.04314.00
5.3.50.0070.07713.95
5.3.40.0070.06713.73
5.3.30.0030.03313.87
5.3.20.0070.03713.66
5.3.10.0000.05713.42
5.3.00.0030.06313.55
5.2.170.0000.03311.10
5.2.160.0030.04711.02
5.2.150.0000.04010.97
5.2.140.0030.02711.07
5.2.130.0000.03011.07
5.2.120.0000.05011.10
5.2.110.0000.06011.15
5.2.100.0030.03311.03
5.2.90.0030.03311.10
5.2.80.0000.03011.10
5.2.70.0030.03011.11
5.2.60.0000.03011.07
5.2.50.0000.03011.02
5.2.40.0070.06010.80
5.2.30.0000.02710.98
5.2.20.0030.04010.93
5.2.10.0000.03310.80
5.2.00.0000.05010.64
5.1.60.0000.02310.48
5.1.50.0030.03010.48
5.1.40.0030.03710.48
5.1.30.0000.02710.48
5.1.20.0030.02710.48
5.1.10.0100.04310.48
5.1.00.0070.02010.48
5.0.50.0030.02010.48
5.0.40.0000.02010.48
5.0.30.0000.03010.48
5.0.20.0100.01010.48
5.0.10.0030.02010.48
5.0.00.0030.04010.48
4.4.90.0030.01310.48
4.4.80.0000.01310.48
4.4.70.0000.02710.48
4.4.60.0000.01710.48
4.4.50.0000.01710.48
4.4.40.0030.02310.48
4.4.30.0000.02310.48
4.4.20.0000.02010.48
4.4.10.0070.01010.48
4.4.00.0000.02710.48
4.3.110.0000.01710.48
4.3.100.0000.01710.48
4.3.90.0000.02010.48
4.3.80.0000.02310.48
4.3.70.0030.01310.48
4.3.60.0030.01310.48
4.3.50.0070.01010.48
4.3.40.0070.02010.48
4.3.30.0000.01710.48
4.3.20.0030.01710.48
4.3.10.0000.02010.48
4.3.00.0030.01310.48

preferences:
62.88 ms | 401 KiB | 5 Q