3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( "foo" => "bar", 42 => 24, "multi" => array( "dimensional" => array( "array" => "foo" ) ) ); var_dump($array["foo"]); var_dump($array[42]); var_dump($array["multi"]["dimensional"]["array"]);
Output for 4.3.0 - 7.1.0
string(3) "bar" int(24) string(3) "foo"