1--TEST--
2array_multisort() is stable
3--FILE--
4<?php
5
6// Something of a dummy example where 0 and '0' are used as equal elements.
7
8$ary1 = array_fill(0, 100, 0);
9$origAry2 = $ary2 = array_merge(...array_fill(0, 50, [0, '0']));
10array_multisort($ary1, $ary2);
11var_dump($ary2 === $origAry2);
12
13?>
14--EXPECT--
15bool(true)
16