3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text_res = array( 'eng' => array('chapter' => 'Chapter'), 'rus' => array('chapter' => 'Глава') ); function get_text_sub_header($lang) { return $lang."=".$text_res[$lang]['chapter']; } echo get_text_sub_header('eng'); ?>
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: text_res in /in/jU6Em on line 11 eng=
Output for 4.3.0 - 5.4.45
eng=