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 ("localhost");
Output for 4.3.0 - 7.2.0
localhost