3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('BASE_URL', 'localhost'); $hostName = str_replace(array('http://www.', 'https://www.', 'http://', 'https://'), '', BASE_URL); $hostName = (strpos($hostName, '.') === false) ? 'example.com' : $hostName; define('EMAIL_DEFAULT_FROM_ADDRESS', 'concrete5-noreply@' . $hostName); var_dump(EMAIL_DEFAULT_FROM_ADDRESS); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(29) "concrete5-noreply@example.com"