3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/jCHTf(8) : eval()'d code on line 1
Output for hhvm-3.10.0 - 3.13.2
Notice: Undefined variable: a in /in/jCHTf(8)(f25c92ed8b7318da194b4359f54482fd) : 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