3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $trans_vars = array( 'beta_content', 'beta_upgrade', 'layouts_content_1', 'layouts_content_2', ); $module_prefix = 'asdfkljasdfkjsd_'; foreach ($trans_vars as $variable) { echo 'Seting var: ' . $module_prefix . $variable . ' in ' . $lang ; }
Output for 5.0.4 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_beta_content in Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_beta_upgrade in Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_layouts_content_1 in Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_layouts_content_2 in
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_beta_content in Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_beta_upgrade in Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_layouts_content_1 in Notice: Undefined variable: lang in /in/6SELE on line 12 Seting var: asdfkljasdfkjsd_layouts_content_2 in