(PHP 5 >= 5.3.0, PHP 7)
The SplPriorityQueue class provides the main functionalities of a prioritized queue, implemented using a max heap.
$priority1
$priority2
$value
$priority
$flags