Switch to each_line for parsing php -v output