https://www.php-resource.de/en/php-manual/splheap.valid.html