@chadrien 

One idea is to add a command to dump config for bash to read, so we can even output bash array without splitting or rebuilding list:

     source `phpbrew dump-config foo bar`
     echo $PHP_VARIANTS

I think this could work.