Use "view" inside a loop / clone a view
The $view->set_display($i); will not work unless you have an integer as the display name of your view (which is something I'm not sure if possible or if you need it).

try changing the $i in $view->set_display($i); to the display name of your view:

for($i=2; $i&lt;=4; $i++){

    $view = views_get_view('view_name');
    $view-&gt;set_display('display_name'); //Example: page, page_1, block_1, custom_display_name ..etc
    $view-&gt;set_arguments(array($i));
    $view-&gt;execute();

    dpm($view-&gt;result);
}