syntax – Variable variables for array key

Currently, I am trying to call a multidimensional array, using a string as the key. I would like to use the following code, but I think the key is interpreted as a string. Any solution?

$ cars = [];
$ cars['volvo'] = "Beautiful whip";
$ test = & # 39;[volvo]& # 39 ;;
echo $ cars $ test;