3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $host = 'localhost'; if (preg_match('#^[-._A-Za-z0-9]{,255}$#', $host)) { print 'true'; } print 'false';
Output for 4.3.0 - 7.1.0
false