3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myvar = Array( 'a' => Array('b' => 1, 'c' => 2), 'd' => Array('e' => 3, 'f' => 4) ); $myvarname = "myvar['a']['b']"; eval("echo \${$myvarname};");
Output for 4.3.0 - 7.1.0
1