3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0