3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vars = array(); $arrayKey = '[0][1]'; $vars[0][1] = "two levels deep"; echo eval("\$a$arrayKey;");
based on b4WgH
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: a in /in/jCHTf(8) : eval()'d code on line 1
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/jCHTf(8) : eval()'d code on line 1