OK this quite interesting
i have did a quick x debug test for your tow examples respectively
and here what i have got
Sure you may have a different result with each refresh put all of them ensure that
Second method is better than first always
even though with each refresh you may find first method take less time occasionally but this is something related with PHP core optimization
regarding to Zend optimizer i didn't test that