<?php$v = ['a' => '1'];$a = 'a';var_dump($v["$a"]);var_dump($v['$a']);
Standard input is empty
string(1) "1" NULL
PHP Notice: Undefined index: $a in /home/J8o8si/prog.php on line 5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!