The SplPriorityQueue class provides the main functionalities of an prioritized queue, implemented using a heap.