@ 2015-02-23T23:44:06Z <?php
function andnot($a, $b) {
return $a & ~$b;
}
var_dump(andnot(15, 3));
var_dump(andnot(15, "3"));
var_dump(andnot("15", 3));
var_dump(andnot("15", "3"));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.33 , 8.2.0 - 8.2.29 , 8.3.0 - 8.3.26 , 8.4.1 - 8.4.13 int(12)
Fatal error: Uncaught TypeError: Unsupported operand types: int & string in /in/sQBZO:4
Stack trace:
#0 /in/sQBZO(8): andnot(15, '3')
#1 {main}
thrown in /in/sQBZO on line 4
Process exited with code 255 . Output for 7.1.0 - 7.1.20 , 7.2.6 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 int(12)
Warning: A non-numeric value encountered in /in/sQBZO on line 4
int(0)
int(12)
string(1) " "
Output for 4.3.0 - 4.3.11 , 4.4.0 - 4.4.9 , 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 , 7.0.0 - 7.0.20 int(12)
int(0)
int(12)
string(1) " "
preferences:dark mode live preview ace vim emacs key bindings
145.82 ms | 410 KiB | 5 Q