3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(5,1), array(4,1), array(4,1), array(1,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'); } elseif ($w[0] > $w[1]) { $bitmask &= ~bindec('0001'); if ($w[1] == 0) { $bitmask |= bindec('0100'); } } printf("%04b\n", $bitmask); var_dump($bitmask && bindec('0100')); 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.22
8.3.50.0150.00522.02
8.3.40.0000.01518.97
8.3.30.0000.01420.11
8.3.20.0080.00018.80
8.3.10.0080.00021.09
8.3.00.0040.00419.56
8.2.180.0120.00616.38
8.2.170.0070.00722.96
8.2.160.0080.00520.54
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.14
8.2.110.0060.00320.96
8.2.100.0060.00717.78
8.2.90.0060.00319.17
8.2.80.0030.00619.38
8.2.70.0040.00717.50
8.2.60.0030.00618.05
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0040.00419.44
8.2.20.0030.00517.74
8.2.10.0080.00017.76
8.2.00.0030.00717.74
8.1.280.0100.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00023.92
8.1.230.0120.00017.42
8.1.220.0040.00418.77
8.1.210.0040.00418.96
8.1.200.0060.00317.22
8.1.190.0000.00817.53
8.1.180.0080.00018.10
8.1.170.0000.00818.32
8.1.160.0020.00518.90
8.1.150.0040.00418.64
8.1.140.0000.00817.51
8.1.130.0000.00717.82
8.1.120.0000.00717.41
8.1.110.0080.00017.45
8.1.100.0030.00617.34
8.1.90.0000.00717.45
8.1.80.0000.00717.52
8.1.70.0030.00317.33
8.1.60.0060.00317.57
8.1.50.0040.00417.50
8.1.40.0030.00517.54
8.1.30.0000.00917.66
8.1.20.0050.00317.48
8.1.10.0000.00817.57
8.1.00.0040.00417.41
8.0.300.0000.00819.94
8.0.290.0000.00817.05
8.0.280.0030.00318.41
8.0.270.0070.00017.27
8.0.260.0030.00316.82
8.0.250.0040.00416.95
8.0.240.0110.00017.00
8.0.230.0030.00316.91
8.0.220.0080.00016.85
8.0.210.0030.00516.78
8.0.200.0060.00016.91
8.0.190.0000.00816.97
8.0.180.0080.00016.92
8.0.170.0070.00016.75
8.0.160.0000.00816.93
8.0.150.0040.00416.89
8.0.140.0030.00616.88
8.0.130.0030.00313.41
8.0.120.0040.00416.86
8.0.110.0040.00416.74
8.0.100.0040.00416.84
8.0.90.0040.00416.75
8.0.80.0030.01716.88
8.0.70.0000.00716.80
8.0.60.0000.00716.77
8.0.50.0050.00317.01
8.0.30.0090.01217.10
8.0.20.0110.00917.40
8.0.10.0000.00816.95
8.0.00.0150.00616.71
7.4.330.0000.00516.84
7.4.320.0070.00016.52
7.4.300.0000.00616.46
7.4.290.0000.00716.46
7.4.280.0000.00816.51
7.4.270.0000.00716.66
7.4.260.0050.00013.31
7.4.250.0070.00016.46
7.4.240.0070.00016.57
7.4.230.0070.00016.41
7.4.220.0090.00716.48
7.4.210.0070.00916.53
7.4.200.0000.00816.67
7.4.190.0040.00416.67
7.4.160.0100.00716.34
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0130.00416.48
7.4.120.0160.00216.48
7.4.110.0120.00916.37
7.4.100.0080.00816.47
7.4.90.0090.00916.39
7.4.80.0090.00819.39
7.4.70.0110.00616.46
7.4.60.0060.01016.42
7.4.50.0070.00016.67
7.4.40.0030.00822.77
7.4.30.0080.00816.44
7.4.00.0060.01114.78
7.3.330.0030.00313.17
7.3.320.0050.00013.03
7.3.310.0040.00416.27
7.3.300.0030.00316.29
7.3.290.0030.01316.31
7.3.280.0080.01016.32
7.3.270.0120.00917.40
7.3.260.0080.01018.24
7.3.250.0070.01016.49
7.3.240.0100.00716.34
7.3.230.0080.00816.63
7.3.210.0100.00716.51
7.3.200.0100.00719.39
7.3.190.0100.00616.60
7.3.180.0060.00916.64
7.3.170.0070.01016.48
7.3.160.0150.00716.49
7.3.120.0060.01114.95
7.3.110.0070.01214.89
7.3.100.0080.00714.90
7.3.90.0120.00414.91
7.3.80.0070.00614.80
7.3.70.0070.00714.87
7.3.60.0060.00714.83
7.3.50.0110.00314.79
7.3.40.0040.01314.69
7.3.30.0050.01014.68
7.3.20.0090.00316.72
7.3.10.0080.00816.69
7.3.00.0060.00816.68
7.2.330.0150.00616.56
7.2.320.0130.00616.82
7.2.310.0090.01316.66
7.2.300.0070.01016.73
7.2.290.0120.00416.39
7.2.250.0040.01615.09
7.2.240.0070.01015.28
7.2.230.0120.00315.12
7.2.220.0050.00915.04
7.2.210.0030.01014.92
7.2.200.0060.00915.11
7.2.190.0050.01015.05
7.2.180.0090.00815.10
7.2.170.0070.01014.99
7.2.160.0070.00615.31
7.2.150.0070.00716.93
7.2.140.0100.00717.02
7.2.130.0040.01316.99
7.2.120.0020.00916.81
7.2.110.0070.00716.95
7.2.100.0000.01216.93
7.2.90.0060.00717.03
7.2.80.0050.00716.98
7.2.70.0030.00916.86
7.2.60.0060.00616.66
7.2.50.0060.00817.08
7.2.40.0030.00816.82
7.2.30.0060.00917.09
7.2.20.0070.00716.99
7.2.10.0070.00717.05
7.2.00.0070.00817.79
7.1.330.0070.00715.82
7.1.320.0030.00815.70
7.1.310.0020.01216.04
7.1.300.0030.01115.69
7.1.290.0040.01115.67
7.1.280.0040.01115.72
7.1.270.0020.00815.65
7.1.260.0030.00815.79
7.1.250.0090.00815.80
7.1.240.0030.00815.95
7.1.230.0050.00515.86
7.1.220.0050.00915.71
7.1.210.0050.01015.78
7.1.200.0050.00915.85
7.1.190.0060.00515.84
7.1.180.0070.00715.90
7.1.170.0070.00715.69
7.1.160.0030.00915.78
7.1.150.0050.00815.82
7.1.140.0050.00615.86
7.1.130.0020.01215.99
7.1.120.0050.00615.98
7.1.110.0090.00515.98
7.1.100.0010.01216.74
7.1.90.0050.00515.90
7.1.80.0070.00915.82
7.1.70.0050.00816.27
7.1.60.0050.01316.93
7.1.50.0110.00922.13
7.1.40.0030.01115.69
7.1.30.0090.00515.83
7.1.20.0080.00615.87
7.1.10.0060.00715.66
7.1.00.0050.02018.03
7.0.330.0020.00915.54
7.0.320.0060.00515.51
7.0.310.0030.00815.28
7.0.300.0060.00215.42
7.0.290.0070.00715.38
7.0.280.0080.00515.34
7.0.270.0080.00715.46
7.0.260.0090.00415.35
7.0.250.0090.00515.43
7.0.240.0040.00715.41
7.0.230.0030.00815.50
7.0.220.0040.00715.37
7.0.210.0040.01015.45
7.0.200.0030.00815.88
7.0.190.0130.00215.44
7.0.180.0060.00715.38
7.0.170.0050.00915.40
7.0.160.0050.01115.41
7.0.150.0060.00815.42
7.0.140.0040.02917.60
7.0.130.0040.00815.37
7.0.120.0040.00815.37
7.0.110.0020.01315.27
7.0.100.0090.03516.93
7.0.90.0080.03316.98
7.0.80.0160.03016.78
7.0.70.0050.02016.96
7.0.60.0110.03117.04
7.0.50.0120.03017.21
7.0.40.0070.03315.71
7.0.30.0050.02915.67
7.0.20.0070.02815.71
7.0.10.0110.02815.60
7.0.00.0060.03615.58
5.6.400.0080.00314.19
5.6.390.0030.00614.38
5.6.380.0040.01114.22
5.6.370.0030.01014.64
5.6.360.0050.00614.23
5.6.350.0030.00814.58
5.6.340.0050.00614.21
5.6.330.0020.01214.43
5.6.320.0090.00714.49
5.6.310.0040.00714.30
5.6.300.0080.00614.63
5.6.290.0100.00514.56
5.6.280.0030.02916.38
5.6.270.0080.00714.40
5.6.260.0050.00814.51
5.6.250.0060.02116.48
5.6.240.0110.02916.47
5.6.230.0070.03016.60
5.6.220.0120.01816.42
5.6.210.0100.03116.49
5.6.200.0070.02116.59
5.6.190.0030.03216.57
5.6.180.0070.03416.59
5.6.170.0090.02016.53
5.6.160.0010.03716.62
5.6.150.0070.01816.70
5.6.140.0060.02216.55
5.6.130.0090.02816.61
5.6.120.0090.02016.57
5.6.110.0050.03216.54
5.6.100.0100.02216.61
5.6.90.0050.03216.55
5.6.80.0100.02616.50
5.6.70.0090.02316.42
5.6.60.0070.03216.25
5.6.50.0050.03316.46
5.6.40.0090.02516.36
5.6.30.0100.02916.36
5.6.20.0100.02716.30
5.6.10.0060.03416.43
5.6.00.0060.03016.40
5.5.380.0070.03015.33
5.5.370.0100.02415.37
5.5.360.0100.02815.28
5.5.350.0130.02815.23
5.5.340.0100.02715.27
5.5.330.0070.02815.35
5.5.320.0050.02515.61
5.5.310.0040.03215.26
5.5.300.0030.02415.42
5.5.290.0090.03015.46
5.5.280.0050.02015.35
5.5.270.0020.03515.49
5.5.260.0070.01715.44
5.5.250.0090.02915.35
5.5.240.0050.02015.07
5.5.230.0060.03315.11
5.5.220.0040.02415.24
5.5.210.0030.03015.24
5.5.200.0040.02715.08
5.5.190.0080.02915.19
5.5.180.0070.03015.11
5.5.170.0030.01012.65
5.5.160.0110.02715.20
5.5.150.0070.03015.15
5.5.140.0090.02815.17
5.5.130.0020.03115.08
5.5.120.0080.02315.13
5.5.110.0080.02915.28
5.5.100.0070.01815.16
5.5.90.0030.02015.10
5.5.80.0050.03115.15
5.5.70.0040.02315.19
5.5.60.0060.03015.07
5.5.50.0070.03015.10
5.5.40.0080.02915.20
5.5.30.0070.01915.21
5.5.20.0060.03015.12
5.5.10.0090.03015.24
5.5.00.0040.02915.09
5.4.450.0050.02913.78
5.4.440.0060.02913.84
5.4.430.0020.02113.77
5.4.420.0060.02713.68
5.4.410.0080.02013.90
5.4.400.0020.03113.60
5.4.390.0010.03013.72
5.4.380.0040.02813.76
5.4.370.0060.02513.56
5.4.360.0020.02113.75
5.4.350.0030.02113.65
5.4.340.0050.02713.70
5.4.330.0060.00510.98
5.4.320.0070.02513.70
5.4.310.0050.02713.72
5.4.300.0030.02813.62
5.4.290.0060.02713.75
5.4.280.0040.02613.74
5.4.270.0040.02813.76
5.4.260.0040.02513.52
5.4.250.0110.02313.71
5.4.240.0090.01613.62
5.4.230.0060.02713.76
5.4.220.0040.03013.72
5.4.210.0060.03013.63
5.4.200.0040.02913.59
5.4.190.0060.02913.65
5.4.180.0020.02313.71
5.4.170.0090.02513.59
5.4.160.0080.02413.64
5.4.150.0040.02413.51
5.4.140.0060.01712.74
5.4.130.0030.01812.66
5.4.120.0050.02212.77
5.4.110.0090.01912.89
5.4.100.0070.02412.83
5.4.90.0060.02512.74
5.4.80.0020.02912.75
5.4.70.0040.02712.83
5.4.60.0060.02612.62
5.4.50.0050.03012.69
5.4.40.0020.03112.82
5.4.30.0040.01912.82
5.4.20.0030.01912.80
5.4.10.0040.03612.67
5.4.00.0040.01912.66
5.3.290.0050.02011.96
5.3.280.0100.02711.85
5.3.270.0060.01511.86
5.3.260.0040.03111.94
5.3.250.0070.02611.83
5.3.240.0050.02811.83
5.3.230.0030.03111.83
5.3.220.0050.02811.77
5.3.210.0070.01911.76
5.3.200.0070.02611.68
5.3.190.0020.02911.86
5.3.180.0020.02911.83
5.3.170.0030.02611.83
5.3.160.0020.02111.85
5.3.150.0050.02711.86
5.3.140.0010.03111.89
5.3.130.0030.02111.76
5.3.120.0060.02711.89
5.3.110.0030.03011.85
5.3.100.0040.02411.66
5.3.90.0040.01911.65
5.3.80.0070.01611.51
5.3.70.0050.02811.56
5.3.60.0030.01911.44
5.3.50.0030.01711.56
5.3.40.0060.01511.60
5.3.30.0110.02211.55
5.3.20.0030.02711.44
5.3.10.0060.02711.38
5.3.00.0060.01911.38
5.2.170.0060.03310.40
5.2.160.0020.02110.30
5.2.150.0030.03310.32
5.2.140.0070.01810.36
5.2.130.0030.02810.38
5.2.120.0050.03010.38
5.2.110.0050.02510.38
5.2.100.0030.01610.41
5.2.90.0050.03210.37
5.2.80.0020.01910.40
5.2.70.0070.03210.36
5.2.60.0080.01510.33
5.2.50.0070.03210.27
5.2.40.0020.02010.33
5.2.30.0050.02510.30
5.2.20.0040.02910.23
5.2.10.0020.02310.22
5.2.00.0050.03110.19
5.1.60.0020.0239.83
5.1.50.0060.0229.82
5.1.40.0050.0259.84
5.1.30.0020.0319.96
5.1.20.0050.0289.96
5.1.10.0090.0129.85
5.1.00.0000.0239.79
5.0.50.0040.0159.12
5.0.40.0050.0139.04
5.0.30.0020.0278.95
5.0.20.0020.0138.99
5.0.10.0050.0218.93
5.0.00.0070.0288.93
4.4.90.0000.0138.93
4.4.80.0050.0178.93
4.4.70.0040.0108.93
4.4.60.0000.0158.93
4.4.50.0080.0028.93
4.4.40.0080.0238.93
4.4.30.0030.0208.93
4.4.20.0070.0138.93
4.4.10.0050.0188.93
4.4.00.0030.0238.93
4.3.110.0020.0138.93
4.3.100.0050.0108.93
4.3.90.0020.0198.93
4.3.80.0020.0288.93
4.3.70.0070.0118.93
4.3.60.0030.0138.93
4.3.50.0050.0108.93
4.3.40.0010.0158.93
4.3.30.0020.0228.93
4.3.20.0020.0228.93
4.3.10.0020.0198.93
4.3.00.0020.0158.93

preferences:
38.4 ms | 401 KiB | 5 Q