xref: /PHP-8.2/Zend/tests/xor_001.phpt (revision 5bc1e224)
1--TEST--
2XORing arrays
3--FILE--
4<?php
5
6$a = array(1,2,3);
7$b = array();
8
9try {
10    $c = $a ^ $b;
11} catch (TypeError $e) {
12    echo $e->getMessage(), "\n";
13}
14
15echo "Done\n";
16?>
17--EXPECT--
18Unsupported operand types: array ^ array
19Done
20