xref: /PHP-8.4/Zend/tests/or_001.phpt (revision 782352c5)
1--TEST--
2bitwise OR and strings
3--FILE--
4<?php
5
6$s = "323423";
7$s1 = "2323.555";
8
9var_dump($s | $s1);
10var_dump($s1 | $s);
11
12$s = "some";
13$s1 = "test";
14
15var_dump($s | $s1);
16
17$s = "some";
18$s |= "test";
19
20var_dump($s);
21
22echo "Done\n";
23?>
24--EXPECT--
25string(8) "3337>755"
26string(8) "3337>755"
27string(4) "wou"
28string(4) "wou"
29Done
30