xref: /PHP-8.1/Zend/tests/bug69891.phpt (revision 7aacc705)
1--TEST--
2Bug #69891: Unexpected array comparison result
3--FILE--
4<?php
5
6var_dump([1, 2, 3] <=> []);
7var_dump([] <=> [1, 2, 3]);
8var_dump([1] <=> [2, 3]);
9?>
10--EXPECT--
11int(1)
12int(-1)
13int(-1)
14