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; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Seting var: asdfkljasdfkjsd_beta_contentSeting var: asdfkljasdfkjsd_beta_upgradeSeting var: asdfkljasdfkjsd_layouts_content_1Seting var: asdfkljasdfkjsd_layouts_content_2