--TEST-- bitwise NOT and arrays --FILE-- getMessage() . "\n"; } $a = ~$b; var_dump($a); echo "Done\n"; ?> --EXPECTF-- Exception: Cannot perform bitwise not on array Fatal error: Uncaught TypeError: Cannot perform bitwise not on array in %s:%d Stack trace: #0 {main} thrown in %s on line %d