You can try to iterate thru the elements first, then if you found the starting comment, skip it first, then add a flag which starts the concatenation of the next elements. If you reach the end-point, stop the concatenation:
$html_string = '<!-- start block -->
<p>Hello world etc</p>
<div>something</div>
<div>something2</div>
<!-- end of block -->
<div>something3</div>
';
$html = str_get_html($html_string);
// start point
$start = $html->find('*');
$output = ''; $go = false;
foreach($start as $e) {
if($e->innertext === '<!-- start block -->') {
$go = true;
continue;
} elseif($e->innertext === '<!-- end of block -->') {
break;
}
if($go) {
$output .= $e;
}
}
echo $output;