3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file = 'httpsd://simon.bennett.im'; if (preg_match('~^(?:f|ht)tps?://~i', substr($file, 0, 10))) { echo 'yes'; } else { echo 'no'; }
based on 5qqEl
Output for 4.3.0 - 7.2.0
no