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 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6