3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'col' => 'val', 'sub' => array( 'sub_col' => 'sub_val' )); $here = <<<HTML Col {$arr['col']} Sub = {$arr[sub][sub_col]} HTML; echo $here;
based on JTmKW
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant sub - assumed 'sub' in /in/mEeEB on line 5 Notice: Use of undefined constant sub_col - assumed 'sub_col' in /in/mEeEB on line 5 Col val Sub = sub_val