3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,5), array(4,3), 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[1] == 0) { $bitmask ^= bindec('0100'); printf("%04b\n", $bitmask); } elseif ($w[1] > 0) { $bitmask &= ~bindec('0001'); 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.0150.00618.65
8.3.50.0100.00621.98
8.3.40.0040.01118.67
8.3.30.0100.00320.30
8.3.20.0050.00318.73
8.3.10.0050.00221.23
8.3.00.0000.00819.43
8.2.180.0100.01016.50
8.2.170.0040.01122.96
8.2.160.0130.00020.36
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0110.00421.07
8.2.110.0030.00620.39
8.2.100.0120.00017.84
8.2.90.0040.00419.40
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00918.02
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00819.32
8.2.20.0030.00617.83
8.2.10.0030.00617.75
8.2.00.0090.00017.70
8.1.280.0080.00825.92
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0030.00717.52
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00717.53
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0070.00018.88
8.1.150.0000.00918.63
8.1.140.0040.00417.49
8.1.130.0040.00417.83
8.1.120.0000.00717.48
8.1.110.0080.00017.38
8.1.100.0040.00417.46
8.1.90.0020.00517.39
8.1.80.0050.00217.45
8.1.70.0030.00317.41
8.1.60.0000.00817.59
8.1.50.0030.00517.39
8.1.40.0040.00417.57
8.1.30.0020.00517.67
8.1.20.0080.00017.64
8.1.10.0000.00817.46
8.1.00.0030.00517.40
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0000.00818.49
8.0.270.0000.00717.25
8.0.260.0000.00716.82
8.0.250.0080.00016.98
8.0.240.0070.00416.98
8.0.230.0000.00716.93
8.0.220.0000.00716.86
8.0.210.0070.00016.89
8.0.200.0030.00316.94
8.0.190.0030.00616.86
8.0.180.0000.00716.89
8.0.170.0080.00016.80
8.0.160.0000.00716.79
8.0.150.0030.00316.84
8.0.140.0030.00816.86
8.0.130.0030.00313.28
8.0.120.0050.00316.82
8.0.110.0070.00016.78
8.0.100.0040.00416.92
8.0.90.0040.00416.91
8.0.80.0070.01516.91
8.0.70.0070.00016.93
8.0.60.0040.00416.91
8.0.50.0000.00716.89
8.0.30.0100.00717.07
8.0.20.0160.01617.40
8.0.10.0070.00017.08
8.0.00.0120.00616.78
7.4.330.0000.00516.77
7.4.320.0030.00316.41
7.4.300.0040.00416.63
7.4.290.0000.00716.60
7.4.280.0040.00416.51
7.4.270.0000.00716.40
7.4.260.0000.00613.18
7.4.250.0080.00016.49
7.4.240.0070.00016.62
7.4.230.0030.00316.39
7.4.220.0060.01116.58
7.4.210.0100.00516.59
7.4.200.0060.00316.59
7.4.190.0030.00316.67
7.4.160.0070.01016.57
7.4.150.0160.00617.40
7.4.140.0130.00417.86
7.4.130.0070.01016.57
7.4.120.0140.00316.55
7.4.110.0070.01416.38
7.4.100.0000.01916.61
7.4.90.0090.00916.63
7.4.80.0090.00919.39
7.4.70.0120.00416.67
7.4.60.0140.00316.55
7.4.50.0040.00416.63
7.4.40.0030.01022.77
7.4.30.0120.00616.48
7.4.00.0090.00814.81
7.3.330.0000.00513.16
7.3.320.0050.00013.03
7.3.310.0030.00316.36
7.3.300.0000.00716.24
7.3.290.0080.00816.21
7.3.280.0120.00416.26
7.3.270.0040.01317.40
7.3.260.0080.01118.24
7.3.250.0070.01016.38
7.3.240.0100.01316.56
7.3.230.0040.01316.63
7.3.210.0060.01216.33
7.3.200.0130.00419.39
7.3.190.0100.00716.38
7.3.180.0070.01016.46
7.3.170.0030.01316.43
7.3.160.0120.00616.57
7.3.120.0140.00214.94
7.3.110.0030.01614.84
7.3.100.0100.00615.04
7.3.90.0040.00414.91
7.3.80.0000.01014.96
7.3.70.0070.01014.70
7.3.60.0060.01014.77
7.3.50.0030.01014.99
7.3.40.0000.01414.91
7.3.30.0000.01714.54
7.3.20.0060.00316.79
7.3.10.0030.00616.66
7.3.00.0070.00716.80
7.2.330.0220.00416.75
7.2.320.0070.01016.67
7.2.310.0040.01716.86
7.2.300.0140.00316.40
7.2.290.0080.00916.70
7.2.250.0130.00614.72
7.2.240.0100.00614.88
7.2.230.0030.01215.07
7.2.220.0070.00315.25
7.2.210.0030.00815.22
7.2.200.0090.00615.28
7.2.190.0030.01315.05
7.2.180.0060.00614.77
7.2.170.0000.00915.27
7.2.00.0000.01419.14
7.1.330.0000.01415.80
7.1.320.0040.00715.94
7.1.310.0060.00915.96
7.1.300.0030.00915.82
7.1.290.0060.01015.88
7.1.280.0070.00715.60
7.1.270.0060.00315.68
7.1.260.0030.00715.61
7.1.100.0030.00717.76
7.1.70.0000.00717.23
7.1.60.0030.01017.23
7.1.50.0060.00616.96
7.1.00.0000.03722.54
7.0.200.0100.00716.82
7.0.140.0030.06722.04
7.0.60.0130.06719.82
7.0.50.0070.07017.88
7.0.40.0130.08319.90
7.0.30.0330.07320.14
7.0.20.0270.08020.33
7.0.10.0100.03720.18
7.0.00.0030.09020.08
5.6.280.0170.06321.11
5.6.210.0030.04020.46
5.6.200.0030.06718.15
5.6.190.0100.04720.47
5.6.180.0170.04320.41
5.6.170.0170.05020.48
5.6.160.0070.05320.54
5.6.150.0070.08018.21
5.6.140.0100.07018.15
5.6.130.0070.07318.10
5.6.120.0130.07721.02
5.6.110.0000.04320.88
5.6.100.0000.04320.96
5.6.90.0000.09320.96
5.6.80.0070.08020.37
5.5.350.0170.03020.40
5.5.340.0100.07317.97
5.5.330.0000.09020.25
5.5.320.0230.07320.29
5.5.310.0270.03720.34
5.5.300.0030.04017.98
5.5.290.0130.08017.93
5.5.280.0100.06020.80
5.5.270.0000.05320.83
5.5.260.0130.07720.79
5.5.250.0230.04720.54
5.5.240.0070.07020.18
5.4.450.0170.04019.48
5.4.440.0200.03319.40
5.4.430.0170.04019.25
5.4.420.0130.03719.41
5.4.410.0200.03019.45
5.4.400.0170.03318.93
5.4.390.0100.04719.08
5.4.380.0200.04018.81
5.4.370.0200.03719.13
5.4.360.0230.03019.22
5.4.350.0270.04018.80
5.4.340.0270.06019.22
5.4.320.0230.06019.16
5.4.310.0130.06019.13
5.4.300.0200.07319.06
5.4.290.0270.07319.21
5.4.280.0230.07319.09
5.4.270.0430.04318.79
5.4.260.0230.07019.06
5.4.250.0170.07018.80
5.4.240.0200.08019.08
5.4.230.0270.06719.16
5.4.220.0270.05319.21
5.4.210.0300.06319.21
5.4.200.0230.07019.13
5.4.190.0200.06319.06
5.4.180.0200.06319.12
5.4.170.0200.08018.79
5.4.160.0300.06318.86
5.4.150.0230.08019.06
5.4.140.0170.08016.46
5.4.130.0170.05716.26
5.4.120.0270.06316.43
5.4.110.0270.04716.39
5.4.100.0370.04316.43
5.4.90.0300.06716.39
5.4.80.0300.04716.37
5.4.70.0200.07016.45
5.4.60.0200.04016.36
5.4.50.0230.07016.39
5.4.40.0270.05716.18
5.4.30.0270.07016.36
5.4.20.0230.07016.45
5.4.10.0270.05316.40
5.4.00.0270.06015.63
5.3.290.0300.05314.64
5.3.280.0270.06014.45
5.3.270.0300.07014.59
5.3.260.0300.07014.59
5.3.250.0270.06714.48
5.3.240.0300.06714.65
5.3.230.0230.04714.45
5.3.220.0270.06314.45
5.3.210.0200.06314.40
5.3.200.0170.04314.40
5.3.190.0270.05314.52
5.3.180.0230.05014.51
5.3.170.0230.06314.65
5.3.160.0170.04014.52
5.3.150.0230.06014.55
5.3.140.0330.06714.41
5.3.130.0330.06314.39
5.3.120.0170.05014.50
5.3.110.0170.08714.41
5.3.100.0300.03714.10
5.3.90.0200.03713.88
5.3.80.0270.07013.96
5.3.70.0330.03313.79
5.3.60.0200.06713.86
5.3.50.0200.04713.79
5.3.40.0270.03713.79
5.3.30.0230.07713.71
5.3.20.0270.06313.47
5.3.10.0230.04013.53
5.3.00.0230.05013.49
5.2.170.0200.05712.42
5.2.160.0130.04012.42
5.2.150.0270.05012.42
5.2.140.0300.04312.42
5.2.130.0130.05012.42
5.2.120.0200.04012.42
5.2.110.0270.04312.42
5.2.100.0200.05712.42
5.2.90.0100.06712.42
5.2.80.0170.05012.42
5.2.70.0230.05712.42
5.2.60.0200.05712.42
5.2.50.0200.04312.42
5.2.40.0170.04012.42
5.2.30.0170.05312.42
5.2.20.0170.04712.42
5.2.10.0170.06012.42
5.2.00.0130.04312.42
5.1.60.0300.02012.42
5.1.50.0230.02712.42
5.1.40.0200.04012.42
5.1.30.0100.03712.42
5.1.20.0230.05012.42
5.1.10.0200.03012.42
5.1.00.0100.03012.42
5.0.50.0070.04712.42
5.0.40.0100.02712.42
5.0.30.0130.03012.42
5.0.20.0130.02012.42
5.0.10.0070.03712.42
5.0.00.0100.04712.42
4.4.90.0100.03712.42
4.4.80.0030.04012.42
4.4.70.0070.02012.42
4.4.60.0070.02012.42
4.4.50.0070.01712.42
4.4.40.0130.05012.42
4.4.30.0070.02012.42
4.4.20.0030.01712.42
4.4.10.0070.02012.42
4.4.00.0130.02312.42
4.3.110.0100.02012.42
4.3.100.0130.01312.42
4.3.90.0070.02012.42
4.3.80.0100.02712.42
4.3.70.0070.03712.42
4.3.60.0130.03012.42
4.3.50.0130.02312.42
4.3.40.0100.04312.42
4.3.30.0000.03312.42
4.3.20.0030.03012.42
4.3.10.0030.03712.42
4.3.00.0030.02012.42

preferences:
41.51 ms | 401 KiB | 5 Q