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 '; }
Output for 4.3.0 - 7.1.0
Seting var: asdfkljasdfkjsd_beta_content in Seting var: asdfkljasdfkjsd_beta_upgrade in Seting var: asdfkljasdfkjsd_layouts_content_1 in Seting var: asdfkljasdfkjsd_layouts_content_2 in