3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_SERVEUR['HTTP_HOST'] = 'arpaco.localhost'; if (preg_match("/localhost/i", $_SERVEUR['HTTP_HOST'])) echo ($_SERVEUR['HTTP_HOST']);
Output for 4.3.0 - 7.1.7
arpaco.localhost