3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,2), array(4,4), array(4,2), 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.40.0120.00618.84
8.3.30.0000.01719.98
8.3.20.0040.00418.73
8.3.10.0040.00421.09
8.3.00.0000.00819.56
8.2.170.0070.00722.96
8.2.160.0060.00820.32
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.00
8.2.110.0070.00321.04
8.2.100.0090.00317.84
8.2.90.0080.00019.21
8.2.80.0030.00517.97
8.2.70.0090.00017.50
8.2.60.0000.00817.93
8.2.50.0050.00318.28
8.2.40.0030.00620.59
8.2.30.0040.00419.20
8.2.20.0000.00817.78
8.2.10.0070.00017.63
8.2.00.0070.00417.84
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00021.06
8.1.230.0040.00722.25
8.1.220.0040.00417.88
8.1.210.0060.00318.77
8.1.200.0090.00017.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0040.00418.90
8.1.150.0000.00820.27
8.1.140.0070.00017.48
8.1.130.0040.00417.87
8.1.120.0000.00717.30
8.1.110.0040.00417.43
8.1.100.0000.00817.35
8.1.90.0070.00017.48
8.1.80.0030.00417.38
8.1.70.0030.00317.43
8.1.60.0000.00917.58
8.1.50.0000.00717.50
8.1.40.0040.00417.53
8.1.30.0040.00417.67
8.1.20.0030.00517.64
8.1.10.0000.00817.55
8.1.00.0040.00417.53
8.0.300.0040.00718.77
8.0.290.0000.01016.75
8.0.280.0040.00418.37
8.0.270.0000.00817.19
8.0.260.0050.00316.87
8.0.250.0040.00416.86
8.0.240.0000.00916.95
8.0.230.0000.00816.94
8.0.220.0000.00716.86
8.0.210.0030.00316.77
8.0.200.0030.00316.84
8.0.190.0030.00616.97
8.0.180.0070.00016.94
8.0.170.0000.00816.83
8.0.160.0040.00416.93
8.0.150.0030.00316.72
8.0.140.0030.00716.82
8.0.130.0060.00013.36
8.0.120.0050.00216.84
8.0.110.0040.00416.89
8.0.100.0050.00216.92
8.0.90.0050.00216.98
8.0.80.0100.01316.86
8.0.70.0000.00816.79
8.0.60.0030.00516.74
8.0.50.0020.00516.91
8.0.30.0120.00917.12
8.0.20.0190.01617.40
8.0.10.0030.00516.85
8.0.00.0110.00916.88
7.4.330.0030.00316.68
7.4.320.0060.00016.53
7.4.300.0030.00316.53
7.4.290.0070.00016.40
7.4.280.0030.00316.48
7.4.270.0070.00016.59
7.4.260.0050.00013.39
7.4.250.0060.00316.46
7.4.240.0050.00216.61
7.4.230.0030.00316.41
7.4.220.0060.01016.50
7.4.210.0070.01116.65
7.4.200.0050.00216.63
7.4.190.0030.00316.66
7.4.160.0060.00916.41
7.4.150.0090.01317.40
7.4.140.0160.00517.86
7.4.130.0090.00816.42
7.4.120.0120.00616.44
7.4.110.0110.01116.64
7.4.100.0100.01016.69
7.4.90.0120.00916.51
7.4.80.0130.00319.39
7.4.70.0070.01016.45
7.4.60.0140.00316.57
7.4.50.0050.00316.52
7.4.40.0060.00922.77
7.4.30.0030.01416.33
7.4.00.0030.00815.03
7.3.330.0050.00013.15
7.3.320.0030.00313.06
7.3.310.0030.00316.36
7.3.300.0030.00316.35
7.3.290.0080.00816.25
7.3.280.0120.00516.25
7.3.270.0060.01217.40
7.3.260.0100.00918.24
7.3.250.0080.00916.43
7.3.240.0080.00816.61
7.3.230.0090.01316.52
7.3.210.0030.01316.49
7.3.200.0200.00019.39
7.3.190.0130.00316.48
7.3.180.0030.01216.33
7.3.170.0030.01716.27
7.3.160.0060.00916.66
7.3.120.0100.00314.64
7.3.110.0030.01414.50
7.3.100.0070.00714.70
7.3.90.0000.00815.02
7.3.80.0030.01014.93
7.3.70.0040.01214.58
7.3.60.0040.00414.65
7.3.50.0080.00614.68
7.3.40.0090.00614.77
7.3.30.0000.01814.80
7.3.20.0100.00316.76
7.3.10.0070.00416.72
7.3.00.0040.01116.73
7.2.330.0140.00916.47
7.2.320.0030.01416.79
7.2.310.0070.01416.50
7.2.300.0160.00716.34
7.2.290.0170.00016.48
7.2.240.0100.00715.15
7.2.230.0080.00415.29
7.2.220.0070.00714.84
7.2.210.0060.00915.26
7.2.200.0040.01414.87
7.2.190.0000.01615.05
7.2.180.0000.01515.02
7.2.170.0060.00915.27
7.2.160.0090.00415.07
7.2.150.0000.01516.64
7.2.140.0070.01116.77
7.2.130.0030.01316.77
7.2.120.0070.01016.82
7.2.110.0060.00916.76
7.2.100.0000.01217.01
7.2.90.0060.00916.75
7.2.80.0000.01417.06
7.2.70.0060.00916.69
7.2.60.0030.00917.01
7.2.50.0100.00616.91
7.2.40.0030.01216.55
7.2.30.0060.00616.86
7.2.20.0030.01316.77
7.2.10.0100.00616.84
7.2.00.0050.01018.19
7.1.330.0000.01515.77
7.1.320.0120.00315.91
7.1.310.0030.01015.70
7.1.300.0110.00315.68
7.1.290.0100.00315.60
7.1.280.0070.00315.97
7.1.270.0110.00415.96
7.1.260.0000.01515.73
7.1.250.0100.00315.84
7.1.200.0000.01315.77
7.1.100.0090.00317.81
7.1.70.0000.00816.92
7.1.60.0060.00617.31
7.1.50.0150.00416.93
7.1.00.0000.06722.42
7.0.200.0040.00816.76
7.0.140.0030.07322.19
7.0.110.0170.07019.86
7.0.100.0170.07720.10
7.0.90.0230.08020.09
7.0.80.0100.08319.94
7.0.70.0100.08319.87
7.0.60.0100.05319.96
7.0.50.0230.07720.37
7.0.40.0070.08320.19
7.0.30.0000.09720.27
7.0.20.0130.04320.19
7.0.10.0030.08720.02
7.0.00.0070.06020.04
5.6.280.0000.07321.14
5.6.250.0170.06320.69
5.6.240.0130.05320.55
5.6.230.0000.08720.66
5.6.220.0100.07320.62
5.6.210.0130.04320.55
5.6.200.0130.07720.99
5.6.190.0130.08321.25
5.6.180.0070.08021.02
5.6.170.0100.07321.26
5.6.160.0100.07320.95
5.6.150.0100.08321.21
5.6.140.0100.07321.08
5.6.130.0200.07321.07
5.6.120.0070.04021.09
5.6.110.0170.07321.04
5.6.100.0070.05720.93
5.6.90.0300.06321.05
5.6.80.0070.07720.52
5.6.70.0070.04320.33
5.6.60.0170.07020.59
5.6.50.0100.04720.67
5.6.40.0070.08320.54
5.6.30.0170.06720.34
5.6.20.0130.05320.31
5.6.10.0070.08320.54
5.6.00.0070.08020.52
5.5.380.0030.08720.46
5.5.370.0200.06720.46
5.5.360.0100.07020.45
5.5.350.0130.07320.13
5.5.340.0030.06320.87
5.5.330.0030.08020.81
5.5.320.0030.05720.84
5.5.310.0170.06320.89
5.5.300.0030.06320.98
5.5.290.0130.07720.89
5.5.280.0100.08020.89
5.5.270.0130.07720.94
5.5.260.0100.05021.02
5.5.250.0130.07720.82
5.5.240.0170.06020.25
5.5.230.0030.07720.15
5.5.220.0130.07720.20
5.5.210.0030.07020.27
5.5.200.0070.07320.14
5.5.190.0130.07320.12
5.5.180.0100.07720.23
5.5.160.0130.07020.22
5.5.150.0070.07720.12
5.5.140.0030.05020.08
5.5.130.0130.07320.33
5.5.120.0070.07320.29
5.5.110.0070.06020.28
5.5.100.0070.08020.11
5.5.90.0070.08020.19
5.5.80.0100.05020.27
5.5.70.0030.08319.97
5.5.60.0200.05720.03
5.5.50.0130.07019.97
5.5.40.0100.07320.05
5.5.30.0070.07720.16
5.5.20.0130.06020.05
5.5.10.0130.07020.05
5.5.00.0070.05020.13
5.4.450.0000.09319.36
5.4.440.0000.04319.40
5.4.430.0130.07319.43
5.4.420.0070.07019.30
5.4.410.0100.07719.18
5.4.400.0130.06019.12
5.4.390.0070.05019.16
5.4.380.0100.07019.09
5.4.370.0100.07719.12
5.4.360.0030.08019.10
5.4.350.0070.07319.00
5.4.340.0100.07319.12
5.4.320.0030.06019.00
5.4.310.0030.07318.95
5.4.300.0200.07019.09
5.4.290.0070.08018.98
5.4.280.0100.07319.11
5.4.270.0070.07319.11
5.4.260.0070.07018.93
5.4.250.0130.06319.11
5.4.240.0200.06018.99
5.4.230.0030.08019.16
5.4.220.0130.06019.15
5.4.210.0070.08019.09
5.4.200.0070.08319.03
5.4.190.0170.06319.03
5.4.180.0100.07019.26
5.4.170.0000.07719.17
5.4.160.0030.04718.90
5.4.150.0170.06319.01
5.4.140.0100.07316.47
5.4.130.0100.07316.25
5.4.120.0070.07016.48
5.4.110.0100.07016.36
5.4.100.0030.07716.38
5.4.90.0070.06316.38
5.4.80.0100.07316.53
5.4.70.0070.07016.22
5.4.60.0000.07716.17
5.4.50.0100.06316.26
5.4.40.0130.06716.52
5.4.30.0070.04316.50
5.4.20.0100.06716.51
5.4.10.0030.07716.50
5.4.00.0130.04315.92
5.3.290.0170.07014.67
5.3.280.0100.07014.46
5.3.270.0100.07714.40
5.3.260.0070.06314.51
5.3.250.0070.07314.68
5.3.240.0070.07014.67
5.3.230.0200.04314.48
5.3.220.0070.07314.64
5.3.210.0130.06714.67
5.3.200.0030.04714.36
5.3.190.0100.06714.64
5.3.180.0070.06714.59
5.3.170.0100.07014.59
5.3.160.0170.06714.46
5.3.150.0030.06714.39
5.3.140.0170.07014.46
5.3.130.0070.07314.61
5.3.120.0030.08014.45
5.3.110.0070.07714.54
5.3.100.0070.07013.93
5.3.90.0030.07714.10
5.3.80.0070.07713.91
5.3.70.0030.04313.88
5.3.60.0030.08013.89
5.3.50.0070.07713.85
5.3.40.0170.05314.02
5.3.30.0070.07313.83
5.3.20.0100.06713.63
5.3.10.0070.06713.52
5.3.00.0070.06313.70
5.2.170.0070.06011.04
5.2.160.0100.05711.09
5.2.150.0100.05311.09
5.2.140.0100.06010.94
5.2.130.0030.04711.18
5.2.120.0030.06311.03
5.2.110.0200.04011.15
5.2.100.0100.05711.05
5.2.90.0000.07311.07
5.2.80.0100.05310.89
5.2.70.0200.04711.17
5.2.60.0030.06011.00
5.2.50.0030.06310.98
5.2.40.0030.06710.95
5.2.30.0030.06711.01
5.2.20.0070.06310.88
5.2.10.0000.06310.86
5.2.00.0070.06010.80
5.1.60.0030.04310.07
5.1.50.0000.0579.98
5.1.40.0070.04710.14
5.1.30.0030.06010.44
5.1.20.0070.03710.37
5.1.10.0000.06010.05
5.1.00.0000.0639.99
5.0.50.0030.0478.79
5.0.40.0000.0438.79
5.0.30.0070.0578.79
5.0.20.0070.0378.79
5.0.10.0030.0438.79
5.0.00.0000.0638.79
4.4.90.0030.0178.79
4.4.80.0000.0308.79
4.4.70.0000.0238.79
4.4.60.0000.0378.79
4.4.50.0100.0178.79
4.4.40.0000.0538.79
4.4.30.0000.0378.79
4.4.20.0030.0338.79
4.4.10.0030.0378.79
4.4.00.0030.0408.79
4.3.110.0100.0278.79
4.3.100.0000.0378.79
4.3.90.0030.0338.79
4.3.80.0030.0508.79
4.3.70.0000.0338.79
4.3.60.0000.0338.79
4.3.50.0000.0238.79
4.3.40.0030.0478.79
4.3.30.0000.0278.79
4.3.20.0000.0408.79
4.3.10.0070.0308.79
4.3.00.0030.0308.79

preferences:
55.57 ms | 400 KiB | 5 Q