Does anyone know which would be more efficient to use?

PHP Code:
ob_start();
include(
"path/to.php");
$data ob_get_contents(); 
OR

PHP Code:
$fp fopen("path/to.php","r"
        while(! 
feof($fp)){
            
$data.=fgets($fp,1024);
        } 
Thanks for answering stupid questions