(PHP 5 >= 5.3.0, PHP 7)
The SplPriorityQueue class provides the main functionalities of a prioritized queue, implemented using a max heap.
Bilginize: The order of elements with identical priority is undefined. It may differ from the order in which they have been inserted.