SplHeapTop ordered Heap

Code
<?php

$heap 
= new SplMaxHeap();
$heap->insert('c');
$heap->insert('b');
$heap->insert('a');
$heap->insert('d');

echo 
'top element: ' $heap->top() . PHP_EOL;

foreach(
$heap as $val) {
    echo 
$val PHP_EOL;
}
Result
top element: d
d
c
b
a
Used Versions
PHP 8.0, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8