3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo['ten'] = 10; // $foo['ten'] is an array holding an integer at key "ten" $str = "{$foo['ten']}"; // works "10" $str = "$foo[ten]";
Output for 4.3.0 - 7.2.0